@ -120,11 +120,32 @@
formValidation() {
const app = this
// 验证提交登录
if (!app.validteMobile(app.mobile)) {
if (!app.validteMobile(app.mobile) ||!app.validtePass(app.vpass)) {
return false
}
// 处理用户类型
if(app.utchk1){
this.userType="企业"
if(app.utchk2){
this.userType ="个人"
// 检查是否阅读了协议
if(!app.isTick){
this.$toast("请勾选《隐私保护政策》和《用户注册协议》")
return true
},
// 验证密码
validtePass(str){
if (Verify.isEmpty(str)) {
this.$toast('请先输入登录密码')
return true;
// 验证手机号
validteMobile(str) {