Fix(入驻):供应商入驻手机号校验错误
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
<template #value>
|
||||
<u-input
|
||||
v-model="formSupplier.phone"
|
||||
maxlength="11"
|
||||
:disabled="reviewing"
|
||||
type="number"
|
||||
border="none"
|
||||
@@ -718,11 +719,11 @@ export default {
|
||||
},
|
||||
getCode() {
|
||||
if (this.reviewing) return
|
||||
if (this.form.phone.length === 0) {
|
||||
uni.$u.toast('请输入位手机号')
|
||||
if (this.formSupplier.phone.length === 0) {
|
||||
uni.$u.toast('请输入手机号')
|
||||
return
|
||||
}
|
||||
if (this.form.phone.length !== 11) {
|
||||
if (this.formSupplier.phone.length !== 11) {
|
||||
uni.$u.toast('请输入11位手机号')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
<u-input
|
||||
v-model="form.phone"
|
||||
:disabled="reviewing"
|
||||
maxlength="11"
|
||||
type="number"
|
||||
border="none"
|
||||
placeholder="请填写联系方式"
|
||||
@@ -328,7 +329,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) {
|
||||
|
||||
Reference in New Issue
Block a user