From 9c026bf64d1e7a8b039a4b519933cb4b8dd4b00a Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Tue, 25 Aug 2020 10:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=BA=94=E7=94=A8=E5=95=86?= =?UTF-8?q?=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageE/setting/updateVersion.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pageE/setting/updateVersion.vue b/pageE/setting/updateVersion.vue index 456b2fb..4a65869 100644 --- a/pageE/setting/updateVersion.vue +++ b/pageE/setting/updateVersion.vue @@ -31,7 +31,18 @@ this.closeModal(); }, confirm() { + // ifdef APP-PLUS + if (plus.os.name == "Android") { + const appurl = "market://details?id=自己打包用的包名"; //这个是通用应用市场,如果想指定某个应用商店,需要单独查这个应用商店的包名或scheme及参数 + plus.runtime.openURL(appurl); + } else if(plus.os.name == "ios") { + const appurl = "itms-apps://itunes.apple.com/cn/app/id1144816653?mt=8"; + plus.runtime.openURL(appurl); + } + // endif + // ifndef H5 this.closeModal(); + // endif }, closeModal() { uni.navigateBack();