|
|
@ -21,7 +21,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<img :src="cssUrl+'right_bg.png'" alt=""> |
|
|
<img :src="cssUrl+'right_bg.png'" alt=""> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="con"> |
|
|
<view class="con"> |
|
|
<!-- <view class="con over2 over4"> --> |
|
|
<!-- <view class="con over2 over4"> --> |
|
|
{{doctorInfo.doctor_info.doctor_detail}} |
|
|
{{doctorInfo.doctor_info.doctor_detail}} |
|
|
@ -29,14 +29,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="block hospital-wrapper" v-if="hospitals"> |
|
|
<view class="block hospital-wrapper" v-if="hospitals"> |
|
|
|
|
|
|
|
|
<view class="title-wrapper flex"> |
|
|
<view class="title-wrapper flex"> |
|
|
<view class="title"> |
|
|
<view class="title"> |
|
|
出诊信息 |
|
|
出诊信息 |
|
|
</view> |
|
|
</view> |
|
|
<img :src="cssUrl+'right_bg.png'" alt=""> |
|
|
<img :src="cssUrl+'right_bg.png'" alt=""> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="item" v-for="(item,key) in hospitals"> |
|
|
<view class="item" v-for="(item,key) in hospitals"> |
|
|
<view class="top flex"> |
|
|
<view class="top flex"> |
|
|
<view class="left"> |
|
|
<view class="left"> |
|
|
@ -46,14 +46,14 @@ |
|
|
<!-- {{item.depart_name}} --> |
|
|
<!-- {{item.depart_name}} --> |
|
|
<!-- 科室 --> |
|
|
<!-- 科室 --> |
|
|
</text> |
|
|
</text> |
|
|
|
|
|
|
|
|
<view class="fixed_hospital">医保定点</view> |
|
|
<!-- <view class="fixed_hospital">医保定点</view> --> |
|
|
<!-- <img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> --> |
|
|
<!-- <img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="date over2 over4" v-if="item.address"> |
|
|
<view class="date over2 over4" v-if="item.address"> |
|
|
|
|
|
|
|
|
{{item.address}} |
|
|
{{item.address}} |
|
|
|
|
|
|
|
|
<!-- 出诊:{{ item.workdate_desc }} --> |
|
|
<!-- 出诊:{{ item.workdate_desc }} --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -63,20 +63,20 @@ |
|
|
<img :src="cssUrl+'index_nav.svg'" alt=""> |
|
|
<img :src="cssUrl+'index_nav.svg'" alt=""> |
|
|
<view>导航</view> |
|
|
<view>导航</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- <view v-if="item.address" class="flex copy_btn" @click="copyAddress(item.address)" style="justify-content:center;flex-wrap: wrap;"> |
|
|
<!-- <view v-if="item.address" class="flex copy_btn" @click="copyAddress(item.address)" style="justify-content:center;flex-wrap: wrap;"> |
|
|
<img :src="cssUrl+'copy_green.svg'" alt=""> |
|
|
<img :src="cssUrl+'copy_green.svg'" alt=""> |
|
|
<view>复制地址</view> |
|
|
<view>复制地址</view> |
|
|
</view> --> |
|
|
</view> --> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="center"> |
|
|
<view class="center"> |
|
|
出诊:{{ item.workdate_desc }} |
|
|
出诊:{{ item.workdate_desc }} |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<uni-collapse ref="collapse" v-model="collapseValue[key]" @change="changeCollapse" class="notice-collapse" v-if="item.notice"> |
|
|
<uni-collapse ref="collapse" v-model="collapseValue[key]" @change="changeCollapse" class="notice-collapse" v-if="item.notice"> |
|
|
<uni-collapse-item title="就诊须知"> |
|
|
<uni-collapse-item title="就诊须知"> |
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
@ -84,14 +84,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
</uni-collapse-item> |
|
|
</uni-collapse-item> |
|
|
</uni-collapse> |
|
|
</uni-collapse> |
|
|
|
|
|
|
|
|
<view class="bot primary btn btn2" hover-class="hover" @click="toVisitors(item)"> |
|
|
<view class="bot primary btn btn2" hover-class="hover" @click="toVisitors(item)" v-if="item.type==0"> |
|
|
预约看病 |
|
|
预约看病 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="block visit-wrapper" v-if="recentAppoint"> |
|
|
<view class="block visit-wrapper" v-if="recentAppoint && this.doctorInfo && !this.doctorInfo.is_all_card"> |
|
|
<view class="header flex"> |
|
|
<view class="header flex"> |
|
|
<view class="title-wrapper flex booklist"> |
|
|
<view class="title-wrapper flex booklist"> |
|
|
<view class="title"> |
|
|
<view class="title"> |
|
|
@ -99,15 +99,15 @@ |
|
|
</view> |
|
|
</view> |
|
|
<img :src="cssUrl+'right_bg.png'" alt=""> |
|
|
<img :src="cssUrl+'right_bg.png'" alt=""> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="opt flex" @click="toPrebookList"> |
|
|
<view class="opt flex" @click="toPrebookList"> |
|
|
查看全部<img :src="cssUrl+'index_comback2.svg'" alt=""> |
|
|
查看全部<img :src="cssUrl+'index_comback2.svg'" alt=""> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<pre-book-list class="preg-books" :dataList="recentAppoint" :topnopadding="true"></pre-book-list> |
|
|
<pre-book-list class="preg-books" :dataList="recentAppoint" :topnopadding="true" v-if="this.doctorInfo && !this.doctorInfo.is_all_card"></pre-book-list> |
|
|
|
|
|
|
|
|
<tabbar current="1" leftButtonText="主页"></tabbar> |
|
|
<tabbar current="1" leftButtonText="主页" v-if="this.doctorInfo && !this.doctorInfo.is_all_card"></tabbar> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -177,6 +177,14 @@ |
|
|
preBookList, |
|
|
preBookList, |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
|
|
|
// define('DEPART_TYPE_FULL', 0); // 全功能 |
|
|
|
|
|
// define('DEPART_TYPE_COUNT', 1); // 仅计数 |
|
|
|
|
|
// define('DEPART_TYPE_CARD', 2); // 仅名片 |
|
|
|
|
|
// $GLOBALS['depart_type_list'] = array( |
|
|
|
|
|
// DEPART_TYPE_FULL => '全功能', |
|
|
|
|
|
// DEPART_TYPE_COUNT => '仅计数', |
|
|
|
|
|
// DEPART_TYPE_CARD => '仅名片' |
|
|
|
|
|
// ); |
|
|
if(option.code && option.state) { |
|
|
if(option.code && option.state) { |
|
|
this.code = option.code |
|
|
this.code = option.code |
|
|
this.state = option.state |
|
|
this.state = option.state |
|
|
@ -249,7 +257,7 @@ |
|
|
this.$http.req('common/get_user_info', {code:this.code,state:this.state}, 'POST').then(data=>{ |
|
|
this.$http.req('common/get_user_info', {code:this.code,state:this.state}, 'POST').then(data=>{ |
|
|
if(data == -1) return |
|
|
if(data == -1) return |
|
|
this.$settoken.setToken(data.jwttoken) |
|
|
this.$settoken.setToken(data.jwttoken) |
|
|
|
|
|
|
|
|
this.setLoginUserInfo(data) |
|
|
this.setLoginUserInfo(data) |
|
|
this.getDoctorInfo() |
|
|
this.getDoctorInfo() |
|
|
// var rebackPagePath = uni.getStorageSync('rebackPagePath') |
|
|
// var rebackPagePath = uni.getStorageSync('rebackPagePath') |
|
|
@ -259,7 +267,7 @@ |
|
|
// }) |
|
|
// }) |
|
|
// } |
|
|
// } |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
async getDoctorInfo() { |
|
|
async getDoctorInfo() { |
|
|
await this.$http.req('user/index_info', {}, 'GET').then(data=>{ |
|
|
await this.$http.req('user/index_info', {}, 'GET').then(data=>{ |
|
|
@ -267,7 +275,6 @@ |
|
|
this.pageShow = true; |
|
|
this.pageShow = true; |
|
|
let visitFlag = true; |
|
|
let visitFlag = true; |
|
|
this.doctorInfo = data; |
|
|
this.doctorInfo = data; |
|
|
console.log(data) |
|
|
|
|
|
if(this.doctorInfo.doctor_info && this.doctorInfo.doctor_info.depart_name && this.doctorInfo.doctor_info.depart_name.length>0){ |
|
|
if(this.doctorInfo.doctor_info && this.doctorInfo.doctor_info.depart_name && this.doctorInfo.doctor_info.depart_name.length>0){ |
|
|
this.doctor_dept = this.doctorInfo.doctor_info.depart_name; |
|
|
this.doctor_dept = this.doctorInfo.doctor_info.depart_name; |
|
|
} |
|
|
} |
|
|
@ -275,7 +282,7 @@ |
|
|
this.hospitals = this.doctorInfo.hospital_departs; |
|
|
this.hospitals = this.doctorInfo.hospital_departs; |
|
|
this.doctor_dept = this.doctorInfo.hospital_departs[0]['depart_name']; |
|
|
this.doctor_dept = this.doctorInfo.hospital_departs[0]['depart_name']; |
|
|
this.doctorInfo.doctor_info.depart_name = this.doctor_dept; |
|
|
this.doctorInfo.doctor_info.depart_name = this.doctor_dept; |
|
|
|
|
|
|
|
|
for (var index = 0; index < this.hospitals.length; index++) { |
|
|
for (var index = 0; index < this.hospitals.length; index++) { |
|
|
var element = this.hospitals[index]; |
|
|
var element = this.hospitals[index]; |
|
|
this.collapseValue[index] = [] |
|
|
this.collapseValue[index] = [] |
|
|
@ -353,8 +360,8 @@ |
|
|
let lats = z * Math.sin(theta) + 0.006; |
|
|
let lats = z * Math.sin(theta) + 0.006; |
|
|
return { |
|
|
return { |
|
|
lng: lngs, |
|
|
lng: lngs, |
|
|
lat: lats |
|
|
lat: lats |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -456,7 +463,7 @@ |
|
|
margin-bottom: 36rpx; |
|
|
margin-bottom: 36rpx; |
|
|
border-bottom: 2rpx solid #F1F1F1; |
|
|
border-bottom: 2rpx solid #F1F1F1; |
|
|
padding-bottom: 36rpx; |
|
|
padding-bottom: 36rpx; |
|
|
|
|
|
|
|
|
&:last-child{ |
|
|
&:last-child{ |
|
|
margin-bottom: 0rpx; |
|
|
margin-bottom: 0rpx; |
|
|
padding-bottom: 0rpx; |
|
|
padding-bottom: 0rpx; |
|
|
@ -542,7 +549,7 @@ |
|
|
} |
|
|
} |
|
|
.notice-collapse { |
|
|
.notice-collapse { |
|
|
margin-top: 24rpx; |
|
|
margin-top: 24rpx; |
|
|
/deep/ { |
|
|
::v-deep { |
|
|
.uni-collapse-item__title-box{ |
|
|
.uni-collapse-item__title-box{ |
|
|
padding: 0; |
|
|
padding: 0; |
|
|
display: flex; |
|
|
display: flex; |
|
|
@ -599,10 +606,10 @@ |
|
|
letter-spacing: 0.22rpx; |
|
|
letter-spacing: 0.22rpx; |
|
|
color: #666666; |
|
|
color: #666666; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.bot{ |
|
|
.bot{ |
|
|
margin-top: 16rpx; |
|
|
margin-top: 16rpx; |
|
|
} |
|
|
} |
|
|
@ -630,7 +637,7 @@ |
|
|
width: 714rpx; |
|
|
width: 714rpx; |
|
|
margin: 0 auto; |
|
|
margin: 0 auto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|