浏览代码

屏蔽登录账号 手机号校验

chenrui 4 年之前
父节点
当前提交
5d8481902e
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      pages/login/login.vue

+ 5 - 5
pages/login/login.vue

@@ -5,7 +5,7 @@
 		<form class="login-form" @submit="formSubmit">
 			<view class="form-item">
 				<u-icon size="40" color="#999" name="account-fill"></u-icon>
-				<input v-model="form.username" class="item-inp" name="username" type="number" maxlength="11" placeholder="请输入用户名" />
+				<input v-model="form.username" class="item-inp" name="username" placeholder="请输入用户名" />
 			</view>
 			<view class="form-item">
 				<u-icon size="40" color="#999" name="lock-fill"></u-icon>
@@ -132,10 +132,10 @@ export default {
 				uni.showToast({ icon: 'none', title: '请输入用户名' });
 				return;
 			}
-			if (!isvalidPhone(_this.form.username)) {
-				uni.showToast({ icon: 'none', title: '请输入正确的手机号码' });
-				return;
-			}
+			// if (!isvalidPhone(_this.form.username)) {
+			// 	uni.showToast({ icon: 'none', title: '请输入正确的手机号码' });
+			// 	return;
+			// }
 			if (_this.form.password == '') {
 				uni.showToast({ icon: 'none', title: '请输入密码' });
 				return;