Browse Source

修改提币页面需高级认证然后跳转页面

master
liaoxinyu 6 months ago
parent
commit
d18dbf5180
  1. 3
      api/serve/index.js
  2. 14
      pages/assets/draw.vue
  3. 6
      pages/assets/records.vue
  4. 1
      pages/base/home.vue

3
api/serve/index.js

@ -116,6 +116,9 @@ x.fn = x.prototype = {
resolve(res.data); resolve(res.data);
break; break;
case 4001: case 4001:
resolve(res.data);
break;
case 4010:
resolve(res.data); resolve(res.data);
break; break;
default: default:

14
pages/assets/draw.vue

@ -410,13 +410,19 @@ export default {
draw() { draw() {
this.form.addressType = this.rechargeType; this.form.addressType = this.rechargeType;
this.form.coin_id = this.activeCoin.coin_id; this.form.coin_id = this.activeCoin.coin_id;
Wallet.withdraw(this.form, {btn: this.$refs.btn}) Wallet.withdraw(this.form, {btn: this.$refs.btn}).then((res) => {
.then((res) => {
this.secondaryShow = false this.secondaryShow = false
this.form.code = '' this.form.code = ''
if (res.code == 4001) { if (res.code == 4001) {
this.$toast(res.message); this.$toast(res.message);
// this.reGetGraphChe();// // this.reGetGraphChe();//
} else if(res.code == 4010){
this.$toast(this.$t('currency.b5'));
setTimeout(()=>{
uni.navigateTo({
url:'/pages/auth/index'
})
},2000)
}else{ }else{
this.$toast.success(this.$t("assets.d5") + "!"); this.$toast.success(this.$t("assets.d5") + "!");
this.form.amount = '' this.form.amount = ''
@ -432,9 +438,7 @@ export default {
// this.getWithdrawRecords(); // this.getWithdrawRecords();
// }, 3000) // }, 3000)
} }
}) }).catch(() => {});
.catch(() => {
});
}, },
reset() { reset() {
this.loadMore = true; this.loadMore = true;

6
pages/assets/records.vue

@ -115,6 +115,12 @@ import formData from "@/utils/class/date";
this.depositHistory(); this.depositHistory();
} }
}, },
cancelWithdraw(item) {
Wallet.cancelWithdraw({ withdraw_id: item.id }).then(res => {
this.$toast(this.$t('otc.d4'));
this.getWithdrawRecords()
})
},
}, },
onLoad(e) { onLoad(e) {
// console.log('---------',e); // console.log('---------',e);

1
pages/base/home.vue

@ -1114,6 +1114,7 @@
getAuthInfo() { getAuthInfo() {
Profile.getAuthInfo().then(res => { Profile.getAuthInfo().then(res => {
this.detail = res.data this.detail = res.data
uni.setStorageSync('getAuthInfo1',res.data)
}) })
}, },
toDwon() { toDwon() {

Loading…
Cancel
Save