diff --git a/pages/raffle/raffle.vue b/pages/raffle/raffle.vue index 8d01d97..6917cc3 100644 --- a/pages/raffle/raffle.vue +++ b/pages/raffle/raffle.vue @@ -227,7 +227,7 @@ title: '疯狂赏金-192用户话费红包大派送', // 分享标题 desc: '疯狂赏金-192用户话费红包大派送', link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 - imgUrl: 'http://h5.ali251.langye.net/storage/files/1686122729648030e9447aa.jpeg', // 分享图标 + imgUrl: 'http://h5.ali251.langye.net/res/share-img.jpeg', // 分享图标 }); jwx.updateTimelineShareData({ title: '疯狂赏金-192用户话费红包大派送', // 分享标题 @@ -240,12 +240,26 @@ 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() + }) + } }); }) }) @@ -354,15 +368,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() @@ -733,4 +747,4 @@ opacity: 0; } } - \ No newline at end of file +