document.querySelector('#openLocation').onclick = function () {
wx.openLocation({
latitude: 23.099994,
longitude: 113.324520,
name: 'demo',
address: 'demo',
scale: 14,
infoUrl: 'http://weixin.qq.com',
success: function (res) {
console.log(1111111111);
}
});
};
wx.config({
debug: true,
appId: appid,
timestamp: timestamp,
nonceStr: nonceStr,
signature: signature,
jsApiList: [
"checkJsApi",
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone',
'chooseWXPay',
'getLocation',
'openLocation'
]
});
你好,麻烦提供下机型,微信版本号和复现链接
是不是公众号的问题 ,同样代码另一个公众号就可以