// #ifdef APP-PLUS
plus.share.getServices(shareList=>{
let shareWx = shareList.find(val=> val.id == 'weixin')
if(shareWx.nativeClient){
shareWx.launchMiniProgram({
id: 123,
path: 123,
type: 2
})
} else {
uni.showToast({icon: 'none', title: "未安装微信,无法打开对应小程序"})
}
}, e=>{
uni.showToast({icon: 'none', title: "打开小程序失败"})
})
// #endif

代代_123
- 发布:2023-03-09 17:46
- 更新:2023-03-09 17:46
- 阅读:303
0 个回复