体检app 优化

This commit is contained in:
binbin_pan 2024-09-19 16:20:21 +08:00
parent aa5784f946
commit c229a614cf
1 changed files with 8 additions and 6 deletions

View File

@ -37,7 +37,9 @@
<!-- 体检时间 --> <!-- 体检时间 -->
<u-calendar :show="showTime" mode="single" @confirm="confirmTime" @close="showTime = false"></u-calendar> <u-calendar :show="showTime" mode="single" @confirm="confirmTime" @close="showTime = false"></u-calendar>
<div v-if="healthTime" class="reservation-number">当天剩余可预约人数{{ reservationNumber }}</div> <div v-if="healthTime" class="reservation-number">
当天剩余可预约人数{{ reservationNumber < 0 ? '0' : reservationNumber }}
</div>
<div class="content" v-if="hospitalInfo.hospitalName"> <div class="content" v-if="hospitalInfo.hospitalName">
<h3>医院信息</h3> <h3>医院信息</h3>
@ -48,7 +50,7 @@
<div>联系方式: {{ hospitalInfo.telPhone }}</div> <div>联系方式: {{ hospitalInfo.telPhone }}</div>
</div> </div>
<div style="margin: 30px 60px" v-if="hospital && checkType && healthTime && reservationNumber != 0"> <div style="margin: 30px 60px" v-if="hospital && checkType && healthTime && reservationNumber > 0">
<u-button type="primary" text="确定预约" shape="circle" size="small" @click="handleSave"></u-button> <u-button type="primary" text="确定预约" shape="circle" size="small" @click="handleSave"></u-button>
</div> </div>
</view> </view>
@ -77,7 +79,7 @@ export default {
showTime: false, showTime: false,
columns: [], columns: [],
showPropup: false, showPropup: false,
checkId: '', checkId: '',
setMealId: '', setMealId: '',
// //
checkType: '', checkType: '',
@ -104,7 +106,7 @@ export default {
// //
getHospitalList() { getHospitalList() {
const params = { const params = {
token: this.token, token: this.token
} }
console.log('🚀 ~ getHospitalList ~ params:', params) console.log('🚀 ~ getHospitalList ~ params:', params)
uni.request({ uni.request({
@ -151,7 +153,7 @@ export default {
if (res.res == 1) { if (res.res == 1) {
// this.checkTypeList = res.obj // this.checkTypeList = res.obj
this.checkType = res.obj.combName this.checkType = res.obj.combName
this.setMealId = res.obj.id this.setMealId = res.obj.id
} }
}, },
fail: err => { fail: err => {
@ -247,7 +249,7 @@ export default {
checkId: undefined, checkId: undefined,
phyAppontTime: this.healthTime, phyAppontTime: this.healthTime,
setMealType: '3', setMealType: '3',
combName: this.checkType, combName: this.checkType
// token: this.token // token: this.token
} }
console.log('🚀 ~ handleSave ~ params:', params) console.log('🚀 ~ handleSave ~ params:', params)