体检app 优化
This commit is contained in:
parent
aa5784f946
commit
c229a614cf
|
|
@ -37,7 +37,9 @@
|
|||
<!-- 体检时间 -->
|
||||
<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">
|
||||
<h3>医院信息</h3>
|
||||
|
|
@ -48,7 +50,7 @@
|
|||
<div>联系方式: {{ hospitalInfo.telPhone }}</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>
|
||||
</div>
|
||||
</view>
|
||||
|
|
@ -77,7 +79,7 @@ export default {
|
|||
showTime: false,
|
||||
columns: [],
|
||||
showPropup: false,
|
||||
checkId: '',
|
||||
checkId: '',
|
||||
setMealId: '',
|
||||
// 检查类型
|
||||
checkType: '',
|
||||
|
|
@ -104,7 +106,7 @@ export default {
|
|||
// 获取医院列表
|
||||
getHospitalList() {
|
||||
const params = {
|
||||
token: this.token,
|
||||
token: this.token
|
||||
}
|
||||
console.log('🚀 ~ getHospitalList ~ params:', params)
|
||||
uni.request({
|
||||
|
|
@ -151,7 +153,7 @@ export default {
|
|||
if (res.res == 1) {
|
||||
// this.checkTypeList = res.obj
|
||||
this.checkType = res.obj.combName
|
||||
this.setMealId = res.obj.id
|
||||
this.setMealId = res.obj.id
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
|
|
@ -247,7 +249,7 @@ export default {
|
|||
checkId: undefined,
|
||||
phyAppontTime: this.healthTime,
|
||||
setMealType: '3',
|
||||
combName: this.checkType,
|
||||
combName: this.checkType
|
||||
// token: this.token
|
||||
}
|
||||
console.log('🚀 ~ handleSave ~ params:', params)
|
||||
|
|
|
|||
Loading…
Reference in New Issue