From 2c514164da806a0403af9b1331564d29a9e8216c Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 4 Jun 2024 17:56:09 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E6=88=91=E7=9A=84/=E6=8F=90=E7=8E=B0):[#16?= =?UTF-8?q?86,=20#1687]=E4=B8=8D=E8=BE=93=E5=85=A5=E4=BB=BB=E4=BD=95?= =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D,=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E2=80=9C=E5=85=A8=E9=83=A8=E6=8F=90=E7=8E=B0=E2=80=9D/?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E9=87=91=E9=A2=9D=E4=BC=9A=E8=87=AA=E5=8A=A8=E8=BE=93?= =?UTF-8?q?=E5=85=A50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/withdrawal.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkg_user/views/withdrawal.vue b/pkg_user/views/withdrawal.vue index 6b96855..f59d11f 100644 --- a/pkg_user/views/withdrawal.vue +++ b/pkg_user/views/withdrawal.vue @@ -28,6 +28,7 @@ :customStyle="{ 'border': 0 }" + :disabled="commissionCount <= 0" placeholder-style="font-size:28rpx" type="digit" autofocus @@ -35,7 +36,11 @@ @input="balanceInputChange" /> - 全部提现 + 全部提现 @@ -199,7 +204,7 @@ export default { }, balanceInputChange(value) { let v = this.clearNoNum(value) - if (v > this.commissionCount) { + if (v >= this.commissionCount) { v = this.commissionCount } setTimeout(() => { @@ -207,8 +212,9 @@ export default { }, 0) }, balanceInputBlur(value) { + console.log(value) if (String(value).length == 0) { - this.amout = 0 + this.amout = '' return } if (value > this.commissionCount) { @@ -345,7 +351,7 @@ export default { }); }, withdrawalAll: function () { - if (this.commissionCount) { + if (parseFloat(this.commissionCount) > 0) { this.amout = this.commissionCount + '' } }, @@ -354,7 +360,7 @@ export default { res => { this.banks = res.data.extractBank this.minPrice = res.data.minPrice - this.commissionCount = this.$force2Decimal(res.data.commissionCount) + this.commissionCount = parseFloat(this.$force2Decimal(res.data.commissionCount)) this.gdAmount = parseFloat(res.data.gdAmount) this.gdLimit = parseFloat(res.data.gdLimit) this.feeRate = parseFloat(res.data.fl) @@ -432,6 +438,10 @@ export default { text-align: center; box-shadow: none; background: #28AAF4; + &.grey { + background-color: #f1f1f1; + color: #dcdcdc; + } } .vline {