|
|
@ -24,7 +24,6 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="con"> |
|
|
|
<!-- <view class="con over2 over4"> --> |
|
|
|
{{doctorInfo.doctor_info.doctor_detail}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -42,20 +41,10 @@ |
|
|
|
<view class="top flex"> |
|
|
|
<view class="left"> |
|
|
|
<view class="title flex"> |
|
|
|
<text class="over2 PfScMedium hospital_name">{{item.hospital_name}} |
|
|
|
<!-- {{item.depart_name}} --> |
|
|
|
<!-- {{item.depart_name}} --> |
|
|
|
<!-- 科室 --> |
|
|
|
</text> |
|
|
|
|
|
|
|
<!-- <view class="fixed_hospital">医保定点</view> --> |
|
|
|
<!-- <img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> --> |
|
|
|
<text class="over2 PfScMedium hospital_name">{{item.hospital_name}}</text> |
|
|
|
</view> |
|
|
|
<view class="date over2 over4" v-if="item.address"> |
|
|
|
|
|
|
|
{{item.address}} |
|
|
|
|
|
|
|
<!-- 出诊:{{ item.workdate_desc }} --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
@ -65,11 +54,6 @@ |
|
|
|
<view class="map-wrap">导航</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <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=""> |
|
|
|
<view>复制地址</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -138,13 +122,13 @@ |
|
|
|
}, |
|
|
|
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 => '仅名片' |
|
|
|
// ); |
|
|
|
// 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) { |
|
|
|
this.code = option.code |
|
|
|
this.state = option.state |
|
|
@ -161,7 +145,6 @@ |
|
|
|
}) |
|
|
|
var token = this.$token.getToken() |
|
|
|
if(this.code && this.state && !token) { |
|
|
|
var rebackPagePath = uni.getStorageSync('rebackPagePath') |
|
|
|
this.login() |
|
|
|
return |
|
|
|
} |
|
|
@ -180,10 +163,34 @@ |
|
|
|
var baiduLngLat = that.qqMapTransBMap(lng, lat) |
|
|
|
var mapList = [ |
|
|
|
'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+ lat+','+lng+';addr:'+hospital.hospital_name, |
|
|
|
// 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+ lat+','+lng+';title:'+hospital.hospital_name+ 'addr:'+hospital.address, // new 有title |
|
|
|
'http://api.map.baidu.com/marker?location='+baiduLngLat.lat+','+baiduLngLat.lng+'&title='+hospital.hospital_name+'&content=即将前往目的地&output=html&src=webapp.baidu.openAPIdemo', |
|
|
|
'https://m.amap.com/share/index/lnglat='+hospital.hospital_pos+'&name='+hospital.hospital_name+'&src=uriapi&innersrc=uriapi', |
|
|
|
] |
|
|
|
this.$nav.navToPath(mapList[res.tapIndex]) |
|
|
|
// location.href(mapList[res.tapIndex]) |
|
|
|
// 判断是否在小程序环境 |
|
|
|
if (typeof wx !== 'undefined' && wx.openLocation) { |
|
|
|
// 小程序环境 |
|
|
|
// 跳不过去?? lat?问题? |
|
|
|
// wx.openLocation({ |
|
|
|
// latitude: lat, |
|
|
|
// longitude: lng, |
|
|
|
// name: hospital.hospital_name || '目的地', |
|
|
|
// address: hospital.address || '', |
|
|
|
// scale: 18 |
|
|
|
// }); |
|
|
|
wx.openLocation({ |
|
|
|
latitude: baiduLngLat.lat, |
|
|
|
longitude: baiduLngLat.lng, |
|
|
|
name: hospital.hospital_name || '目的地', |
|
|
|
address: hospital.address || '', |
|
|
|
scale: 18 |
|
|
|
}); |
|
|
|
} |
|
|
|
// 判断是否微信浏览器 |
|
|
|
else if (/MicroMessenger/i.test(navigator.userAgent)) { |
|
|
|
location.href = mapList[res.tapIndex]; |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: function (res) { |
|
|
|
} |
|
|
@ -201,7 +208,6 @@ |
|
|
|
console.log(e); |
|
|
|
}, |
|
|
|
setLoginUserInfo(info) { |
|
|
|
var uinfo = new Object(); |
|
|
|
this.$setuinfo.setUinfo(JSON.stringify(info)) |
|
|
|
}, |
|
|
|
login() { |
|
|
@ -245,7 +251,6 @@ |
|
|
|
this.doctorInfo.doctor_info.depart_name = this.doctor_dept; |
|
|
|
|
|
|
|
for (var index = 0; index < this.hospitals.length; index++) { |
|
|
|
var element = this.hospitals[index]; |
|
|
|
this.collapseValue[index] = [] |
|
|
|
} |
|
|
|
}else{ |
|
|
|