一、wx.openLocation兼容
1、申请腾讯地图key
2、配置LBS SDK,选择SDK最新版本
3、调用接口,name和address必须输入,不然要报错
c
uni.openLocation({
latitude: Number(this.info.latitude),
longitude: Number(this.info.longitude),
name:this.info.meterAddress ? this.info.meterAddress : '--',
address:this.info.meterAddress ? this.info.meterAddress : '--',
success: (e) => {
console.log("openLocation-成功",e)
},
fail: (e) => {
console.log("openLocation-失败",e)
},
二、wx.getSystemInfoAsync兼容
同步获取数据为undefined,异步使用wx.getSystemInfo可以调通
三、不能用腾讯选择插件,目前不支持,改为wx.chooseLocation 功能基本一致,目前android测试没有问题,ios有点问题,报错,目前腾讯开发人员正在解决

四、最好不要用移动助手测试,因为有些会报错,比如:openLocation:not supported 在真机上运行就没有问题
五、开发版的APP如果需要微信开放能力(微信登录)需要调起微信小程序开发版,开发版不能真机运行,否则会报错:remote debug not started.需要点击开发工具上的预览功能
