yuxingxing 2 years ago
parent
commit
da595d1c62
1 changed files with 8 additions and 8 deletions
  1. 8 8
      pages/users/components/login_mobile/index.vue

+ 8 - 8
pages/users/components/login_mobile/index.vue

@@ -104,11 +104,11 @@
 				let that = this
 				// #ifdef MP
 				if (!that.account) return that.$util.Tips({
-					title: that.$t(`请填写手机号码`)
-				});
-				if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
-					title: that.$t(`请输入正确的手机号码`)
+					title: that.$t(`请填写登录账号`)
 				});
+				// if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
+				// 	title: that.$t(`请输入正确的手机号码`)
+				// });
 				if (!that.password) return that.$util.Tips({
 					title: that.$t(`请填写登录密码`)
 				});
@@ -143,11 +143,11 @@
 				// #endif
 				// #ifdef H5
 				if (!that.account) return that.$util.Tips({
-					title: that.$t(`请填写手机号码`)
-				});
-				if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
-					title: that.$t(`请输入正确的手机号码`)
+					title: that.$t(`请填写登录账号`)
 				});
+				// if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
+				// 	title: that.$t(`请输入正确的手机号码`)
+				// });
 				if (!that.codeNum) return that.$util.Tips({
 					title: that.$t(`请填写验证码`)
 				});