guo 2 years ago
parent
commit
aa99851ee1
1 changed files with 4 additions and 4 deletions
  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) {