zhangdan 4 years ago
parent
commit
2c35006314
3 changed files with 16 additions and 11 deletions
  1. 1 0
      pages/index/index.vue
  2. 15 11
      pages/index/userInfo.vue
  3. BIN
      static/home_bg_expressage.png

+ 1 - 0
pages/index/index.vue

@@ -254,6 +254,7 @@
 				background-color: #f5f5f5;
 				.bottom-new-notice{
 					background-image: url('../../static/home_bg_expressage.png');
+					background-size: 100% 100%;
 					height:220upx;
 					margin-top: 30upx;
 					display: flex;

+ 15 - 11
pages/index/userInfo.vue

@@ -83,10 +83,10 @@
 		onLoad(option) {
 			console.log(option,option.id,'ppppppppp')
 			// this.userDetailInfo={}
-			// this.getDetailData()
+			this.getDetailData()
 		},
 		onShow() {
-			this.getDetailData()
+			// this.getDetailData()
 		},
 		onUnload() {
 		},
@@ -95,16 +95,20 @@
 			getDetailData(){
 				userDetail().then(res=>{
 					if(res.status==200){
+						console.log(res,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
 					}
 				})
 			},

BIN
static/home_bg_expressage.png