diff --git a/pages_order/auth/Modifyinformation.vue b/pages_order/auth/Modifyinformation.vue index 0894c0f..0152c48 100644 --- a/pages_order/auth/Modifyinformation.vue +++ b/pages_order/auth/Modifyinformation.vue @@ -168,6 +168,17 @@ return } + // #ifdef H5 + // H5端需要验证手机号格式 + if (!self.$utils.verificationPhone(self.userInfoForm.phone)) { + uni.showToast({ + title: '请输入正确的手机号格式', + icon: 'none' + }) + return + } + // #endif + self.$api('updateInfo', { avatarUrl: self.userInfoForm.headImage, nickName: self.userInfoForm.nickName, diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue index cf44311..3b0fb61 100644 --- a/pages_order/auth/wxUserInfo.vue +++ b/pages_order/auth/wxUserInfo.vue @@ -177,6 +177,17 @@ return } + // #ifdef H5 + // H5端需要验证手机号格式 + if (!self.$utils.verificationPhone(self.userInfoForm.phone)) { + uni.showToast({ + title: '请输入正确的手机号格式', + icon: 'none' + }) + return + } + // #endif + self.$api('updateInfo', { avatarUrl : self.userInfoForm.headImage, nickName : self.userInfoForm.nickName,