Bläddra i källkod

Merge branch 'master' of http://git.zthymaoyi.com/wangchao/businessCard

achao 2 år sedan
förälder
incheckning
e5ed938bc9

+ 6 - 3
xiaochengxu/pages/cardHolder/cardHolder.vue

@@ -561,9 +561,12 @@
 			},
 			async getPhoneNumber(e) {
 				that.userInfo = await this.$request.wxlogin()
-				that.userInfo.phone = await this.$request.getPhone(e, that.userInfo)
-				this.showAuthorizePhone = false
-				this.showAuthorizeUser = true
+				this.$nextTick(function() {
+					that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
+					that.showAuthorizePhone = false
+					that.showAuthorizeUser = true
+				});
+				
 
 			},
 			delVal() {

+ 7 - 4
xiaochengxu/pages/cardHolder/scanCodeAddCard.vue

@@ -384,10 +384,13 @@
 				that.userInfo = await this.$request.wxlogin()
 				console.log("结束登录",that.userInfo)
 				console.log("开始获取手机号码")
-				that.userInfo.phone = await this.$request.getPhone(e, that.userInfo)
-				console.log("结束获取手机号码",that.userInfo.phone)
-				this.showAuthorizePhone = false
-				this.showAuthorizeUser = true
+				this.$nextTick(function() {
+					that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
+					that.showAuthorizePhone = false
+					that.showAuthorizeUser = true
+					console.log("结束获取手机号码",that.userInfo.phone)
+				});
+				
 			
 			},
 			save() {

+ 5 - 3
xiaochengxu/pages/circle/detail.vue

@@ -279,9 +279,11 @@
 			},
 			async getPhoneNumber(e) {
 				that.userInfo = await this.$request.wxlogin()
-				that.userInfo.phone = await this.$request.getPhone(e, that.userInfo)
-				this.showAuthorizePhone = false
-				this.showAuthorizeUser = true
+				this.$nextTick(function() {
+					that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
+					that.showAuthorizePhone = false
+					that.showAuthorizeUser = true
+				});
 			
 			},
 			toHome(item){

+ 5 - 3
xiaochengxu/pages/mySet/mySet.vue

@@ -265,9 +265,11 @@
 			},
 			async getPhoneNumber(e) {
 				that.userInfo = await this.$request.wxlogin()
-				that.userInfo.phone = await this.$request.getPhone(e, that.userInfo)
-				this.showAuthorizePhone = false
-				this.showAuthorizeUser = true
+				this.$nextTick(function() {
+					that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
+					that.showAuthorizePhone = false
+					that.showAuthorizeUser = true
+				});
 
 			},
 			editNickName() {