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: case 4001:
resolve(res.data); resolve(res.data);
break; break;
case 4010:
resolve(res.data);
break;
default: default:
reject(message); reject(message);
break; break;

54
pages/assets/draw.vue

@ -410,31 +410,35 @@ 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){
} else { this.$toast(this.$t('currency.b5'));
this.$toast.success(this.$t("assets.d5") + "!"); setTimeout(()=>{
this.form.amount = '' uni.navigateTo({
setTimeout(()=>{ url:'/pages/auth/index'
uni.navigateTo({ })
url:'/pages/assets/records?type='+this.type },2000)
}) }else{
}, 1500) this.$toast.success(this.$t("assets.d5") + "!");
// setTimeout(()=>{ this.form.amount = ''
// this.getWithdrawRecords(); setTimeout(()=>{
// }, 2000) uni.navigateTo({
// setTimeout(()=>{ url:'/pages/assets/records?type='+this.type
// this.getWithdrawRecords(); })
// }, 3000) }, 1500)
} // setTimeout(()=>{
}) // this.getWithdrawRecords();
.catch(() => { // }, 2000)
}); // setTimeout(()=>{
// this.getWithdrawRecords();
// }, 3000)
}
}).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