|
@ -27,7 +27,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="item" > |
|
|
<view class="item" > |
|
|
<view class="left">医生姓名:</view> |
|
|
<view class="left">医生姓名:</view> |
|
|
<view class="right">{{doctorInfo.doctor_info.doctor_name}}</view> |
|
|
<view class="right">{{doctor_name}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
|
<view class="left">就诊医院:</view> |
|
|
<view class="left">就诊医院:</view> |
|
@ -64,30 +64,41 @@ |
|
|
departId:false, |
|
|
departId:false, |
|
|
depart:false, |
|
|
depart:false, |
|
|
visitor_ids:false, |
|
|
visitor_ids:false, |
|
|
|
|
|
checkin:false, |
|
|
|
|
|
doctor_name:'' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components:{ |
|
|
components:{ |
|
|
Book, |
|
|
Book, |
|
|
SliderBox |
|
|
SliderBox |
|
|
}, |
|
|
}, |
|
|
|
|
|
onLoad(option) { |
|
|
|
|
|
if(option.checkin) this.checkin = true |
|
|
|
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
var activeVisitors = uni.getStorageSync('active_visitors') |
|
|
|
|
|
if(!activeVisitors){ |
|
|
|
|
|
this.$func.toPage('/pages/index/index') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.activeVisitors = JSON.parse(activeVisitors) |
|
|
|
|
|
this.departId = uni.getStorageSync('depart_id') |
|
|
this.departId = uni.getStorageSync('depart_id') |
|
|
this.depart = uni.getStorageSync('depart') |
|
|
this.depart = uni.getStorageSync('depart') |
|
|
var doctorInfo = uni.getStorageSync('doctor_info') |
|
|
var doctorInfo = uni.getStorageSync('doctor_info') |
|
|
|
|
|
|
|
|
|
|
|
var redi_path = '/pages/index/index' |
|
|
|
|
|
if(this.departId && this.checkin) redi_path = "/pages/visitors/visitors?type=3&depart_id="+this.departId |
|
|
if(!doctorInfo){ |
|
|
if(!doctorInfo){ |
|
|
this.$pop.modelShow('请先选择要预约的医生', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的医生', redi_path) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var activeVisitors = uni.getStorageSync('active_visitors') |
|
|
|
|
|
if(!activeVisitors){ |
|
|
|
|
|
this.$func.toPage(redi_path) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.activeVisitors = JSON.parse(activeVisitors) |
|
|
|
|
|
|
|
|
this.doctorInfo = JSON.parse(doctorInfo) |
|
|
this.doctorInfo = JSON.parse(doctorInfo) |
|
|
|
|
|
this.doctor_name = this.doctorInfo.doctor_info.doctor_name |
|
|
|
|
|
|
|
|
if(!this.departId && this.depart) { |
|
|
if(!this.departId && this.depart) { |
|
|
this.$pop.modelShow('请先选择要预约的医院科室', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的医院科室', redi_path) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.depart = JSON.parse(this.depart) |
|
|
this.depart = JSON.parse(this.depart) |
|
@ -120,7 +131,11 @@ |
|
|
times:false, |
|
|
times:false, |
|
|
success() { |
|
|
success() { |
|
|
setTimeout(function(){ |
|
|
setTimeout(function(){ |
|
|
that.$nav.navToPath("/pages/prebook_list/prebook_list") |
|
|
if(that.checkin) { |
|
|
|
|
|
that.$nav.navToPath("/pages/visitors/visitors?type=3&depart_id="+that.departId) |
|
|
|
|
|
}else{ |
|
|
|
|
|
that.$nav.navToPath("/pages/prebook_list/prebook_list") |
|
|
|
|
|
} |
|
|
}, 1500) |
|
|
}, 1500) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|