Explorar el Código

优化绑定手机号

Zhou Jianjia hace 3 años
padre
commit
2d7cb7fc7d
Se han modificado 1 ficheros con 4 adiciones y 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 => {