From a5dfb00945b42b05440432f0b3dd813cbfec71cd Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 3 Feb 2023 16:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppLuckyDraw/AppLuckyDraw.vue | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue b/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue index 5a358e03..637f0530 100644 --- a/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue +++ b/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue @@ -2,8 +2,7 @@
- - +
@@ -285,29 +284,11 @@ export default { }, share() { this.agentSign().then((res) => { - console.log(999, res) this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => { - console.log(111) - // this.wxInvoke(['shareAppMessage', { - // title: '幸运抽奖', - // desc: '新年伊始,企业微信团队为创建安全和谐的网络办公环境,诚邀大家使用企业微信参与打卡活动!', - // link: `./AppLuckyDraw/AppLuckyDraw?activityId=${this.activityId}&friendId=${this.user.id}`, - // }]) - wx.onMenuShareWechat({ + wx.onMenuShareAppMessage({ title: '幸运抽奖', desc: '新年伊始,企业微信团队为创建安全和谐的网络办公环境,诚邀大家使用企业微信参与打卡活动!', link: `./AppLuckyDraw/AppLuckyDraw?activityId=${this.activityId}&friendId=${this.user.id}`, - success: function () { - // 用户确认分享后执行的回调函数 - console.log(22,res) - }, - error: function(res) { - console.log(11,res) - }, - cancel: function () { - // 用户取消分享后执行的回调函数 - console.log(33,res) - } }); }) })