修改安卓蓝牙未开启定位服务的问题

This commit is contained in:
liub
2026-02-03 13:08:49 +08:00
parent fcea5b1dba
commit b1eab86ba6
5 changed files with 53 additions and 47 deletions

View File

@ -12,7 +12,7 @@ function checkAndUpdateWgt(updateUrl) {
}
// 显示加载提示
let urls = ['https://dmsapp.skf.com.cn/HummerService/app/CheckUpdate'];
let urls = ['https://dmsapp.skf.com.cn/HummerService/app/CheckUpdate'];//
// 1. 获取当前应用版本信息
plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
@ -130,7 +130,8 @@ function checkAndUpdateWgt(updateUrl) {
let Update1 = () => {
return request({
url: '/app/auth/version',
method: 'get'
method: 'get',
isAuthen:false
});
}
@ -212,16 +213,24 @@ function downloadAndInstallWgt(wgtUrl) {
console.log("无法删除临时文件");
},
complete() {
wating.close();
uni.showModal({
title: '更新完成',
content: '应用已更新,是否重启应用?',
showCancel: false,
success: () => {
// 3. 重启应用
plus.runtime.restart();
}
});
wating.setTitle("应用已更新,正在重启");
setTimeout(()=>{
wating.close();
plus.runtime.restart();
},1000);
// uni.showModal({
// title: '更新完成',
// content: '应用已更新,点击确定重启应用',
// showCancel: false,
// success() {
// plus.runtime.restart();
// }
// });
}
});