|
|
|
@ -53,17 +53,27 @@ |
|
|
|
<label @click="showType('repwdType')"></label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-group row password"> |
|
|
|
<!-- <div class="form-group row password" style="justify-content: space-between;"> --> |
|
|
|
<!-- 增加图形验证码 --> |
|
|
|
<input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('homeNewText.ee6')" class="form-control col-6" /> |
|
|
|
<img class="col-6" :src="Graph_che" @click="gett_gc_code"> |
|
|
|
</div> |
|
|
|
<!-- <input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('homeNewText.ee6')" class="form-control col-6" /> --> |
|
|
|
<!-- <img class="col-6" :src="Graph_che" @click="gett_gc_code"> --> |
|
|
|
<!-- <input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('homeNewText.ee6')" class="form-control col-6" /> --> |
|
|
|
<!-- <el-button @click="showCode" type="primary" plain style="width: 100px;margin-top: 0px;margin-left: 20px;height: 40px;margin-top: 3px;"> |
|
|
|
获取验证码 |
|
|
|
</el-button> --> |
|
|
|
<!-- </div> --> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
<div class="form-group row"> |
|
|
|
<el-button @click="showCode" type="primary" plain style="margin-top: 0px;"> |
|
|
|
{{$t("login.Clickverify")}} |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="custom-control custom-checkbox"> |
|
|
|
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" /> |
|
|
|
<label class="custom-control-label" for="form-checkbox"> |
|
|
|
@ -251,6 +261,9 @@ export default { |
|
|
|
showType(type) { |
|
|
|
this[type] = this[type] == "text" ? "password" : "text"; |
|
|
|
}, |
|
|
|
showCode(){ |
|
|
|
$("#captcha").modal("show"); |
|
|
|
}, |
|
|
|
|
|
|
|
step1: _.throttle(function () { |
|
|
|
|
|
|
|
@ -267,12 +280,12 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
// check gc code has fill |
|
|
|
if(this.Graph_che==''){ |
|
|
|
this.$message({ |
|
|
|
type:"warning", |
|
|
|
message:"input gc code pls.", |
|
|
|
}) |
|
|
|
} |
|
|
|
// if(this.Graph_che==''){ |
|
|
|
// this.$message({ |
|
|
|
// type:"warning", |
|
|
|
// message:"input gc code pls.", |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// 其他补充的验证 |
|
|
|
if (!this.isAgree) { |
|
|
|
// 没有同意条款 |
|
|
|
@ -285,6 +298,16 @@ export default { |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!sessionStorage.getItem('code')){ |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
type: "warning", |
|
|
|
message: this.$t("login.verify") + "!" |
|
|
|
}, |
|
|
|
1000 |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.user.parentCode=="") { |
|
|
|
// 没有填写推荐人 |
|
|
|
this.$message( |
|
|
|
@ -299,19 +322,19 @@ export default { |
|
|
|
|
|
|
|
// 滑块安全性验证 |
|
|
|
// if (this.user.parentCode) { |
|
|
|
// // this.chkRefer(this.user.parentCode, () => { |
|
|
|
// // this.showBox = true; |
|
|
|
// // }); |
|
|
|
// this.chkRefer(this.user.parentCode, () => { |
|
|
|
// this.showBox = true; |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// 调用模态框 |
|
|
|
// // 调用模态框 |
|
|
|
// if (utils.isMobile()) { |
|
|
|
this.step2(); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// $("#captcha").modal({ |
|
|
|
// backdrop: "static" // 点击背景时不关闭动态模态框 |
|
|
|
// // keyboard : true, // 按下esc时关闭动态视窗 |
|
|
|
// // show : false, // 初始化不显示 |
|
|
|
// backdrop: "static", // 点击背景时不关闭动态模态框 |
|
|
|
// keyboard : true, // 按下esc时关闭动态视窗 |
|
|
|
// show : false, // 初始化不显示 |
|
|
|
// }); |
|
|
|
// } |
|
|
|
} |
|
|
|
@ -324,9 +347,9 @@ export default { |
|
|
|
case 1: |
|
|
|
Member.sendEmailCode({ |
|
|
|
email: this.user.email, |
|
|
|
gc_code: this.user.gc_code, |
|
|
|
gc_key: this.gc_key, |
|
|
|
token |
|
|
|
// gc_code: this.user.gc_code, |
|
|
|
// gc_key: this.gc_key, |
|
|
|
token:token||sessionStorage.getItem('tokens') |
|
|
|
}) |
|
|
|
.then(data => { |
|
|
|
const res = /^([\w\-\.]+)@([\w\.\-]+)$/.exec(this.user.email); |
|
|
|
@ -338,6 +361,8 @@ export default { |
|
|
|
// DOM 现在更新了 |
|
|
|
this.$refs.spaces[0].focus(); |
|
|
|
}); |
|
|
|
sessionStorage.removeItem('code'); |
|
|
|
sessionStorage.removeItem('tokens') |
|
|
|
}) |
|
|
|
.catch(err => { }); |
|
|
|
break; |
|
|
|
@ -569,6 +594,7 @@ export default { |
|
|
|
window.location.href = this.Globals.mobileUrl + '/#/pages/reg/index?invite_code=' + this.$route.query.invite_code |
|
|
|
} |
|
|
|
} |
|
|
|
sessionStorage.removeItem('code'); |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
|