wangxiaohua pirms 3 gadiem
vecāks
revīzija
c37cfba30d
1 mainītis faili ar 17 papildinājumiem un 19 dzēšanām
  1. +17
    -19
      pages/mine/reception/addreception.vue

+ 17
- 19
pages/mine/reception/addreception.vue Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt