Commit 6afaa34e authored by Facius's avatar Facius

定位提示,签到时间提示

parent 6f082372
...@@ -221,6 +221,8 @@ ...@@ -221,6 +221,8 @@
return this.timeout ? '您的订单已超时,请及时接单' : '请您注意剩余时间,及时接单' return this.timeout ? '您的订单已超时,请及时接单' : '请您注意剩余时间,及时接单'
case '预约': case '预约':
return this.timeout ? '您的订单已超时,请及时预约' : '请您注意剩余时间,及时预约' return this.timeout ? '您的订单已超时,请及时预约' : '请您注意剩余时间,及时预约'
case '签到':
return this.timeout ? '您的订单已超时,请及时签到' : '请您注意剩余时间,及时签到'
case '去完工': case '去完工':
return this.timeout ? '您的订单已超时,请及时完工' : '请您注意剩余时间,及时完工' return this.timeout ? '您的订单已超时,请及时完工' : '请您注意剩余时间,及时完工'
default: default:
...@@ -776,9 +778,25 @@ ...@@ -776,9 +778,25 @@
dataValue.push(res.latitude) dataValue.push(res.latitude)
self.dataValue = dataValue self.dataValue = dataValue
}, },
fail(err) { complete: function(res) {
if (res.errMsg.indexOf('auth') != -1) {
} uni.showModal({
title: '提示',
content: '获取权限失败,请到设置页面开启权限',
confirmText: '好的',
success(res) {
if (res.confirm) {
uni.openSetting({
success(res) {
console.log(res.authSetting)
}
});
}
}
})
}
},
}); });
}, },
getDistance(Latitud, Longitud){ getDistance(Latitud, Longitud){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment