|
@@ -145,30 +145,28 @@ |
|
|
}) |
|
|
}) |
|
|
return; |
|
|
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({ |
|
|
uni.showToast({ |
|
|
icon: "none", |
|
|
icon: "none", |
|
|
title: "手机号码不能大于11位" |
|
|
|
|
|
|
|
|
title: "手机号码格式不正确" |
|
|
}) |
|
|
}) |
|
|
return; |
|
|
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; |
|
|
const that = this; |
|
|
this.$u.post("customer/daitiReception", { |
|
|
this.$u.post("customer/daitiReception", { |
|
|
phone: that.parames.phone, |
|
|
phone: that.parames.phone, |
|
|