效果
js
let app = getApp();
Page({
data: {
img: /images/1.jpg
},
onLoad() {
},
showShareMenu() {
wx.showShareMenu();
console.log(显示了当前页面的转发按钮);
},
hideShareMenu() {
wx.hideShareMenu();
console.log(隐藏了当前页面的转发按钮);
},
onShareAppMessage: (res) => {
if (res.from === 'button')
1