|
@@ -83,10 +83,10 @@
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
console.log(option,option.id,'ppppppppp')
|
|
console.log(option,option.id,'ppppppppp')
|
|
// this.userDetailInfo={}
|
|
// this.userDetailInfo={}
|
|
- // this.getDetailData()
|
|
|
|
|
|
+ this.getDetailData()
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- this.getDetailData()
|
|
|
|
|
|
+ // this.getDetailData()
|
|
},
|
|
},
|
|
onUnload() {
|
|
onUnload() {
|
|
},
|
|
},
|
|
@@ -95,16 +95,20 @@
|
|
getDetailData(){
|
|
getDetailData(){
|
|
userDetail().then(res=>{
|
|
userDetail().then(res=>{
|
|
if(res.status==200){
|
|
if(res.status==200){
|
|
|
|
+ console.log(res,res.data,'---------------详情数据')
|
|
// this.userDetailInfo=res.data
|
|
// this.userDetailInfo=res.data
|
|
- this.$refs.addressType.setVal(res.data.addressType)
|
|
|
|
- this.form.addressType=res.data.addressType
|
|
|
|
- this.form.contactMobile=res.data.contactMobile
|
|
|
|
- this.form.contactName=res.data.contactName
|
|
|
|
- this.form.contactAddress=res.data.contactAddress
|
|
|
|
- this.form.houseAddress=res.data.houseAddress
|
|
|
|
- this.photograph=[res.data.imageHeader] ?res.data.imageHeader.split() :''
|
|
|
|
- this.form.lat=res.data.latitude
|
|
|
|
- this.form.lng=res.data.longitude
|
|
|
|
|
|
+ if(res.data){
|
|
|
|
+ this.form=res.data
|
|
|
|
+ this.$refs.addressType.setVal(res.data.addressType)
|
|
|
|
+ this.photograph=[res.data.imageHeader] ?res.data.imageHeader.split() :''
|
|
|
|
+ this.form.lat=res.data.latitude
|
|
|
|
+ this.form.lng=res.data.longitude
|
|
|
|
+ }
|
|
|
|
+ // this.form.addressType=res.data.addressType
|
|
|
|
+ // this.form.contactMobile=res.data.contactMobile
|
|
|
|
+ // this.form.contactName=res.data.contactName
|
|
|
|
+ // this.form.contactAddress=res.data.contactAddress
|
|
|
|
+ // this.form.houseAddress=res.data.houseAddress
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|