|
|
|
@ -318,6 +318,18 @@ export default { |
|
|
|
}, |
|
|
|
// 獲取邮箱验证码 |
|
|
|
getEmailCode(){ |
|
|
|
if (!this.form.address) { |
|
|
|
this.$toast(this.$t('assets.b9')) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.form.amount) { |
|
|
|
this.$toast(this.$t('assets.c2')) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.form.password) { |
|
|
|
this.$toast(this.$t('reg.a9')) |
|
|
|
return |
|
|
|
} |
|
|
|
if(this.getEmailCodeLock){return}; |
|
|
|
this.JStime = 300; |
|
|
|
this.tiemr = setInterval(()=>{ |
|
|
|
@ -329,7 +341,7 @@ export default { |
|
|
|
this.JStime--; |
|
|
|
}, 1000) |
|
|
|
this.getEmailCodeLock = true; |
|
|
|
Member.getWdcode().then(res=>{ |
|
|
|
Member.getWdcode({bt:this.coin,baddr:this.form.address,bnum:this.form.amount}).then(res=>{ |
|
|
|
// console.log(res); |
|
|
|
if(res.code=='4001'){ |
|
|
|
this.$toast(res.message); |
|
|
|
|