From 5b84435adaa9ca2ab915c76031cf86c6d4e53338 Mon Sep 17 00:00:00 2001 From: mo-bai <1873032855@qq.com> Date: Tue, 12 Apr 2022 19:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/App.vue b/App.vue index b6db6c5..fd7ad38 100644 --- a/App.vue +++ b/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`) - // } - // } - // }) - // } - // } + 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 },