From 23e341e015efc0fe4e948a36ef88f53cdc4dd670 Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 17 May 2024 17:17:43 +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 | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pages/dealer/withdraw/apply.vue b/pages/dealer/withdraw/apply.vue index ecb87e2..a7bc874 100644 --- a/pages/dealer/withdraw/apply.vue +++ b/pages/dealer/withdraw/apply.vue @@ -20,8 +20,8 @@ {{ words.money.value }}: - + @@ -135,7 +135,8 @@ // 背景图 background: undefined, // 按钮禁用 - disabled: false + disabled: false, + inputValue: null } }, @@ -149,7 +150,6 @@ methods: { wordsAmount(e) { - console.log(this.form) let amount = e.detail.value let num = null num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1') @@ -175,14 +175,11 @@ icon: 'none', duration: 2000 }) - this.$refs.inputClear.setValue() + this.inputValue = '' this.$forceUpdate(); } else { if (!num) { // 判断value值是否等于空,为空amount默认0, - this.$refs.inputClear.setValue() - this.$forceUpdate(); - } else { - this.$refs.inputClear.setValue() + this.inputValue = '' this.$forceUpdate(); } } @@ -229,9 +226,9 @@ }) { const app = this // 表单验证 - if (!app.onValidation(detail.value)) { - return false - } + // if (!app.onValidation(detail.value)) { + // return false + // } // 确认是否提交 uni.showModal({ title: '友情提示', @@ -252,7 +249,6 @@ const app = this app.disabled = true data.pay_type = app.payment - console.log(data) WithdrawApi.submit({ form: data })