在manifest.json里面修改
"permission" : { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位 } }

在menthods使用
getLocation(success) { //打开外部地图
uni.getLocation({
success(res) {
console.log('定位1',res)
uni.openLocation({
latitude: res.latitude,
longitude: res.longitude,
scale: 18
})
}
})
},
