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,