Browse Source

bug 修复

1004749546@qq.com 4 years ago
parent
commit
ff9ee73364
1 changed files with 2 additions and 5 deletions
  1. 2 5
      pages/index/userInfo.vue

+ 2 - 5
pages/index/userInfo.vue

@@ -17,6 +17,7 @@
 			<view class="form-data">
 				<u-form :model="form" ref="uForm" :label-width="140" :error-type="['toast']">
 						<u-form-item prop="contactAddress" label="通信地址:" required>
+							{{form.contactAddress}}
 							<u-input placeholder="请选择通信地址" v-model="form.contactAddress" @click="selectAddress" :disabled="true"/>
 							<u-icon name="arrow-right" slot="right"></u-icon>
 						</u-form-item>
@@ -69,7 +70,6 @@
 					houseAddress:'', // 详细地址
 					// imageHeader:'', // 门头照片
 				},
-				// contactAddress:'' ,// 通讯地址
 				isView: false ,// 是否是查看详情
 				itemId:'',
 				submitBtn:{
@@ -81,7 +81,6 @@
 			};
 		},
 		onLoad(option) {
-			console.log(option,option.id,'ppppppppp')
 			this.getDetailData()
 		},
 		onShow() {
@@ -93,9 +92,8 @@
 			getDetailData(){
 				userDetail().then(res=>{
 					if(res.status==200){
-						console.log(res,res.data,'---------------详情数据')
 						if(res.data){
-							this.form=res.data
+							this.form= Object.assign(this.form,res.data)
 							this.$refs.addressType.setVal(res.data.addressType)
 							this.photograph = res.data.imageHeader ? [res.data.imageHeader] : []
 							this.form.lat=res.data.latitude
@@ -116,7 +114,6 @@
 							this.form.contactAddress=res.address
 							this.form.lat=res.latitude
 							this.form.lng=res.longitude
-							console.log(res.address,'-----------res.address',this.form.contactAddress)
 						}
 					}
 				})