Commit 280b13f6 authored by zhangrui123's avatar zhangrui123

小卫

parent 2bf6a550
......@@ -2,7 +2,7 @@
<html>
<head>
<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">
<title>小卫服务</title>
</head>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<template>
<div style="height: 100%; background-color: #F5F5F5">
<van-dialog v-model="showDialog" title="是否再填写一份?" showConfirmButton show-cancel-button @confirm='clearAllFormFields'></van-dialog>
<van-nav-bar
<!-- <van-nav-bar
title="小卫服务"
/>
/> -->
<van-form @submit="onSubmit" style="border-radius: 10px; margin: 10px">
<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: validatePhoneBYT}]"
required
clearable
label-width='8em'
......@@ -194,6 +194,7 @@ export default {
}
})
},
repairAreaConfirm(val) {
this.repairArea = val
this.showrepairAreaPicker = !this.showrepairAreaPicker
......@@ -219,7 +220,10 @@ export default {
this.phone = ''
this.dueDate = ''
this.dueTime = ''
}
},
validatePhoneBYT(val){
return /^1[3-9][0-9]{9}$/.test(val)
},
}
}
</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