|
|
|
@ -360,15 +360,23 @@ |
|
|
|
<input type="number" v-model="withdraw.amount" step="0.00000001" :placeholder="$t('wallet.enterDrawNum')" class="form-control" /> |
|
|
|
</div> |
|
|
|
<span class="text-right">{{$t('wallet.handlingFee1')}}: {{withdrawCoin=='USDT'&&withdraw.addressType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee }} {{withdrawCoin}}</span> |
|
|
|
<div class="input-group input-group-sm password"> |
|
|
|
<input v-model="withdraw.password" required :placeholder="$t('login.password')" class="form-control" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="form-group mt-2"> |
|
|
|
<label class="d-flex justify-content-between" for="formGroupPWDInput"> |
|
|
|
<span>{{$t('login.password')}}</span> |
|
|
|
<!-- 增加图形验证码 --> |
|
|
|
<label class="d-flex justify-content-between" for="" style="align-items: center;"> |
|
|
|
<span>{{$t('common.GraphicValidation')}}</span> |
|
|
|
<img :src="Graph_che" @click="gett_gc_code"> |
|
|
|
</label> |
|
|
|
<div class="input-group input-group-sm"> |
|
|
|
<input type="password" v-model="withdraw.password" :placeholder="$t('common.enterPwd')" class="form-control" id="formGroupPWDInput" /> |
|
|
|
<input type="text" id="gccode" v-model="withdraw.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 提币验证码 --> |
|
|
|
<div class="form-group mt-2"> |
|
|
|
<label class="d-flex justify-content-between" for="" style="align-items: center;"> |
|
|
|
@ -461,7 +469,8 @@ export default { |
|
|
|
code_type: 1, |
|
|
|
code: '', |
|
|
|
password:'', |
|
|
|
emailcode: '' |
|
|
|
emailcode: '', |
|
|
|
gc_code: ''// 图形验证码 |
|
|
|
}, |
|
|
|
|
|
|
|
withdrawFee: { |
|
|
|
@ -484,6 +493,7 @@ export default { |
|
|
|
getEmailCodeLock: false, |
|
|
|
JStime: 0, |
|
|
|
tiemr: null, |
|
|
|
Graph_che: '' |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -627,12 +637,6 @@ export default { |
|
|
|
|
|
|
|
// 进入提币 |
|
|
|
enterWithdraw(item) { |
|
|
|
// console.log(this.ProfileDetail.status) |
|
|
|
if(this.ProfileDetail.status!=2){ |
|
|
|
this.$router.push("/profile/certification"); |
|
|
|
return; |
|
|
|
} |
|
|
|
$('#withdraw').modal('show'); |
|
|
|
this.withdrawCoin = item.coin_name; |
|
|
|
this.withdraw.coin_id = item.coin_id; |
|
|
|
// 查找余额 手续费等信息 |
|
|
|
@ -640,6 +644,7 @@ export default { |
|
|
|
coin_name: item.coin_name |
|
|
|
}) |
|
|
|
.then(data => { |
|
|
|
this.gett_gc_code(); |
|
|
|
this.withdrawFee = data; |
|
|
|
}) |
|
|
|
.catch(err => { }); |
|
|
|
@ -688,16 +693,6 @@ export default { |
|
|
|
this.userInfo = res |
|
|
|
}); |
|
|
|
}, |
|
|
|
getAuthInfo() { |
|
|
|
Profile.getAuthInfo({}).then(res => { |
|
|
|
this.ProfileDetail = res; |
|
|
|
console.log(this.ProfileDetail, 11111) |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 滚动到页面指定位置 |
|
|
|
PageScrollTo(num){ |
|
|
|
document.documentElement.scrollTop = num; |
|
|
|
}, |
|
|
|
// 獲取邮箱验证码 |
|
|
|
getEmailCode(){ |
|
|
|
if(!this.withdraw.address){ |
|
|
|
@ -711,16 +706,15 @@ export default { |
|
|
|
if(!this.withdraw.amount){ |
|
|
|
this.$message({ |
|
|
|
message: this.$t('wallet.enterDrawNum'), |
|
|
|
type: "warn", |
|
|
|
// type: "warn", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!this.withdraw.password){ |
|
|
|
this.$message({ |
|
|
|
// message: this.$t('login.password'), |
|
|
|
message: this.$t('common.enterPwd'), |
|
|
|
type: "warn", |
|
|
|
// type: "warn", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
return; |
|
|
|
@ -746,6 +740,23 @@ export default { |
|
|
|
type: "success", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
}).catch(err=>{ |
|
|
|
this.gett_gc_code(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 图形验证码 |
|
|
|
gett_gc_code(){ |
|
|
|
Member.sendGCode().then( (res) =>{ |
|
|
|
this.gc_key = res.key |
|
|
|
this.Graph_che = res.img |
|
|
|
console.log("gc",res); |
|
|
|
this.$message({ |
|
|
|
message: `${type} ${this.$t("login.sendOK")}`, |
|
|
|
type: "success", |
|
|
|
duration : 2000, |
|
|
|
}); |
|
|
|
}).catch( err =>{ |
|
|
|
console.log(err) |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -755,8 +766,7 @@ created() { |
|
|
|
this.getUserAssets(); |
|
|
|
this.getCoinAssets(); |
|
|
|
this.createWalletAddress(); |
|
|
|
this.getUserInfo(); |
|
|
|
this.getAuthInfo(); |
|
|
|
this.getUserInfo() |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
@ -790,14 +800,6 @@ created() { |
|
|
|
// console.error('Action:', e.action); |
|
|
|
// console.error('Trigger:', e.trigger); |
|
|
|
}); |
|
|
|
// 首页直接进入充值 |
|
|
|
let isNeedScroll = this.$route.fullPath.split('?buy=')[1]; |
|
|
|
// console.log(this.$route.fullPath,121212121, isNeedScroll); |
|
|
|
if(isNeedScroll){ |
|
|
|
setTimeout(() => { |
|
|
|
this.PageScrollTo(775); |
|
|
|
}, 1500); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|