From 08a81a11c80cd6d4b988011101f7e5dc96c73024 Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 18 Jun 2024 13:44:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goods-v2/ysf-reduce.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/goods-v2/ysf-reduce.html b/goods-v2/ysf-reduce.html index 24be49b..c3d6c7e 100644 --- a/goods-v2/ysf-reduce.html +++ b/goods-v2/ysf-reduce.html @@ -186,17 +186,17 @@ methods: { /* 立即领取 */ submit() { - if (this.ysf && this.ysf.available != 1 || this.ysf.available != 11) return; - if (phoneReg.test(this.account) && this.confirmAccount) { - if (this.account === this.confirmAccount) { - this.finalSubmit(); + if ([1, 11].includes(this.ysf.available)) { + if (phoneReg.test(this.account) && this.confirmAccount) { + if (this.account === this.confirmAccount) { + this.finalSubmit(); + } else { + this.tips('手机号输入不一致'); + } } else { - this.tips('手机号输入不一致'); + this.tips('请输入正确的手机号'); } - } else { - this.tips('请输入正确的手机号'); } - }, /* 验证后 最终提交 */