Quellcode durchsuchen

登录账号取消手机号限制

yuxingxing vor 2 Jahren
Ursprung
Commit
1ea056c8fd
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      pages/users/components/login_mobile/index.vue

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

@@ -3,10 +3,10 @@
 		<view class="mobile-bg" @click="close"></view>
 		<view class="mobile-mask animated" :class="{slideInUp:isUp}">
 			<view class="input-item">
-				<input type="text" v-model="account" :placeholder="$t(`输入手机号`)" maxlength="11" />
+				<input type="text" v-model="account" :placeholder="$t(`输入登录账号`)" maxlength="11" />
 			</view>
 			<view class="input-item">
-				<input type="password" v-model="password" :placeholder="$t(`输入密码`)" maxlength="30" />
+				<input type="password" v-model="password" :placeholder="$t(`输入登录密码`)" maxlength="30" />
 			</view>
 			<!-- <view class="input-item">
 				<input type="text" v-model="codeNum" :placeholder="$t(`输入验证码`)" maxlength="6" />
@@ -66,11 +66,11 @@
 			async code() {
 				let that = this;
 				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(`请输入正确的手机号码`)
+				// });
 				await registerVerify({
 					phone: that.account,
 					key: that.keyCode,