From 66b19809ae6a7b5fce8f52950cbc75777d13a77b Mon Sep 17 00:00:00 2001 From: luyisha Date: Tue, 31 Oct 2023 16:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=BD=A2=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/vCode.vue | 2 +- pages/assets/draw.vue | 35 +++++++++++++++++++++++++++++----- pages/base/home.vue | 3 ++- pages/safe/forget-password.vue | 6 +++--- pages/safe/login-password.vue | 12 +++++++----- 5 files changed, 43 insertions(+), 15 deletions(-) diff --git a/layout/vCode.vue b/layout/vCode.vue index a010e59..d4ed9b8 100644 --- a/layout/vCode.vue +++ b/layout/vCode.vue @@ -77,7 +77,7 @@ export default { this.inSend = true; serve.post(this.url, this.data) .then(() => { - if(res.code!=='200'){//4001|1004 + if(res.code!='200'){//4001|1004 this.inSend = false // 如果返回错误码 if(this.url=='/register/sendEmailCode'){ diff --git a/pages/assets/draw.vue b/pages/assets/draw.vue index a82e3dd..c09d2d6 100644 --- a/pages/assets/draw.vue +++ b/pages/assets/draw.vue @@ -116,16 +116,18 @@ + - {{ $t("reg.a8") }}: - + {{ $t("common.GraphicValidation") }}: - - - + + + {{ $t("safe.a5") }}: @@ -255,6 +257,7 @@ export default { code_type: 1, code: '', emailcode: '', + gr_code: '',//图形验证码Graphic verification code }, withdrawFee: {}, list: [], @@ -265,6 +268,8 @@ export default { getEmailCodeLock: false, JStime: 0, tiemr: null, + Graph_che: '', + hideImg: false }; }, computed: { @@ -340,6 +345,10 @@ export default { this.$toast(this.$t('reg.a9')) return } + if (!this.form.gr_code) { + this.$toast(this.$t('common.GraphicValidation')) + return + } if(this.getEmailCodeLock){return}; this.JStime = 300; this.tiemr = setInterval(()=>{ @@ -407,6 +416,7 @@ export default { this.form.code = '' if (res.code == 4001) { this.$toast(res.message); + this.reGetGraphChe();//重新获取图形验证码; } else { this.$toast.success(this.$t("assets.d5") + "!"); this.form.amount = '' @@ -459,9 +469,24 @@ export default { changeTab(ev) { 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() { this.getWithdrawRecords(); + this.gett_gc_code(); }, }; diff --git a/pages/base/home.vue b/pages/base/home.vue index 214c110..31d7b27 100644 --- a/pages/base/home.vue +++ b/pages/base/home.vue @@ -734,7 +734,8 @@ export default { }, goExchange() { this.show = false; - this.tabChange('exchange-operation') + // this.tabChange('exchange-operation') + this.tabChange('mine') }, goReg(){ uni.navigateTo({ diff --git a/pages/safe/forget-password.vue b/pages/safe/forget-password.vue index 84acdc1..e7e1a45 100644 --- a/pages/safe/forget-password.vue +++ b/pages/safe/forget-password.vue @@ -23,8 +23,8 @@ - {{$t('homeNewText.ee6')}} - + {{$t('common.GraphicValidation')}} + @@ -44,7 +44,7 @@ - {{$t('safe.a5')}} + {{$t('safe.a5')}}AA