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

fix

上级 39a0aa4a
......@@ -219,14 +219,15 @@ export default {
// lat<纬度>,lng<经度>
const latitude = this.detailInfo.latitude;
const longitude = this.detailInfo.longitude;
if (window._picaWechat) {
if (window.miniProgram) {
const addressInfo = {
address: this.detailInfo.hospitalAddress,
latitude: this.detailInfo.latitude,
longitude: this.detailInfo.longitude,
name: this.detailInfo.hospitalName,
};
this.$rocNative.openLocation(addressInfo);
this.$rocNative.WXInstance.miniProgram.openLocation(addressInfo);
return;
}
if (geolocation && geolocation.lat && geolocation.lng) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册