调整更新信息
This commit is contained in:
68
App.vue
68
App.vue
@@ -24,40 +24,40 @@
|
|||||||
|
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
// 获取系统版本号
|
// 获取系统版本号
|
||||||
// getVersions({
|
getVersions({
|
||||||
// platform: plus.os.name,
|
platform: plus.os.name,
|
||||||
// version : plus.runtime.versionCode
|
version : plus.runtime.versionCode
|
||||||
// }).then(res => {
|
}).then(res => {
|
||||||
// if(res.update){
|
if(res.update){
|
||||||
// uni.showModal({
|
uni.showModal({
|
||||||
// title: "更新提示",
|
title: "更新提示",
|
||||||
// content: res.note || '版本更新信息',
|
content: res.note || '版本更新信息',
|
||||||
// confirmText: "更新",
|
confirmText: "更新",
|
||||||
// success: modalRes => {
|
success: modalRes => {
|
||||||
// if (modalRes.confirm) {
|
if (modalRes.confirm) {
|
||||||
// if (plus.os.name == "Android") {
|
if (plus.os.name == "Android") {
|
||||||
// plus.runtime.openURL(res.info.download, err => {
|
plus.runtime.openURL(res.info.download, err => {
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: err,
|
title: err,
|
||||||
// icon : 'none'
|
icon : 'none'
|
||||||
// })
|
})
|
||||||
// });
|
});
|
||||||
// } else{
|
} else{
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: 'IOS应用暂未上架,请打开测试(TestFlight)工具点击更新',
|
title: 'IOS应用暂未上架,请打开测试(TestFlight)工具点击更新',
|
||||||
// icon : 'none'
|
icon : 'none'
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// }).catch(err => {
|
}).catch(err => {
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: err.message,
|
title: err.message,
|
||||||
// icon : 'none'
|
icon : 'none'
|
||||||
// })
|
})
|
||||||
// })
|
})
|
||||||
//#endif
|
//#endif
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
2
unpackage/dist/dev/app-plus/app-service.js
vendored
2
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user