onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ["shareAppMessage", "shareTimeline"],
});
},
onShareTimeline: function (res) {
var that = this;
return {
title: `小程序名称`,
imageUrl: `https://bbs.txwb.com/images/wmapp/share.jpg`,
query: "",
success: function (res) { },
};
},
onShareAppMessage: function (res) {
return {
title: `小程序名称`,
imageUrl: `https://bbs.txwb.com/images/wmapp/share.jpg`,
path: "/pages/xxxx/xxx" ,
success: function (res) { },
};
},
小程序不可转发分享灰色
最新推荐文章于 2024-02-02 14:54:04 发布