diff --git a/api/serve/index.js b/api/serve/index.js index 4b68a54..70f7a1e 100644 --- a/api/serve/index.js +++ b/api/serve/index.js @@ -118,6 +118,9 @@ x.fn = x.prototype = { case 4001: resolve(res.data); break; + case 4010: + resolve(res.data); + break; default: reject(message); break; diff --git a/pages/assets/draw.vue b/pages/assets/draw.vue index 04e738d..504fa4c 100644 --- a/pages/assets/draw.vue +++ b/pages/assets/draw.vue @@ -410,31 +410,35 @@ export default { draw() { this.form.addressType = this.rechargeType; this.form.coin_id = this.activeCoin.coin_id; - Wallet.withdraw(this.form, {btn: this.$refs.btn}) - .then((res) => { - this.secondaryShow = false - this.form.code = '' - if (res.code == 4001) { - this.$toast(res.message); - // this.reGetGraphChe();//重新获取图形验证码; - } else { - this.$toast.success(this.$t("assets.d5") + "!"); - this.form.amount = '' - setTimeout(()=>{ - uni.navigateTo({ - url:'/pages/assets/records?type='+this.type - }) - }, 1500) - // setTimeout(()=>{ - // this.getWithdrawRecords(); - // }, 2000) - // setTimeout(()=>{ - // this.getWithdrawRecords(); - // }, 3000) - } - }) - .catch(() => { - }); + Wallet.withdraw(this.form, {btn: this.$refs.btn}).then((res) => { + this.secondaryShow = false + this.form.code = '' + if (res.code == 4001) { + this.$toast(res.message); + // this.reGetGraphChe();//重新获取图形验证码; + } else if(res.code == 4010){ + this.$toast(this.$t('currency.b5')); + setTimeout(()=>{ + uni.navigateTo({ + url:'/pages/auth/index' + }) + },2000) + }else{ + this.$toast.success(this.$t("assets.d5") + "!"); + this.form.amount = '' + setTimeout(()=>{ + uni.navigateTo({ + url:'/pages/assets/records?type='+this.type + }) + }, 1500) + // setTimeout(()=>{ + // this.getWithdrawRecords(); + // }, 2000) + // setTimeout(()=>{ + // this.getWithdrawRecords(); + // }, 3000) + } + }).catch(() => {}); }, reset() { this.loadMore = true; diff --git a/pages/assets/records.vue b/pages/assets/records.vue index 5499f47..ab82a6d 100644 --- a/pages/assets/records.vue +++ b/pages/assets/records.vue @@ -115,6 +115,12 @@ import formData from "@/utils/class/date"; this.depositHistory(); } }, + cancelWithdraw(item) { + Wallet.cancelWithdraw({ withdraw_id: item.id }).then(res => { + this.$toast(this.$t('otc.d4')); + this.getWithdrawRecords() + }) + }, }, onLoad(e) { // console.log('---------',e); diff --git a/pages/base/home.vue b/pages/base/home.vue index 6a31ba3..9fc43d1 100644 --- a/pages/base/home.vue +++ b/pages/base/home.vue @@ -1114,6 +1114,7 @@ getAuthInfo() { Profile.getAuthInfo().then(res => { this.detail = res.data + uni.setStorageSync('getAuthInfo1',res.data) }) }, toDwon() {