体检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>
|
<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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue