1.兼容中国台湾、中国香港手机号码 2.增加相关书籍模块
This commit is contained in:
@@ -288,7 +288,7 @@ export default {
|
||||
validateFunction: (rule, value, data, callback) => {
|
||||
// 异步需要返回 Promise 对象
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!this.$base.phoneRegular.test(value)) {
|
||||
if (!/^\d{5,15}$/.test(value)) {
|
||||
reject(new Error("手机号格式不正确"));
|
||||
} else {
|
||||
resolve();
|
||||
|
||||
@@ -91,6 +91,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<slot name="tjProList" :showTabs="showTabs"></slot>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user