跳转应用商店 #293

Merged
hansu merged 1 commits from zhy into master 2020-08-25 02:41:19 +00:00

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