- 在体验版是ok的,在正式版没生效,看不出哪出问题了?
https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html openLocationSchoole() { wx.getLocation({ type: 'gcj02', //返回可以用于wx.openLocation的经纬度 success (res) { wx.openLocation({ latitude: 19.980819, longitude: 110.460972, // scale: 5, name: '海南艺术职业学院', address: '海南省海口市桂林洋经济开发区 桂林洋大道10号' }) }, fail (res){ console.error("res="+res); } }) }, 在体验版是ok的,在正式版没生效
05-13 - wx.openLocation 在体验版上点击能打开,在正式版上不生效,不知道哪里问题?
openLocationSchoole() { wx.getLocation({ type: 'gcj02', //返回可以用于wx.openLocation的经纬度 success (res) { wx.openLocation({ latitude: 19.980819, longitude: 110.460972, // scale: 5, name: '海南艺术职业学院', address: '海南省海口市桂林洋经济开发区 桂林洋大道10号' }) }, fail (res){ console.error("res="+res); } }) },
05-13