Commit 951085e0 authored by zhangrui123's avatar zhangrui123

小卫

parent c167c713
......@@ -9,7 +9,7 @@
<van-field
v-model="postPerson"
label="报修人"
placeholder="请输入"
placeholder="请输入报修人"
:rules="[{ required: true, message: '此项为必填项!' }]"
required
clearable
......@@ -24,7 +24,7 @@
type="tel"
maxlength="150"
placeholder="请输入手机号码"
:rules="[{ required: true, message: '此项为必填项!' }]"
:rules="[{ required: true, message: '请输入正确的手机号!' ,validator: validator}]"
required
clearable
label-width='8em'
......@@ -194,6 +194,9 @@ export default {
}
})
},
validator(val) {
return /^1[3-9][0-9]{9}$/.test(val)
},
repairAreaConfirm(val) {
this.repairArea = val
this.showrepairAreaPicker = !this.showrepairAreaPicker
......
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