From c0e4e2d0f709543a8db1647403df667371cdf1c9 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 18 Jul 2023 17:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=992=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppMine/transferIntrgral.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project/fengdu/AppMine/transferIntrgral.vue b/src/project/fengdu/AppMine/transferIntrgral.vue index 3d7d6a9..30780e9 100644 --- a/src/project/fengdu/AppMine/transferIntrgral.vue +++ b/src/project/fengdu/AppMine/transferIntrgral.vue @@ -38,9 +38,9 @@ export default { }) }, confirm() { - if (!/^[0-9]*[1-9][0-9]*$/g.test(this.num)) { + if (!/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/g.test(this.num)) { this.num = '' - return this.$u.toast('积分数量请输入正整数') + return this.$message.error('积分数量最多只保留两位小数点') } if (this.num > this.total) { return this.$u.toast('转出积分不能大于剩余积分')