Browse Source

修改时间、提币验证加条件

master
luyisha 2 years ago
parent
commit
78db353bc4
  1. 4
      src/api/member.js
  2. 2
      src/i18n/en.json
  3. 39
      src/views/wallet/exchange-assets.vue

4
src/api/member.js

@ -154,8 +154,8 @@ class Member {
return server.get(`/register/Graph_che`);
}
// 提币获取邮箱验证码
static getWdcode(){
return server.get(`/user/wdcode`);
static getWdcode(data){
return server.get(`/user/wdcode`,{params:data});
}
}

2
src/i18n/en.json

@ -219,7 +219,7 @@
"phoneCode": "SMS Verification",
"googleVer": "Google Verification",
"emailCode": "Email Verification",
"password": "Enter your password",
"password": "Password",
"passwordLength": "the password needs a length of {num}",
"new-password": "Enter a new password",
"confirm-password": "Confirm your password",

39
src/views/wallet/exchange-assets.vue

@ -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,
});

Loading…
Cancel
Save