https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.hideShareMenu.html
wx.hideShareMenu({
menus: ['shareAppMessage', 'shareTimeline']
})
//shareTimeline分享到朋友圈
//shareAppMessage分享给朋友
隐藏之后就不可以分享了
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
显示之后就可以显示了,可以先全部隐藏,根据条件进行显示