|
@@ -159,6 +159,7 @@
|
|
|
import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
|
|
|
import {cancelOrder,saomaOrder,hasOrder} from '@/api/order.js'
|
|
|
import vSelect from '@/components/select/v-select.vue'
|
|
|
+ import { isvalidPhone } from '@/libs/validate.js';
|
|
|
export default{
|
|
|
components: {uniPopup,uniPopupDialog,vSelect,uniNavBar},
|
|
|
data(){
|
|
@@ -209,7 +210,7 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
console.log(this.$store.state.vuex_orderInfo,'===============时间id')
|
|
|
- this.pageInit()
|
|
|
+ // this.pageInit()
|
|
|
wx.getSystemInfo({success: (res)=>{
|
|
|
if(res.statusBarHeight){
|
|
|
console.log(res.statusBarHeight,'--------res.statusBarHeight')
|
|
@@ -577,8 +578,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'
|