This commit is contained in:
xiaozhiyong
2024-04-08 10:43:56 +08:00
parent 0907abab72
commit 3c1fc03e1f
4 changed files with 50 additions and 38 deletions

View File

@@ -318,12 +318,18 @@
success: (res) => {
if (!res.authSetting['scope.userLocation']) {
uni.showModal({
title: '请您打开定位权限',
content: '用于获取您当前位置附近油站',
title: '提示',
content: '您暂无授权定位权限,将无法显示附近油站',
confirmText: '去设置',
success: (resSec) => {
if (resSec.confirm) {
uni.openSetting({})
uni.openSetting({
success:(resThird) => {
if (resThird.authSetting['scope.userLocation']) {
this.refreshLocation()
}
}
})
}
}
})