Commit 280b13f6 authored by zhangrui123's avatar zhangrui123

小卫

parent 2bf6a550
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>小卫服务</title> <title>小卫服务</title>
</head> </head>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<template> <template>
<div style="height: 100%; background-color: #F5F5F5"> <div style="height: 100%; background-color: #F5F5F5">
<van-dialog v-model="showDialog" title="是否再填写一份?" showConfirmButton show-cancel-button @confirm='clearAllFormFields'></van-dialog> <van-dialog v-model="showDialog" title="是否再填写一份?" showConfirmButton show-cancel-button @confirm='clearAllFormFields'></van-dialog>
<van-nav-bar <!-- <van-nav-bar
title="小卫服务" title="小卫服务"
/> /> -->
<van-form @submit="onSubmit" style="border-radius: 10px; margin: 10px"> <van-form @submit="onSubmit" style="border-radius: 10px; margin: 10px">
<van-field <van-field
v-model="postPerson" v-model="postPerson"
label="报修人" label="报修人"
placeholder="请输入" placeholder="请输入报修人"
:rules="[{ required: true, message: '此项为必填项!' }]" :rules="[{ required: true, message: '此项为必填项!' }]"
required required
clearable clearable
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
type="tel" type="tel"
maxlength="150" maxlength="150"
placeholder="请输入手机号码" placeholder="请输入手机号码"
:rules="[{ required: true, message: '此项为必填项!' }]" :rules="[{ required: true, message: '请输入正确的手机号!',validator: validatePhoneBYT}]"
required required
clearable clearable
label-width='8em' label-width='8em'
...@@ -194,6 +194,7 @@ export default { ...@@ -194,6 +194,7 @@ export default {
} }
}) })
}, },
repairAreaConfirm(val) { repairAreaConfirm(val) {
this.repairArea = val this.repairArea = val
this.showrepairAreaPicker = !this.showrepairAreaPicker this.showrepairAreaPicker = !this.showrepairAreaPicker
...@@ -219,7 +220,10 @@ export default { ...@@ -219,7 +220,10 @@ export default {
this.phone = '' this.phone = ''
this.dueDate = '' this.dueDate = ''
this.dueTime = '' this.dueTime = ''
} },
validatePhoneBYT(val){
return /^1[3-9][0-9]{9}$/.test(val)
},
} }
} }
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment