|
@@ -64,6 +64,7 @@
|
|
|
<script>
|
|
|
import {saveImgToAliOss} from '@/libs/tools.js'
|
|
|
import { shopDetails,saveShop } from '@/api/shop.js'
|
|
|
+ import { isvalidPhone } from '@/libs/validate.js';
|
|
|
export default{
|
|
|
data(){
|
|
|
return{
|
|
@@ -254,8 +255,8 @@
|
|
|
},
|
|
|
// 保存
|
|
|
submit(){
|
|
|
- const testVal=/^1[34578]\d{9}$/
|
|
|
- if (!testVal.test(this.form.mobile)) {
|
|
|
+ // const testVal=/^1[34578]\d{9}$/
|
|
|
+ if (!isvalidPhone(this.form.mobile)) {
|
|
|
uni.showToast({
|
|
|
title: '请输入正确的联系电话',
|
|
|
icon: 'none'
|