|
|
|
@ -362,15 +362,15 @@ |
|
|
|
<span class="text-right">{{$t('wallet.handlingFee1')}}: {{withdrawCoin=='USDT'&&withdraw.addressType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee }} {{withdrawCoin}}</span> |
|
|
|
</div> |
|
|
|
<div class="form-group mt-2"> |
|
|
|
<label class="d-flex justify-content-between" for="formGroupExampleInput"> |
|
|
|
<span>{{$t('login.pwd')}}</span> |
|
|
|
<label class="d-flex justify-content-between" for="formGroupPWDInput"> |
|
|
|
<span>{{$t('login.password')}}</span> |
|
|
|
</label> |
|
|
|
<div class="input-group input-group-sm"> |
|
|
|
<input type="password" v-model="withdraw.password" :placeholder="$t('login.password')" class="form-control" /> |
|
|
|
<input type="password" v-model="withdraw.password" :placeholder="$t('common.enterPwd')" class="form-control" id="formGroupPWDInput" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group mt-2"> |
|
|
|
<label class="d-flex justify-content-between" for="EmailCode" style="align-items: center;"> |
|
|
|
<label class="d-flex justify-content-between" for="" style="align-items: center;"> |
|
|
|
<span>{{$t('login.email-code')}}</span> |
|
|
|
<span class="getCodeAA" @click="getEmailCode"> |
|
|
|
<span v-if="!getEmailCodeLock">{{$t('common.getCode')}}</span> |
|
|
|
@ -701,6 +701,31 @@ export default { |
|
|
|
}, |
|
|
|
// 獲取邮箱验证码 |
|
|
|
getEmailCode(){ |
|
|
|
if(!this.withdraw.address){ |
|
|
|
this.$message({ |
|
|
|
message: this.$t('wallet.enterDrawAddress'), |
|
|
|
type: "warn", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!this.withdraw.amount){ |
|
|
|
this.$message({ |
|
|
|
message: this.$t('wallet.enterDrawNum'), |
|
|
|
type: "warn", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!this.withdraw.password){ |
|
|
|
this.$message({ |
|
|
|
// message: this.$t('login.password'), |
|
|
|
message: this.$t('common.enterPwd'), |
|
|
|
type: "warn", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(this.getEmailCodeLock){return}; |
|
|
|
this.JStime = 300; |
|
|
|
this.tiemr = setInterval(()=>{ |
|
|
|
@ -712,10 +737,12 @@ export default { |
|
|
|
this.JStime--; |
|
|
|
}, 1000) |
|
|
|
this.getEmailCodeLock = true; |
|
|
|
Member.getWdcode().then(res => { |
|
|
|
// |
|
|
|
let gdata = {bt:this.withdraw.addressType,baddr:this.withdraw.address,bnum:this.withdraw.amount} |
|
|
|
Member.getWdcode(gdata).then(res => { |
|
|
|
// console.log(res, 11111) |
|
|
|
this.$message({ |
|
|
|
message: `${type} ${this.$t("login.sendOK")}`, |
|
|
|
message: `${this.$t("login.sendOK")}`, |
|
|
|
type: "success", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
|