Browse Source

版本更新

devlop
mo-bai 4 years ago
parent
commit
5b84435ada
1 changed files with 19 additions and 19 deletions
  1. 38
      App.vue

38
App.vue

@ -24,25 +24,25 @@ export default {
//#ifdef APP-PLUS
checkUpdate().then((version) => {
let curVersion = plus.runtime.version
// if (version != curVersion) {
// let client = uni.getSystemInfoSync().platform
// if (client === 'ios') {
// uni.showModal({
// title: '',
// content: 'App Store'
// })
// } else {
// uni.showModal({
// title: '',
// content: '',
// success: (res) => {
// if (res.confirm) {
// // plus.runtime.openURL(`https://www.pgyer.com/ST8i`)
// }
// </span><span class="err"> pan> }
// })
// }
// }
if (version != curVersion) {
let client = uni.getSystemInfoSync().platform
if (client === 'ios') {
uni.showModal({
title: '更新提示',
content: '有新的版本更新,请前往App Store更新'
})
} else {
uni.showModal({
title: '更新提示',
content: '有新版本,请前往更新',
success: (res) => {
if (res.confirm) {
plus.runtime.openURL(`https://www.pgyer.com/ClU9`)
}
}
})
}
}
})
//#endif
},

Loading…
Cancel
Save