From b708972e90ce1f3664f0673ea3c76bc80f4bce25 Mon Sep 17 00:00:00 2001 From: taiyuan Date: Mon, 25 Oct 2021 10:23:05 +0800 Subject: [PATCH] 专享礼包增加分享到朋友圈 --- pages/giftpack/mygiftpack/mygiftpack.js | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js index 5e38b80..f2ff3f7 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.js +++ b/pages/giftpack/mygiftpack/mygiftpack.js @@ -148,5 +148,18 @@ onShareAppMessage: function (e) { } }, + onShareTimeline() { + var curPage=this; + var pagePath = curPage.route; //当前页面url + if (pagePath.indexOf('/') != 0) { + pagePath = '/' + pagePath; + } + return { + title: '专享礼包', + imageUrl: this.data.ad_data.ad_code, + path: pagePath, + } + }, + }); \ No newline at end of file -- libgit2 0.21.4