Commit 266ab7a7 authored by levante's avatar levante

修改项目名为小卫服务,增加手机号字段

parent 42f60f2e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>demo</title> <title>小卫服务</title>
</head> </head>
<body> <body>
<div id="portal"></div> <div id="portal"></div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<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">
...@@ -85,6 +85,20 @@ ...@@ -85,6 +85,20 @@
label-width='8em' label-width='8em'
/> />
<van-field
v-model="phone"
rows="2"
autosize
label="手机号码"
type="tel"
maxlength="150"
placeholder="请输入手机号码"
:rules="[{ required: true, message: '此项为必填项!' }]"
required
clearable
label-width='8em'
/>
<van-field <van-field
readonly readonly
clickable clickable
...@@ -143,6 +157,7 @@ export default { ...@@ -143,6 +157,7 @@ export default {
description: '', description: '',
dueDate: '', dueDate: '',
dueTime: '', dueTime: '',
phone: '',
repairAreaPicker: '', repairAreaPicker: '',
repairTypePicker: '', repairTypePicker: '',
...@@ -166,6 +181,7 @@ export default { ...@@ -166,6 +181,7 @@ export default {
'reportorName': this.postPerson, 'reportorName': this.postPerson,
'address': this.repairAddr, 'address': this.repairAddr,
'place': this.repairArea, 'place': this.repairArea,
'phone': this.phone,
'dscr': this.description, 'dscr': this.description,
'homeDate': this.dueDate, 'homeDate': this.dueDate,
'homeTime': this.dueTime 'homeTime': this.dueTime
...@@ -199,6 +215,7 @@ export default { ...@@ -199,6 +215,7 @@ export default {
this.repairArea = '' this.repairArea = ''
this.repairType = '' this.repairType = ''
this.description = '' this.description = ''
this.phone = ''
this.dueDate = '' this.dueDate = ''
this.dueTime = '' this.dueTime = ''
} }
......
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