通过判断res.from的值是不是button来判断是按钮分享还是右上角转发
onShareAppMessage: function (res) {
//判断是否通过点击按钮分享
if(res.from!='button')
{
return {
title: this.data.shareData.title || this.data.userInfo.nickName + '的分享',
path:'pages/index/index'
}
}
})
onShareAppMessage: function (res) {
//判断是否通过点击按钮分享
if(res.from!='button')
{
return {
title: this.data.shareData.title || this.data.userInfo.nickName + '的分享',
path:'pages/index/index'
}
}
})