|
@ -34,15 +34,19 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="item member-style" v-else> |
|
|
<view class="item member-style" v-else> |
|
|
<view class="left">就诊人:</view> |
|
|
<view class="left">就诊人:</view> |
|
|
<view class="right over2 over5">①王鹏 ②张富贵 ③张杨明</view> |
|
|
<view class="right over2 over5"> |
|
|
|
|
|
<text v-for="(item,key) in activeVisitors"> |
|
|
|
|
|
<text v-if="key<=9">{{nums[key]}}</text><text v-else>n.</text>{{item.real_name}} |
|
|
|
|
|
</text> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item" > |
|
|
<view class="left">医生姓名:</view> |
|
|
<view class="left">医生姓名:</view> |
|
|
<view class="right">李静</view> |
|
|
<view class="right">{{doctorInfo.name}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
|
<view class="left">就诊医院:</view> |
|
|
<view class="left">就诊医院:</view> |
|
|
<view class="right over2 over5">广安门中医医院西单门诊部 中医科</view> |
|
|
<view class="right over2 over5">{{hospital.hospital_name}} {{hospital.hospital_dept_name}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
|
<view class="left">看诊时间:</view> |
|
|
<view class="left">看诊时间:</view> |
|
@ -74,7 +78,8 @@ |
|
|
RegistrationTimeList:[], |
|
|
RegistrationTimeList:[], |
|
|
hospitalId:false, |
|
|
hospitalId:false, |
|
|
hospital:false, |
|
|
hospital:false, |
|
|
activeVisitors:[] |
|
|
activeVisitors:[], |
|
|
|
|
|
nums:['①','②','③','④','⑤','⑥','⑦','⑧','⑨','⑩'] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components:{ |
|
|
components:{ |
|
@ -90,6 +95,14 @@ |
|
|
this.activeVisitors = JSON.parse(activeVisitors) |
|
|
this.activeVisitors = JSON.parse(activeVisitors) |
|
|
this.hospitalId = uni.getStorageSync('hospital_id') |
|
|
this.hospitalId = uni.getStorageSync('hospital_id') |
|
|
this.hospital = uni.getStorageSync('hospital') |
|
|
this.hospital = uni.getStorageSync('hospital') |
|
|
|
|
|
|
|
|
|
|
|
var doctorInfo = uni.getStorageSync('doctor_info') |
|
|
|
|
|
if(!doctorInfo){ |
|
|
|
|
|
this.$pop.modelShow('请先选择要预约的医生', '/pages/index/index') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.doctorInfo = JSON.parse(doctorInfo) |
|
|
|
|
|
|
|
|
if(!this.hospitalId && this.hospital) { |
|
|
if(!this.hospitalId && this.hospital) { |
|
|
this.$pop.modelShow('请先选择要预约的医院', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的医院', '/pages/index/index') |
|
|
return |
|
|
return |
|
@ -180,9 +193,20 @@ |
|
|
closeConfirm() { |
|
|
closeConfirm() { |
|
|
this.$refs.sliderbox.closeConfirm() |
|
|
this.$refs.sliderbox.closeConfirm() |
|
|
}, |
|
|
}, |
|
|
|
|
|
appointCheck(times){ |
|
|
|
|
|
var param = new Object() |
|
|
|
|
|
param.start_time = times.start |
|
|
|
|
|
param.end_time = times.end |
|
|
|
|
|
param.date = times.date |
|
|
|
|
|
param.visit_hospital_id = this.hospitalId |
|
|
|
|
|
param.visit_user_count = this.activeVisitors.length |
|
|
|
|
|
this.$http.req('client/user/appoint/check', param).then(data=>{ |
|
|
|
|
|
if(data == -1) return |
|
|
|
|
|
this.$refs.sliderbox.showConfirm() |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
showConfirm(times) { |
|
|
showConfirm(times) { |
|
|
console.log(times) |
|
|
this.appointCheck(times) |
|
|
this.$refs.sliderbox.showConfirm() |
|
|
|
|
|
}, |
|
|
}, |
|
|
submitConfim(){ |
|
|
submitConfim(){ |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
@ -226,6 +250,12 @@ |
|
|
} |
|
|
} |
|
|
.member-style{ |
|
|
.member-style{ |
|
|
margin-top: 82rpx; |
|
|
margin-top: 82rpx; |
|
|
|
|
|
text{ |
|
|
|
|
|
margin-right: 10rpx; |
|
|
|
|
|
text{ |
|
|
|
|
|
margin-right: 5rpx; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
.item{ |
|
|
.item{ |
|
|
display: flex; |
|
|
display: flex; |
|
|