wx.openLocation点击自带的返回键2次才能退出?
发布于 5 年前 作者 linyang 1149 次浏览 来自 官方Issues
wx.config({
debug: false,
 appId: xx,
 timestamp:res.data.timestamp ,
 nonceStr: res.data.nonceStr,
 signature: res.data.signature,
 jsApiList: ["openLocation"]
});
wx.ready(function () {
wx.openLocation({
longitude: parseFloat(params.longitude),
   latitude:parseFloat(params.latitude),
   name: params.name,
   address: params.address
 })
});
wx.error(function(res){
console.log("err:"+res);
});
3 回复

调用这个方法的时候不要跳页,不要引入map,直接调用这个方法就可以了,就不会返回两次了。

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

版本号  机型  ?

回到顶部