android的页面用uni-app,做分享到微信的时候是如何能实现选择分享给好友还是分享给朋友圈?类似这样的样子:|(我觉得这个应该是个原生的方法叭)
我现在用的是uni.share,但是好像只能单独选择,是我现在的代码。
uni.share({
provider: "weixin",
scene: "WXSceneSession", // WXSceneSession-分享到聊天界面; WXSenceTimeline-分享到朋友圈
type: 0, // 分享为图文形式
href: "xxxxxx", //
title: "标题", //分享内容的标题
summary: "我正在使用xxx,赶紧跟我一起体验吧!", //分享内容的摘要
imageUrl: "../../../../static/imgs/mall/share.png", //图片地址。type为0时,推荐使用小于20Kb的图片
success: function(res) {
uni.showToast({
title: "分享成功",
icon: '@/static/imgs/blackhitImg/blackhit-2-2.png',
duration: 2000,
mask: true
});
console.log("success:" + JSON.stringify(res));
},
fail: function(err) {
console.log("fail:" + JSON.stringify(err));
}
});