Fix(入驻):供应商入驻手机号校验错误

This commit is contained in:
lifizer
2024-07-05 19:40:42 +08:00
parent b3e67abbec
commit 44d4a21eba
3 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -218,6 +218,7 @@
<u-input
v-model="form.phone"
:disabled="reviewing"
maxlength="11"
type="number"
border="none"
placeholder="请填写联系方式"
@@ -538,7 +539,7 @@ export default {
getCode() {
if (this.reviewing) return
if (this.form.phone.length === 0) {
uni.$u.toast('请输入手机号')
uni.$u.toast('请输入手机号')
return
}
if (this.form.phone.length !== 11) {