plus.share.getServices(
res => {
let sweixin = null;
for (let i in res) {
if (res[i].id == 'weixin') {
sweixin = res[i];
}
}
//唤醒微信小程序
if (sweixin) {
uni.hideLoading()
sweixin.launchMiniProgram({
id: wx_username, // 小程序的原始ID,微信公众平台设置里有
type: 0, //小程序版本 0-正式版; 1-测试版; 2-体验版。
path: wx_path //小程序的页面,用传的参数在小程序接值判断跳转指定页面
})
}
}
)
uniapp-app 打开小程序
最新推荐文章于 2024-06-14 23:55:08 发布