Compare commits
2 Commits
6827224b45
...
4b2f08c5bd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b2f08c5bd | ||
|
|
3a4b0a2f72 |
108
App.vue
108
App.vue
@@ -5,60 +5,60 @@
|
|||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
// 获取系统版本号
|
// 获取系统版本号
|
||||||
// getVersions({
|
getVersions({
|
||||||
// platform: plus.os.name,
|
platform: plus.os.name,
|
||||||
// version : plus.runtime.version
|
version : plus.runtime.version
|
||||||
// }).then(res => {
|
}).then(res => {
|
||||||
// if (res.update) {
|
if (res.update) {
|
||||||
// uni.showModal({
|
uni.showModal({
|
||||||
// title : "更新提示",
|
title : "更新提示",
|
||||||
// content : res.note || '版本更新信息',
|
content : res.note || '版本更新信息',
|
||||||
// confirmText : "更新",
|
confirmText : "更新",
|
||||||
// showCancel : !res.info.must,
|
showCancel : !res.info.must,
|
||||||
// success : modalRes => {
|
success : modalRes => {
|
||||||
// if (modalRes.confirm) {
|
if (modalRes.confirm) {
|
||||||
// if (plus.os.name == "Android") {
|
if (plus.os.name == "Android") {
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: '新版本下载中,将在下载完成后自动为您安装更新包',
|
title: '新版本下载中,将在下载完成后自动为您安装更新包',
|
||||||
// icon: 'none'
|
icon: 'none'
|
||||||
// })
|
})
|
||||||
// uni.downloadFile({
|
uni.downloadFile({
|
||||||
// url: res.info.download,
|
url: res.info.download,
|
||||||
// success: apkPick => {
|
success: apkPick => {
|
||||||
// plus.runtime.install(apkPick
|
plus.runtime.install(apkPick
|
||||||
// .tempFilePath, '',
|
.tempFilePath, '',
|
||||||
// installRES => {
|
installRES => {
|
||||||
// // 安装完成用于提示新版本引导,暂时无用
|
// 安装完成用于提示新版本引导,暂时无用
|
||||||
// }, installERR => {
|
}, installERR => {
|
||||||
// // 安装失败
|
// 安装失败
|
||||||
// })
|
})
|
||||||
// },
|
},
|
||||||
// fail(err) {
|
fail(err) {
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: '安装包下载失败,请检查您的网络或稍后重试',
|
title: '安装包下载失败,请检查您的网络或稍后重试',
|
||||||
// icon: 'none'
|
icon: 'none'
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// // plus.runtime.openURL(res.info.download, err => {
|
// plus.runtime.openURL(res.info.download, err => {
|
||||||
// // console.log(err)
|
// console.log(err)
|
||||||
// // }, 'com.android.browser');
|
// }, 'com.android.browser');
|
||||||
// } 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
unpackage/dist/build/app-plus/app-service.js
vendored
2
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4361
unpackage/dist/dev/app-plus/app-service.js
vendored
4361
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
4
unpackage/dist/dev/app-plus/manifest.json
vendored
4
unpackage/dist/dev/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user