Browse Source

删除无用代码

master
zq 4 months ago
parent
commit
28f0cd52f6
  1. 5
      pages/book_detail/book_detail.vue
  2. 61
      pages/index/index.vue
  3. 2
      pages/waiting_method/waiting_method.vue

5
pages/book_detail/book_detail.vue

@ -63,7 +63,6 @@
{'leftTitle':'就诊时间','custom':"",show:true,edit:false} {'leftTitle':'就诊时间','custom':"",show:true,edit:false}
], ],
showCancelBook:false, showCancelBook:false,
redirect:'/pages/prebook_list/prebook_list',
bookId:false, bookId:false,
depart_id:false, depart_id:false,
bookInfo:false, bookInfo:false,
@ -150,7 +149,6 @@
} }
var bookInfo = data var bookInfo = data
bookInfo = data
this.bookInfo = bookInfo this.bookInfo = bookInfo
this.status = this.statusStyleList[bookInfo.status] this.status = this.statusStyleList[bookInfo.status]
if(bookInfo.status==0 || bookInfo.status==2){ if(bookInfo.status==0 || bookInfo.status==2){
@ -159,10 +157,7 @@
this.showCancelBook = false this.showCancelBook = false
} }
this.list[0].custom = "<view class='bi flex'><view class='"+this.status+" status'><view class='over status_text'>"+bookInfo.status_desc+"</view></view><img src="+this.cssUrl+"bi.svg></view>" this.list[0].custom = "<view class='bi flex'><view class='"+this.status+" status'><view class='over status_text'>"+bookInfo.status_desc+"</view></view><img src="+this.cssUrl+"bi.svg></view>"
this.list[1].custom = "<view class='bi flex'><text>2诊室13床</text><img src="+this.cssUrl+"bi.svg></view>" this.list[1].custom = "<view class='bi flex'><text>2诊室13床</text><img src="+this.cssUrl+"bi.svg></view>"
this.list[2].rightTitle = bookInfo.name this.list[2].rightTitle = bookInfo.name
this.list[3].rightTitle = bookInfo.hospital_name this.list[3].rightTitle = bookInfo.hospital_name
this.list[4].rightTitle = bookInfo.depart_name this.list[4].rightTitle = bookInfo.depart_name

61
pages/index/index.vue

@ -24,7 +24,6 @@
</view> </view>
<view class="con"> <view class="con">
<!-- <view class="con over2 over4"> -->
{{doctorInfo.doctor_info.doctor_detail}} {{doctorInfo.doctor_info.doctor_detail}}
</view> </view>
</view> </view>
@ -42,20 +41,10 @@
<view class="top flex"> <view class="top flex">
<view class="left"> <view class="left">
<view class="title flex"> <view class="title flex">
<text class="over2 PfScMedium hospital_name">{{item.hospital_name}} <text class="over2 PfScMedium hospital_name">{{item.hospital_name}}</text>
<!-- {{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)"> -->
</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 }} -->
</view> </view>
</view> </view>
<view class="right"> <view class="right">
@ -65,11 +54,6 @@
<view class="map-wrap">导航</view> <view class="map-wrap">导航</view>
</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> </view>
</view> </view>
@ -138,13 +122,13 @@
}, },
onLoad(option) { onLoad(option) {
// define('DEPART_TYPE_FULL', 0); // // define('DEPART_TYPE_FULL', 0); //
// define('DEPART_TYPE_COUNT', 1); // // define('DEPART_TYPE_COUNT', 1); //
// define('DEPART_TYPE_CARD', 2); // // define('DEPART_TYPE_CARD', 2); //
// $GLOBALS['depart_type_list'] = array( // $GLOBALS['depart_type_list'] = array(
// DEPART_TYPE_FULL => '', // DEPART_TYPE_FULL => '',
// DEPART_TYPE_COUNT => '', // DEPART_TYPE_COUNT => '',
// DEPART_TYPE_CARD => '' // 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
@ -161,7 +145,6 @@
}) })
var token = this.$token.getToken() var token = this.$token.getToken()
if(this.code && this.state && !token) { if(this.code && this.state && !token) {
var rebackPagePath = uni.getStorageSync('rebackPagePath')
this.login() this.login()
return return
} }
@ -180,10 +163,34 @@
var baiduLngLat = that.qqMapTransBMap(lng, lat) var baiduLngLat = that.qqMapTransBMap(lng, lat)
var mapList = [ 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+';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', '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', '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) { fail: function (res) {
} }
@ -201,7 +208,6 @@
console.log(e); console.log(e);
}, },
setLoginUserInfo(info) { setLoginUserInfo(info) {
var uinfo = new Object();
this.$setuinfo.setUinfo(JSON.stringify(info)) this.$setuinfo.setUinfo(JSON.stringify(info))
}, },
login() { login() {
@ -245,7 +251,6 @@
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];
this.collapseValue[index] = [] this.collapseValue[index] = []
} }
}else{ }else{

2
pages/waiting_method/waiting_method.vue

@ -49,8 +49,6 @@
return return
} }
}, },
onReady() {
},
methods: { methods: {
getVisitors() { getVisitors() {

Loading…
Cancel
Save