From c37cfba30d8483142dc97babeec904a9655cfe94 Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Fri, 10 Dec 2021 16:47:46 +0800 Subject: [PATCH] init --- pages/mine/reception/addreception.vue | 36 +++++++++++++-------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue index 67d9376..40aa50b 100644 --- a/pages/mine/reception/addreception.vue +++ b/pages/mine/reception/addreception.vue @@ -145,30 +145,28 @@ }) return; } - // (this.parames.phone && !this.$u.test.mobile(this.parames.phone)) - // if (this.parames.phone) { - // uni.showToast({ - // icon: "none", - // title: "手机号码不能为空" - // }) - // return; - // } - console.log(this.parames.phone.length) - - if (this.parames.phone && this.parames.phone.length<5) { - uni.showToast({ - icon: "none", - title: "手机号码不能小于5位" - }) - return; - } - if (this.parames.phone && this.parames.phone.length>11) { + if (this.parames.phone && !this.$u.test.mobile(this.parames.phone)) { uni.showToast({ icon: "none", - title: "手机号码不能大于11位" + title: "手机号码格式不正确" }) return; } + + // if (this.parames.phone && this.parames.phone.length<5) { + // uni.showToast({ + // icon: "none", + // title: "手机号码不能小于5位" + // }) + // return; + // } + // if (this.parames.phone && this.parames.phone.length>11) { + // uni.showToast({ + // icon: "none", + // title: "手机号码不能大于11位" + // }) + // return; + // } const that = this; this.$u.post("customer/daitiReception", { phone: that.parames.phone,