标签:技术 run http navigate ati load cti mamicode and
官方app
//#ifdef APP-PLUS
plus.runtime.launchApplication(
{//打开app2
pname: ‘com.MobileTicket‘
},
function(e) {
//打开失败时
console.log(e);
uni.navigateTo({
url: ‘./traffic‘
});
// uni.showModal({
// title:"打开失败",
// content:"请安装 铁路12306",
// })
}
);
//#endif
自己开发的app
修改pname的值:android包名/AppID

uni-app判断有没有安装这个app,如果有的话直接打开,没有的话跳转到下载页面
标签:技术 run http navigate ati load cti mamicode and
原文地址:https://www.cnblogs.com/chenwan1218/p/14132263.html