微信小程序自定义组件分享回调无效发布于 7 年前作者 gang486594 次浏览最后编辑 7 年前来自 ask微信小程序自定义组件中按钮绑定分享,分享结果回调方法无效? 代码片段 onShareAppMessage: function () { return { title: ‘postDetail.info.postTitle’, path: ‘/pages/index/index’, success: function (res) { // 转发成功 wx.showToast({ title: “分享成功”, duration: 1000, icon: “success” }) }, fail: function (res) { wx.showToast({ title: “分享失败”, duration: 1000, icon: “success” }) } } },