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

add

上级 3fd5a044
......@@ -211,14 +211,24 @@ export default {
});
},
selectItem(item) {
console.log('--$rocNative', this.$rocNative);
const geolocation = store.get('geolocation');
const hospitalName = '上海市浦东新区兰花路333';
const hospitalName = this.detailInfo.hospitalName;
let url = '';
// lat<纬度>,lng<经度>
const latitude = '31.234527';
const longitude = '121.287689';
const latitude = this.detailInfo.latitude;
const longitude = this.detailInfo.longitude;
if (window._picaWechat) {
const addressInfo = {
address: this.detailInfo.hospitalAddress,
latitude: this.detailInfo.latitude,
longitude: this.detailInfo.longitude,
name: this.detailInfo.hospitalName,
};
this.$rocNative.openLocation(addressInfo);
return;
}
if (geolocation && geolocation.lat && geolocation.lng) {
// https://uri.amap.com/navigation
} else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册