|
|
@ -116,16 +116,18 @@ |
|
|
|
|
|
|
|
|
</v-input> |
|
|
</v-input> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!-- 图形验证码 --> |
|
|
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> |
|
|
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> |
|
|
<span>{{ $t("reg.a8") }}:</span> |
|
|
<span>{{ $t("common.GraphicValidation") }}:</span> |
|
|
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm"> |
|
|
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm"> |
|
|
|
|
|
<v-input class="color-light" v-model="form.gr_code" :placeholder="$t('common.GraphicValidation')"> |
|
|
<v-input type="password" v-model="form.password" class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('reg.a9')"> |
|
|
<template #right> |
|
|
|
|
|
<img :src="Graph_che" @click="gett_gc_code" v-if="!hideImg"> |
|
|
|
|
|
</template> |
|
|
</v-input> |
|
|
</v-input> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> |
|
|
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> |
|
|
<span>{{ $t("safe.a5") }}:</span> |
|
|
<span>{{ $t("safe.a5") }}:</span> |
|
|
</view> |
|
|
</view> |
|
|
@ -255,6 +257,7 @@ export default { |
|
|
code_type: 1, |
|
|
code_type: 1, |
|
|
code: '', |
|
|
code: '', |
|
|
emailcode: '', |
|
|
emailcode: '', |
|
|
|
|
|
gr_code: '',//图形验证码Graphic verification code |
|
|
}, |
|
|
}, |
|
|
withdrawFee: {}, |
|
|
withdrawFee: {}, |
|
|
list: [], |
|
|
list: [], |
|
|
@ -265,6 +268,8 @@ export default { |
|
|
getEmailCodeLock: false, |
|
|
getEmailCodeLock: false, |
|
|
JStime: 0, |
|
|
JStime: 0, |
|
|
tiemr: null, |
|
|
tiemr: null, |
|
|
|
|
|
Graph_che: '', |
|
|
|
|
|
hideImg: false |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -340,6 +345,10 @@ export default { |
|
|
this.$toast(this.$t('reg.a9')) |
|
|
this.$toast(this.$t('reg.a9')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (!this.form.gr_code) { |
|
|
|
|
|
this.$toast(this.$t('common.GraphicValidation')) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if(this.getEmailCodeLock){return}; |
|
|
if(this.getEmailCodeLock){return}; |
|
|
this.JStime = 300; |
|
|
this.JStime = 300; |
|
|
this.tiemr = setInterval(()=>{ |
|
|
this.tiemr = setInterval(()=>{ |
|
|
@ -407,6 +416,7 @@ export default { |
|
|
this.form.code = '' |
|
|
this.form.code = '' |
|
|
if (res.code == 4001) { |
|
|
if (res.code == 4001) { |
|
|
this.$toast(res.message); |
|
|
this.$toast(res.message); |
|
|
|
|
|
this.reGetGraphChe();//重新获取图形验证码; |
|
|
} else { |
|
|
} else { |
|
|
this.$toast.success(this.$t("assets.d5") + "!"); |
|
|
this.$toast.success(this.$t("assets.d5") + "!"); |
|
|
this.form.amount = '' |
|
|
this.form.amount = '' |
|
|
@ -459,9 +469,24 @@ export default { |
|
|
changeTab(ev) { |
|
|
changeTab(ev) { |
|
|
this.form.code_type = ev.detail.name |
|
|
this.form.code_type = ev.detail.name |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 重新请求图形验证码 |
|
|
|
|
|
reGetGraphChe(){ |
|
|
|
|
|
this.hideImg = true; |
|
|
|
|
|
this.gett_gc_code(); |
|
|
|
|
|
}, |
|
|
|
|
|
gett_gc_code(){ |
|
|
|
|
|
Member.Graph_che().then((res)=>{ |
|
|
|
|
|
if(res.code==200){ |
|
|
|
|
|
this.hideImg = false; |
|
|
|
|
|
} |
|
|
|
|
|
console.log("gc",res.data.img) |
|
|
|
|
|
this.Graph_che = res.data.img; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getWithdrawRecords(); |
|
|
this.getWithdrawRecords(); |
|
|
|
|
|
this.gett_gc_code(); |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|