Browse Source

修改为滑动验证2

master
liaoxinyu 2 years ago
parent
commit
356f38fb4a
  1. 54
      src/views/signUp/index.vue

54
src/views/signUp/index.vue

@ -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, () => {

Loading…
Cancel
Save