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
diff --git a/pages/safe/login-password.vue b/pages/safe/login-password.vue
index 656c61e..5f302db 100644
--- a/pages/safe/login-password.vue
+++ b/pages/safe/login-password.vue
@@ -22,8 +22,8 @@
- {{$t('homeNewText.ee6')}}
-
+ {{$t('common.GraphicValidation')}}
+
@@ -126,9 +126,11 @@ export default {
setPassword() {
let data = this.form;
Setting.updatePassword(data, { btn: this.$refs.btn })
- .then(() => {
- this.$back();
- this.$toast.success(this.$t('safe.d3'));
+ .then((res) => {
+ if(res.code==200){
+ this.$back();
+ this.$toast.success(this.$t('safe.d3'));
+ }
})
.catch(() => {});
},