在我的活动页加入分享

This commit is contained in:
2024-02-08 17:09:48 +08:00
parent 4daf63fb9e
commit 3303fb79a7
2 changed files with 111 additions and 0 deletions

View File

@@ -211,6 +211,25 @@
});
},
methods: {
// 分享给好友
onShareAppMessage: function() {
wx.showShareMenu(
{
withShareTicket:true,
menu:['111','222']
}
)
},
// 分享到朋友圈
onShareTimeline() {
return {
title: '公司团建', // 分享出的卡片标题
path: '/pages/home/cloudCard2', // 他人通过卡片进入小程序的路径可以在后面拼接URL的形式带参数
imageUrl: '/static/logo_icon.png', // 分享出去的图片默认为当前页面的截图。图片路径可以是本地文件路径或者网络图片路径。支持PNG及JPG。
};
},
setEnrollRequiredName(){
let enrollRequiredName = ""
if (this.page.activityDetails.enrollRequired.onRealName == 1){