跳转应用商店

This commit is contained in:
ghusermoon 2020-08-25 10:40:47 +08:00
parent 27bdf1f2b0
commit 9c026bf64d

View File

@ -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();