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 {