Browse Source

完成校验

master
453530270@qq.com 2 years ago
parent
commit
32abff5452
  1. 23
      pages/login/components/main.vue

23
pages/login/components/main.vue

@ -120,11 +120,32 @@
formValidation() { formValidation() {
const app = this const app = this
// //
if (!app.validteMobile(app.mobile)) { if (!app.validteMobile(app.mobile) ||!app.validtePass(app.vpass)) {
return false return false
} }
//
if(app.utchk1){
this.userType="企业"
}
if(app.utchk2){
this.userType ="个人"
}
//
if(!app.isTick){
this.$toast("请勾选《隐私保护政策》和《用户注册协议》")
return false
}
return true return true
}, },
//
validtePass(str){
if (Verify.isEmpty(str)) {
this.$toast('请先输入登录密码')
return false
}
return true;
},
// //
validteMobile(str) { validteMobile(str) {

Loading…
Cancel
Save