一种是一直跳微信, 显示正在连接, 然后跳回app (一直这样)
一种是跳微信 不出现选对话, 停留在消息列表
一种是跳微信后立马跳回app
三种随机出现.
ios 18 部分机型能复现.
plus.share.getServices(function(serviceArray) {
let service = serviceArray.find(function (service) {
return service.id === 'weixin'
})
if (service && service.authenticated) {
service.send({
type: 'miniProgram',
title: productName,
content:'',
thumbs: [imgSrc +'?imageMogr2/thumbnail/500x400/pad/1/color/I2Y1ZjdmYQ'],
miniProgram: {
id: 'gh_006794209f7c',
path: '/pages/product-info/index?scene=' + encodeURIComponent('p_id=' + productId + ';' + companyId + '&c_id=' + companyId),
type: MINI_PROGRAM_SHARE_TYPE,
webUrl: 'https://www.baidu.com',
},
extra: {
scene: 'WXSceneSession',
}
}, function() {
mui.toast("分享成功!")
}, function(e) {
mui.toast("分享失败!")
})
} else {
mui.toast("分享服务未授权或没有找到,请联系客服!")
}
}
0 个回复