From f953640af1d0131928eb13db414557031e74f199 Mon Sep 17 00:00:00 2001 From: fanfan Date: Mon, 20 May 2024 12:27:02 +0800 Subject: [PATCH 1/6] =?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 | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pages/dealer/withdraw/apply.vue b/pages/dealer/withdraw/apply.vue index 3e0e68c..8679a37 100644 --- a/pages/dealer/withdraw/apply.vue +++ b/pages/dealer/withdraw/apply.vue @@ -20,8 +20,8 @@ {{ words.money.value }}: - + @@ -150,7 +150,6 @@ methods: { wordsAmount(e) { - let that=this let amount = e.detail.value let num = null num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1') @@ -169,19 +168,26 @@ .replace(/\./g, "") .replace("$#$", ".") } - if (num > Number(that.settlement.min_money)) { + if (Number(this.dealer.money) == 0) { uni.showToast({ - title: that.settlement.min_money > 0 ? `最多可用${Number(that.settlement.min_money)}元, 请重新输入` : - '暂无可提现金额', + title: `暂无可提现金额`, icon: 'none', duration: 2000 }) - that.inputValue = '' - that.$forceUpdate(); + this.inputValue = '' + this.$forceUpdate(); + } else if (Number(this.settlement.min_money) > num) { // 判断value值是否小于等于100, 如果大于100限制输入100 + uni.showToast({ + title: `最低可提现金额为${Number(this.settlement.min_money)}元, 请重新输入`, + icon: 'none', + duration: 2000 + }) + this.inputValue = '' + this.$forceUpdate(); } else { if (!num) { // 判断value值是否等于空,为空amount默认0, - that.inputValue = '' - that.$forceUpdate(); + this.inputValue = '' + this.$forceUpdate(); } } }, From 7b7709e46d4effd0320af224d67d16accfe556c6 Mon Sep 17 00:00:00 2001 From: fanfan Date: Mon, 20 May 2024 17:34:07 +0800 Subject: [PATCH 2/6] =?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/news/user/rechargeList.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/news/user/rechargeList.vue b/pages/news/user/rechargeList.vue index f0d8e3f..2bb0f5a 100644 --- a/pages/news/user/rechargeList.vue +++ b/pages/news/user/rechargeList.vue @@ -58,6 +58,9 @@ \ No newline at end of file + diff --git a/pages/user/index.vue b/pages/user/index.vue index aaeff67..afe7021 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -503,7 +503,7 @@ 会员管理 - + 进群有礼