let config = {type:"wgs84",altitude:true}
// #ifdef APP-PLUS
// config.type ="gcj02"
// config.geocode = true
// #endif
console.log(config);
uni.getLocation({
...config,
success: function(res) {
let {
latitude,
longitude,
address={}
} = res
status = false
resolve({
latitude,
longitude,
address
} )
},
fail(err) {
status = false
reject(err)
}
});