|
|
|
@ -262,6 +262,39 @@ export default { |
|
|
|
this[type] = this[type] == "text" ? "password" : "text"; |
|
|
|
}, |
|
|
|
showCode(){ |
|
|
|
if (this.user.password !== this.user.repassword) { |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "error", |
|
|
|
message: this.$t('login.confirmpassword') + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return |
|
|
|
} |
|
|
|
// 其他补充的验证 |
|
|
|
if (!this.isAgree) { |
|
|
|
// 没有同意条款 |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "warning", |
|
|
|
message: this.$t("login.disagree") + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.user.parentCode=="") { |
|
|
|
// 没有填写推荐人 |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "warning", |
|
|
|
message: this.$t("login.referrer1") + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
$("#captcha").modal("show"); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -298,16 +331,6 @@ export default { |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!sessionStorage.getItem('code')){ |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "warning", |
|
|
|
message: this.$t("login.verify") + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.user.parentCode=="") { |
|
|
|
// 没有填写推荐人 |
|
|
|
this.$message( |
|
|
|
@ -319,7 +342,16 @@ export default { |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if(!sessionStorage.getItem('code')){ |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "warning", |
|
|
|
message: this.$t("login.verify") + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
// 滑块安全性验证 |
|
|
|
// if (this.user.parentCode) { |
|
|
|
// this.chkRefer(this.user.parentCode, () => { |
|
|
|
|