This commit is contained in:
shijingjing
2022-09-29 11:49:08 +08:00
parent 4e905d03d2
commit ef58ec52d2
4 changed files with 29 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>上报人姓名</h2>
<h2>姓名</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" v-model="form.name" :maxlength="20"/>
@@ -110,7 +110,7 @@ export default {
return this.$toast('请选择上报人手机号码')
}
if (!/^1[0-9]{10,10}$/.test(this.form.phone)) {
if (!this.form.phone) {
return this.$toast('请输入正确的手机号码')
}
@@ -129,9 +129,8 @@ export default {
this.flag = true
this.$loading()
this.$instance.post(`/app/appepidemicreportmember/addOrUpdate`, {
this.$instance.post(`/app/appepidemicpreventionhealthreportinfo/addReportUser`, {
...this.form,
openid: this.user.openid
}).then(res => {
this.$hideLoading()
this.flag = false