Merge pull request '跳转应用商店' (#293) from zhy into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/293
This commit is contained in:
hansu 2020-08-25 10:41:17 +08:00
commit 6af21ad216

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