diff --git a/pages/wallet/extract.vue b/pages/wallet/extract.vue index 3f463bc..ec1c187 100644 --- a/pages/wallet/extract.vue +++ b/pages/wallet/extract.vue @@ -7,16 +7,17 @@ (≈ {{ cost || '0.00' }} CNY) {{ balance || '0.00' }} - + 提现数量 - + 全部提现 @@ -44,7 +45,7 @@ withdraw_input: '', // 提现通证数量 bank_accounts: 0, bankInfo: {}, - certification:false,//默认没有认证 + certification: false, //默认没有认证 }; }, onLoad() { @@ -60,10 +61,10 @@ // 提现基本信息 getInfo() { cashsCreate().then(res => { - this.withdraw_input = Number(res.balance) + // this.withdraw_input = Number(res.balance) this.balance = res.balance this.cost = res.cost - this.total = Number(res.balance) * Number(res.cost) + // this.total = Number(res.balance) * Number(res.cost) this.certification = res.certification uni.setStorageSync('refresh', false) }).catch(err => { @@ -73,6 +74,7 @@ }) }) }, + // 输入提现通证数量 inputNum(e) { let number = Number(e.detail.value) @@ -92,10 +94,13 @@ uni.showToast({ title: '最大值能超过' + this.balance + '', icon: 'none', - duration: 2000 + duration: 2000, + mask: true }); - this.withdraw_input = this.balance - this.total = this.balance * this.cost + this.$nextTick(() => { + this.withdraw_input = this.balance + this.total = this.balance * this.cost + }) } } }, @@ -106,7 +111,7 @@ this.total = this.balance * this.cost } else { uni.showToast({ - title: '啥也没有,我也做不到~', + title: '请核对提现金额~', icon: 'none', duration: 2000 }) @@ -145,7 +150,7 @@ } uni.showModal({ title: '温馨提示', - content:'您是否确认提现到现金红包账户,交易将免手续费', + content: '您是否确认提现到现金红包账户,交易将免手续费', confirmColor: '#7c52fc', cancelColor: '#cacaca', cancelText: '我再想想', diff --git a/pages/wallet/extractRed.vue b/pages/wallet/extractRed.vue index 44b7a72..0bfa861 100644 --- a/pages/wallet/extractRed.vue +++ b/pages/wallet/extractRed.vue @@ -23,7 +23,7 @@ 提现金额 - + 全部提现 @@ -96,7 +96,7 @@ this.balance = res.balance this.tax = res.tax this.bank_accounts = res.bank_accounts.length - this.withdraw_input = Number(res.balance) + // this.withdraw_input = Number(res.balance) this.certification = res.certification uni.setStorageSync('refresh', false) }).catch(err => { @@ -117,16 +117,20 @@ uni.showToast({ title: '当前不能提现', icon: 'none', - duration: 2000 + duration: 2000, + mask: true }); this.withdraw_input = 0 } else { uni.showToast({ title: '最大值能超过' + this.balance + '', icon: 'none', - duration: 2000 + duration: 2000, + mask: true }); - this.withdraw_input = this.balance + this.$nextTick(() => { + this.withdraw_input = this.balance + }) } } },