|
@@ -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;
|