|
@@ -78,10 +78,10 @@ export default {
|
|
|
uni.showToast({ icon: 'none', title: '请输入用户名' });
|
|
|
return;
|
|
|
}
|
|
|
- // if (!isvalidPhone(_this.form.loginName)) {
|
|
|
- // uni.showToast({ icon: 'none', title: '请输入正确的手机号码' });
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ if (!isvalidPhone(_this.form.loginName)) {
|
|
|
+ uni.showToast({ icon: 'none', title: '请输入正确的手机号码' });
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (_this.form.password == '') {
|
|
|
uni.showToast({ icon: 'none', title: '请输入密码' });
|
|
|
return;
|