Explorar o código

优化绑定手机号

Zhou Jianjia %!s(int64=3) %!d(string=hai) anos
pai
achega
2d7cb7fc7d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pages/my/index.vue

+ 4 - 0
pages/my/index.vue

xqd
@@ -106,6 +106,10 @@
 				this.$jump({url:'/pages/my/member',type:'to'})
 			},
 			getPhoneNumber(phoneNumber){
+				if(phoneNumber.detail.errMsg !== 'getPhoneNumber:ok'){
+					this.$u.toast('已取消');
+					return
+				}
 				uni.checkSession({
 					success: data => {
 						this.$u.api.userBindPhone(phoneNumber.detail).then(data => {