|
|
@ -24,25 +24,25 @@ export default { |
|
|
//#ifdef APP-PLUS |
|
|
//#ifdef APP-PLUS |
|
|
checkUpdate().then((version) => { |
|
|
checkUpdate().then((version) => { |
|
|
let curVersion = plus.runtime.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 |
|
|
//#endif |
|
|
}, |
|
|
}, |
|
|
|