維信小程序分享到朋友圈 只支持安卓部分機型
uniapp微信登錄,
?點擊頭部分享
onLoad: function() {wx.showShareMenu({withShareTicket: true,menus: ["shareAppMessage", "shareTimeline"]})},
怎么將小程序分享到朋友圈,通過按鈕分享
<button open-type="share" class="share"><img src="./img/share.png" /></button>
//分享到好友
onShareAppMessage(res) {return {title: this.info.shareTitle,path: '/pages/index/index',imageUrl:'',}},
//分享到朋友圈 ,目前這個接口灰度中,只支持部分安卓機型onShareTimeline:function(){return {title: this.info.shareTitle,imageUrl:this.info.shareImageUrl,query:'' }},
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态