guo 2 år sedan
förälder
incheckning
aa99851ee1
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      pages/user/user.vue

+ 4 - 4
pages/user/user.vue

@@ -225,9 +225,7 @@
 			this.wxOpenData=wxOpenData
 			//console.log()
 			if (wxOpenData) {
-				this.headImg = wxOpenData.loginInfo.customerInfo.headImgurl;
-				this.nickName = wxOpenData.loginInfo.customerInfo.wxNickName;
-				this.phone = wxOpenData.loginInfo.customerInfo.mobilePhone;
+				
 				this.uid = wxOpenData.loginInfo.uid;
 			}
 			this.userInfo = this.$store.state.userInfo;
@@ -339,7 +337,9 @@
 				}, 'GET').then(res => {
 					uni.hideLoading();
 					this.numList = res.data
-					
+					this.headImg = res.data.customerInfo.headImgurl;
+					this.nickName = res.data.customerInfo.wxNickName;
+					this.phone = res.data.customerInfo.mobilePhone;
 				})
 			},
 			gonavigateTo(url) {