This article mainly introduces in detail the relevant information on dynamically adding shared data in WeChat mini programs. It has certain reference value. Interested friends can refer to
The sharing effect of WeChat mini programs:
js code:
page({ /** * 用户点击分享按钮或右上角分享 */ onShareAppMessage: function (res) { var that = this; return { title: that.data.common.act_name, desc: that.data.common.introduction, path: '/pages/xiangqing/xiangqing?id='+that.data.id, success: function (res) { // 转发成功 }, fail: function (res) { // 转发失败 } } } })
The above is the detailed content of Detailed graphic examples of sharing effects in WeChat mini programs. For more information, please follow other related articles on the PHP Chinese website!