小程序转发分享功能
点击又上角--转发或者button按钮分享
button class='share' open-type="share" hover-class="none" image src="https://data.bphotos.cn/share.png" mode="widthFix"/image /button onShareAppMessage: function (ops) { if (ops.from === 'button') { // 来自页面内转发按钮 console.log(ops.target) } return { title: 'Bphoto智能照相馆', path: 'pages/index/index', imageUrl: '', success: function (shareTickets) { console.info(shareTickets + '成功'); // 转发成功 }, fail: function (res) { console.log(res + '失败'); // 转发失败 }, complete: function (res) { // 不管成功失败都会执行 } } }
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

