Ver Fonte

注册登录可以不传手机号

gcz há 1 ano atrás
pai
commit
b2fcd02a5b
1 ficheiros alterados com 7 adições e 7 exclusões
  1. 7 7
      pages/login/login.vue

+ 7 - 7
pages/login/login.vue

@@ -224,18 +224,18 @@
 				
 				// this.getMobile()
 				let mobileData = await this.$u.api.getMobile({code:e.detail.code});
-				console.log('mobileData',mobileData);
+				// console.log('mobileData',mobileData);
 				let mobile = mobileData.data?.mobile;
 				if(mobile){
 					this.mobile = mobile
-					this.login(e);
 				}else{
-					uni.showToast({
-						title: '没有获取手机号',
-						icon:'error',
-						duration: 2000
-					});
+					// uni.showToast({
+					// 	title: '没有获取手机号',
+					// 	icon:'error',
+					// 	duration: 2000
+					// });
 				}
+				this.login(e);
 				this.loginBtn = true;
 			},
 			async login(e){