|
|
|
@ -66,7 +66,7 @@ |
|
|
|
<img class="" :src="Graph_che" @click="gett_gc_code" style="object-fit: contain;width: 166px;height: 56px;"> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-group row" v-if="0"> |
|
|
|
<div class="form-group row"> |
|
|
|
<input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.referrer')}`" /> |
|
|
|
<!-- (${$t('login.optional')}) --> |
|
|
|
</div> |
|
|
|
@ -291,17 +291,17 @@ export default { |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
// if (this.user.parentCode=="") { |
|
|
|
// // 没有填写推荐人 |
|
|
|
// this.$message( |
|
|
|
// { |
|
|
|
// type: "warning", |
|
|
|
// message: this.$t("login.referrer1") + "!" |
|
|
|
// }, |
|
|
|
// 1000 |
|
|
|
// ); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
if (this.user.parentCode=="") { |
|
|
|
// 没有填写推荐人 |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "warning", |
|
|
|
message: this.$t("login.referrer1") + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// 滑块安全性验证 |
|
|
|
// if (this.user.parentCode) { |
|
|
|
@ -335,6 +335,7 @@ export default { |
|
|
|
token |
|
|
|
}) |
|
|
|
.then(data => { |
|
|
|
sessionStorage.removeItem("COde"); |
|
|
|
const res = /^([\w\-\.]+)@([\w\.\-]+)$/.exec(this.user.email); |
|
|
|
this.ajar.email = `${res[1].slice(0, 3)}${"*".repeat(5)}@${res[2] |
|
|
|
}`; |
|
|
|
@ -345,7 +346,15 @@ export default { |
|
|
|
this.$refs.spaces[0].focus(); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(err => { }); |
|
|
|
.catch(err => { |
|
|
|
const Code = sessionStorage.getItem('COde') |
|
|
|
if(Code==4001){ |
|
|
|
setTimeout(()=>{ |
|
|
|
sessionStorage.removeItem("COde"); |
|
|
|
this.gett_gc_code() |
|
|
|
},1000) |
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
|
|
|
|
case 2: // 发送手机验证码 |
|
|
|
|