From 8f4df86baf11ec2ca583ad7cc682aab2c349e00a Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Mon, 26 Jun 2023 17:39:52 +0800 Subject: [PATCH] 2023-6-26 --- pages/raffle/raffle.vue | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/pages/raffle/raffle.vue b/pages/raffle/raffle.vue index 6917cc3..8eb9395 100644 --- a/pages/raffle/raffle.vue +++ b/pages/raffle/raffle.vue @@ -240,26 +240,12 @@ desc: '疯狂赏金-192用户话费红包大派送', link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: 'http://h5.ali251.langye.net/res/share-img.jpeg', // 分享图标 - success: () => { - this.$u.api.endTask({ - task_id: 1 - }).then(res => { - this.getProducts() - }) - } }); jwx.onMenuShareTimeline({ title: '疯狂赏金-192用户话费红包大派送', // 分享标题 desc: '疯狂赏金-192用户话费红包大派送', link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: 'http://h5.ali251.langye.net/res/share-img.jpeg', // 分享图标 - success: () => { - this.$u.api.endTask({ - task_id: 1 - }).then(res => { - this.getProducts() - }) - } }); }) }) @@ -368,15 +354,15 @@ }) } }, - // toShare(newVal) { - // if (!newVal) { - // this.$u.api.endTask({ - // task_id: 1 - // }).then(res => { - // this.getProducts() - // }) - // } - // } + toShare(newVal) { + if (newVal) { + this.$u.api.endTask({ + task_id: 1 + }).then(res => { + this.getProducts() + }) + } + } }, onShow() { this.getProducts()