健康上报

This commit is contained in:
shijingjing
2022-10-09 16:31:56 +08:00
parent 87fbb25738
commit 9038f17227
2 changed files with 8 additions and 16 deletions

View File

@@ -142,10 +142,6 @@
</div> </div>
<u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker> <u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker>
<div class="agree">
<u-checkbox v-model="isChecked"></u-checkbox>
<span class="deal">以上信息是我本人填写本人对信息内容的真实性和完整性负责</span>
</div>
<div class="btn-wrapper"> <div class="btn-wrapper">
<div class="btn" hover-class="text-hover" @click="submit">提交</div> <div class="btn" hover-class="text-hover" @click="submit">提交</div>
</div> </div>
@@ -245,7 +241,7 @@ export default {
return this.$toast('请上传健康码截图') return this.$toast('请上传健康码截图')
} }
this.$loading() this.$loading()
this.$instance.post(`/app/appepidemichealthreport/addOrUpdate`, { this.$instance.post(`/app/appepidemicpreventionhealthreportinfo/addReportInfo`, {
...this.form, ...this.form,
openid: this.user.openid, openid: this.user.openid,
health: this.form.health.join(','), health: this.form.health.join(','),
@@ -456,10 +452,5 @@ export default {
} }
} }
} }
.agree {
padding: 0 32px;
display: flex;
}
} }
</style> </style>

View File

@@ -19,7 +19,7 @@
<h2>身份证号</h2> <h2>身份证号</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<input placeholder="请输入" type="idcard" v-model="form.idNumber" :maxlength="20"/> <input placeholder="请输入" type="idcard" v-model="form.idNumber" :maxlength="18"/>
</div> </div>
</div> </div>
</div> </div>
@@ -78,12 +78,12 @@ export default {
data() { data() {
return { return {
form: { form: {
address: '', name: '',
idNumber: '',
phone: '',
areaId: '', areaId: '',
areaName: '', areaName: '',
idNumber: '', address: '',
name: '',
phone: ''
}, },
$areaId: '', $areaId: '',
flag: false flag: false
@@ -138,8 +138,9 @@ export default {
this.$toast('提交成功') this.$toast('提交成功')
uni.$emit('update') uni.$emit('update')
setTimeout(() => { setTimeout(() => {
// ?id=${res.data.id}
uni.redirectTo({ uni.redirectTo({
url: `./Result?id=${res.data.id}` url: `./Result`
}) })
}, 400) }, 400)
} }