1、效果:
2、.js代码:
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) { // 转发失败 } } }})