From 8d67cac8d6b6eaa724fc0da6e733117d0744caef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Wed, 1 Mar 2023 17:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/coupon/index.vue | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/views/system/coupon/index.vue b/src/views/system/coupon/index.vue index 8cc112e..b5e96c0 100644 --- a/src/views/system/coupon/index.vue +++ b/src/views/system/coupon/index.vue @@ -281,9 +281,9 @@ = 0) { + checkPlan = checkPlan + .replace(/^()*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数 + } + this.form.couponConsumePrice = checkPlan + + }, + oninput(num) { let str = num; const len1 = str.substr(0, 1);