提交 b155d4ca 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'feature/zjx' into 'develop'

Feature/zjx

See merge request !62
...@@ -314,15 +314,19 @@ export default { ...@@ -314,15 +314,19 @@ export default {
// 高德地图导航只有在线上环境才能使用 // 高德地图导航只有在线上环境才能使用
initMap() { initMap() {
const result = store.get('geolocation'); const result = store.get('geolocation');
console.log('geolocation', result); if (!result) {
this.position.latitude = result.lat || ''; console.log('geolocation', result);
this.position.longitude = result.lng || ''; this.position.latitude = result.lat || '';
const data = { this.position.longitude = result.lng || '';
projectEquityNo: 'CX202302091000154321', const data = {
latitude: 31.294106, projectEquityNo: this.projectEquityNo,
longitude:121.294106, latitude: this.position.latitude,
}; longitude:this.position.longitude,
this.getHospitalList(data); };
this.getHospitalList(data);
}
}, },
// 根据坐标获取最近的机构id // 根据坐标获取最近的机构id
getHospitalList(data) { getHospitalList(data) {
......
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
case 2: case 2:
// https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址 // https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址
// https://apis.map.qq.com/uri/v1/routeplan?type=bus&from=我的家&fromcoord=39.980683,116.302&to=中关村&tocoord=39.9836,116.3164&policy=1&referer=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77 // https://apis.map.qq.com/uri/v1/routeplan?type=bus&from=我的家&fromcoord=39.980683,116.302&to=中关村&tocoord=39.9836,116.3164&policy=1&referer=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77
url = `https://apis.map.qq.com/uri/v1/routeplan?type=drive&from=${geolocation.addr}&fromcoord=${geolocation.lat},${geolocation.lng}&to=${hospitalName}&tocoord=${latitude},${longitude}&policy=0&referer=GCUBZ-6O6K3-VVB3E-3PNKF-HY77K-G6BTN`; url = `https://apis.map.qq.com/uri/v1/routeplan?type=drive&from=${geolocation.addr}&fromcoord=${geolocation.lat},${geolocation.lng}&to=${hospitalName}&tocoord=${latitude},${longitude}&policy=0&referer=DJ6BZ-AU6E2-XMJUH-CZVD6-T2WQV-27F3S`;
break; break;
case 3: case 3:
// https://lbsyun.baidu.com/index.php?title=uri/api/web // https://lbsyun.baidu.com/index.php?title=uri/api/web
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
break; break;
case 2: case 2:
// https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址 // https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址
url = 'https://apis.map.qq.com/uri/v1/geocoder?coord=' + latitude + ',' + longitude + '&referer=GCUBZ-6O6K3-VVB3E-3PNKF-HY77K-G6BTN'; url = 'https://apis.map.qq.com/uri/v1/geocoder?coord=' + latitude + ',' + longitude + '&referer=DJ6BZ-AU6E2-XMJUH-CZVD6-T2WQV-27F3S';
break; break;
case 3: case 3:
// https://lbsyun.baidu.com/index.php?title=uri/api/web api地址 // https://lbsyun.baidu.com/index.php?title=uri/api/web api地址
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册