web-view中的H5页面使用wx.openLocation有Bug
发布于 5 年前 作者 xiulan06 16476 次浏览 来自 问答

web-view中的H5页面中使用wx.openLocation无反应?


这是我的代码:

wx.openLocation({

       latitude: '{$info.place_latitude}',

       longitude: '{$info.place_longitude}',

       address:'{$info.event_place}',

       scale: 28

   })

在开发工具上点击无反应,,在手机上点击,效果看上去像是刷新了一遍页面。。。。

什么问题呢??

而且文档上也写了web-view支持这个接口。。。。

2 回复

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

楼主解决没有哇

// 地理位置
    seeAddress(){
      wx.openLocation({
        longitude: 113.324520,
        latitude: 23.099994,
        name: "T.I.T 创意园",
        address:"广州市海珠区新港中路397号",
        scale: 28
      })
    }

点击后没有效果,h5页面套微信小程序

回到顶部