|
@@ -103,20 +103,20 @@ export default {
|
|
|
fail: (error) => {
|
|
fail: (error) => {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
- content: '请先开启定位权限,否则将无法使用定位功能',
|
|
|
|
|
- cancelText: '不授权',
|
|
|
|
|
- confirmText: '授权',
|
|
|
|
|
- success: function (res) {
|
|
|
|
|
|
|
+ content: '定位失败,请手动选择校区',
|
|
|
|
|
+ showCancel: false,
|
|
|
|
|
+ confirmText: '确定',
|
|
|
|
|
+ success: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
- uni.openSetting({
|
|
|
|
|
- success(res) {
|
|
|
|
|
- this.getLocationData()
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- } else if (res.cancel) {
|
|
|
|
|
|
|
+ this.current = 0
|
|
|
|
|
+ this.schoolId = this.schoolList[this.current].id
|
|
|
|
|
+ this.getRepairAreaTree()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ complete: () => {
|
|
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|