From 9749648998eb5a2ad62968be7c391a23bb0f011a Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 17 May 2024 17:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/dealer/withdraw/apply.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/dealer/withdraw/apply.vue b/pages/dealer/withdraw/apply.vue index f604cec..ecb87e2 100644 --- a/pages/dealer/withdraw/apply.vue +++ b/pages/dealer/withdraw/apply.vue @@ -20,7 +20,7 @@ {{ words.money.value }}: - @@ -149,7 +149,7 @@ methods: { wordsAmount(e) { - console.log(this.words.money) + console.log(this.form) let amount = e.detail.value let num = null num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1') @@ -170,18 +170,19 @@ } if (num > Number(this.settlement.min_money)) { // 判断value值是否小于等于100, 如果大于100限制输入100 uni.showToast({ - title: this.settlement.min_money > 0 ? `最多可用${Number(this.settlement.min_money)}元, 请重新输入` : '暂无可提现金额', + title: this.settlement.min_money > 0 ? `最多可用${Number(this.settlement.min_money)}元, 请重新输入` : + '暂无可提现金额', icon: 'none', duration: 2000 }) - // this.words.money = this.settlement.min_money > 0 ? this.settlement.min_money : '' + this.$refs.inputClear.setValue() this.$forceUpdate(); } else { if (!num) { // 判断value值是否等于空,为空amount默认0, - this.words.money = '' + this.$refs.inputClear.setValue() this.$forceUpdate(); } else { - // this.words.money = num + this.$refs.inputClear.setValue() this.$forceUpdate(); } } @@ -251,6 +252,7 @@ const app = this app.disabled = true data.pay_type = app.payment + console.log(data) WithdrawApi.submit({ form: data })