diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue index 074f5f1..8aa9ce7 100644 --- a/pages/center/consumer/edit.vue +++ b/pages/center/consumer/edit.vue @@ -38,9 +38,9 @@ 联系电话 - + { + res.phone = res.phone || '' this.form = res if (this.userInfo.showPhoneStatus == 1) { this.showPhone = this.form.phone @@ -282,13 +283,14 @@ }) return } - if (this.form.phone == '') { - uni.showToast({ - title: '请输入手机号', - icon: 'none' - }) - return - } + // if (this.form.phone == '') { + // uni.showToast({ + // title: '请输入手机号', + // icon: 'none' + // }) + // return + // } + // if(!(/^1[3456789]\d{9}$/.test(this.form.phone))){ // uni.showToast({ // title: "请检查手机号码格式", @@ -297,20 +299,20 @@ // // this.form.phone='' // return false; // } - if (this.form.phone.length < 5) { - uni.showToast({ - icon: "none", - title: "手机号码不能小于5位" - }) - return; - } - if (this.form.phone.length > 11) { - uni.showToast({ - icon: "none", - title: "手机号码不能大于11位" - }) - return; - } + // if (this.form.phone.length < 5) { + // uni.showToast({ + // icon: "none", + // title: "手机号码不能小于5位" + // }) + // return; + // } + // if (this.form.phone.length > 11) { + // uni.showToast({ + // icon: "none", + // title: "手机号码不能大于11位" + // }) + // return; + // } this.allList.map(item => { item.children.map(item1 => { diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue index 731adbc..29485dd 100644 --- a/pages/index/consumer/index.vue +++ b/pages/index/consumer/index.vue @@ -126,7 +126,13 @@ 客户等级 - + + {{item.label}} + + + @@ -250,6 +256,7 @@ +