From 18908f8a7dd177a0bffe0770eeeff82b792963ba Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 24 Nov 2023 09:37:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/details.html | 6 ++++++ exchange.html | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/coupon/details.html b/coupon/details.html index 01fc02b..5285880 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -462,6 +462,12 @@ let weiXinReg = /^[a-zA-Z][a-zA-Z\d_-]{5,19}$/.test(this.account); let regFlag = true; switch (Number(this.productType)) { + case 0: + /* 不做校验 */ + break; + case 99: + /* 不做校验 */ + break; case 1: regFlag = phoneReg; break; diff --git a/exchange.html b/exchange.html index 8a3c2f0..0d3c553 100644 --- a/exchange.html +++ b/exchange.html @@ -261,7 +261,9 @@ let emailsreg = /^[A-Za-z0-9\u4e00-\u9fa5\.]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(this.account); let weixinreg = /^[a-zA-Z][a-zA-Z\d_-]{5,19}$/.test(this.account); let regflag = true; - if (this.productType == 1) { + if ([0, 99].includes(this.productType)) { + /* 不做校验 */ + } else if (this.productType == 1) { regflag = phonereg; } else if (this.productType == 2) { regflag = emailsreg;