Browse Source

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

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

3
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;

54
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;

6
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);

1
pages/base/home.vue

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

Loading…
Cancel
Save