示例代码错误
https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html
现在是:
wx.openLocation({ latitude, longitude, scale: 18 })
应该是:
wx.openLocation({
latitude:latitude,
longitude:longitude,
scale: 18
})