xx.js
onLoad: function (options) {
wx.hideShareMenu({
menus: ['shareAppMessage', 'shareTimeline']
})
},
onShareAppMessage: function (e) {
if (e.from === 'button') {
// 来自页面内转发按钮
console.log(e.target)
return {
title: 'xxxxxxxxxxxxxxxxxxx',
path: 'pages/home/home',
}
}
}