更新
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user