wangxiaohua 3 years ago
parent
commit
c37cfba30d
1 changed files with 17 additions and 19 deletions
  1. +17
    -19
      pages/mine/reception/addreception.vue

+ 17
- 19
pages/mine/reception/addreception.vue View File

@@ -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,


Loading…
Cancel
Save