授权
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user