plus.share.getServices(
res => {
let sweixin = null;
for (let i in res) {
if (res[i].id == 'weixin') {
sweixin = res[i];
}
}
//唤醒微信小程序
if (sweixin) {
sweixin.launchMiniProgram({
id: 'gh_97952bb6e21c', //
type: 0, //小程序版本 0-正式版; 1-测试版; 2-体验版。
path: 'pages/tabbar/tabbar-1/tabbar-1'
});
}
}
);
UNIAPP app打开小程序
最新推荐文章于 2024-06-14 23:55:08 发布
关键词由CSDN通过智能技术生成