分享监听
/**
* 用户点击右上角分享
*/
onShareAppMessage: function(res) {
console.log(res)
if (res.from === 'menu') {
return {
title: '邀请赢好礼',
path: '/pages/member/membership-registration/membership-registration?refer=' + this.data.userID,
success: function(res) {
// 转发成功
wx.showToast({
title: '分享成功',
icon: 'none'
})
},
fail: fu