From 597941612c5892877bd4baea71579987b0139898 Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Wed, 29 Sep 2021 18:08:54 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A2=8E=E7=89=87=E5=88=97=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=AA=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/wallet/extract.vue | 36 +++++++++++++++++++++++++++--------- pages/wallet/fragment.vue | 8 ++++++-- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/pages/wallet/extract.vue b/pages/wallet/extract.vue index a550daa..f6594b2 100644 --- a/pages/wallet/extract.vue +++ b/pages/wallet/extract.vue @@ -26,7 +26,8 @@ 提现数量 + placeholder-style="color:#999;font-weight:normal; font-size:34rpx;" + placeholder="请输入提现数量" :disabled="balance===0" /> 全部提现 @@ -84,16 +85,30 @@ // 输入提现能量球数量 inputNum(e) { let number = Number(e.detail.value) - if (number <= this.balance) { + console.log(number, this.balance) + if (number <= Number(this.balance)) { this.total = Number(e.detail.value) * this.cost } else { - uni.showToast({ - title: '最大值能超过' + this.balance + '', - icon: 'none', - duration: 2000 - }); - this.withdraw_input = '' this.total = 0 + if (Number(this.balance) === 0) { + uni.showToast({ + title: '当前不能提现', + icon: 'none', + duration: 2000 + }); + this.withdraw_input = 0 + this.total = 0 + } else { + uni.showToast({ + title: '最大值能超过' + this.balance + '', + icon: 'none', + duration: 2000 + }); + this.withdraw_input = this.balance + this.total = this.balance * this.cost + } + + } }, @@ -108,6 +123,7 @@ icon: 'none', duration: 2000 }) + this.withdraw_input = 0 } }, // 提现 @@ -321,10 +337,12 @@ color: #666; margin-right: 20rpx; } - .inputTxt{ + + .inputTxt { color: #999; padding-bottom: 20rpx; } + .input_num { font-size: 60rpx; color: #3a3a3a; diff --git a/pages/wallet/fragment.vue b/pages/wallet/fragment.vue index 7179401..ee1db06 100644 --- a/pages/wallet/fragment.vue +++ b/pages/wallet/fragment.vue @@ -45,7 +45,7 @@ - {{item.remark}} + {{item.remark}} {{item.frozen.text}} {{item.amount}} {{item.created_at}} @@ -222,7 +222,11 @@ justify-content: space-between; box-sizing: border-box; width: 600rpx; - + .tags{ + padding-left: 20rpx; + color: #ff5500; + font-size: 24rpx; + } .title { font-size: 28rpx; width: 600rpx;