设置权限 地图定位勾选
还有安卓手机打包权限配置打开
onShow() {
//打开地图
chooseLocation()
}
export function chooseLocation(success){
// 先判断定位权限是否开启
({
success(){
},
fail(e) {
// App跳转系统的设置界面
// #ifdef APP-PLUS
({
success(res) {
if(=='ios'){ //IOS
("app-settings://");
} else if (=='android'){ //安卓
let main = ();
let Intent = ("");
let mIntent = new Intent('.ACTION_SETTINGS');
(mIntent);
}
}
});
// #endif
}
})
}