onShareAppMessage: function (e) {
var shareInfo = {
title: "标题",
desc:"描述",
imgUrl:"显示的图片"
}
wx.showShareMenu({
withShareTicket: true,
success: function (e) {
wx.showToast({
title: '分享成功',
})
},
fail: function (e) {
wx.showToast({
title: '分享失败',
})
}
});
return shareInfo;
},