Commit b708972e90ce1f3664f0673ea3c76bc80f4bce25
1 parent
48f2c01e
专享礼包增加分享到朋友圈
Showing
1 changed file
with
13 additions
and
0 deletions
pages/giftpack/mygiftpack/mygiftpack.js
| @@ -148,5 +148,18 @@ onShareAppMessage: function (e) { | @@ -148,5 +148,18 @@ onShareAppMessage: function (e) { | ||
| 148 | } | 148 | } |
| 149 | }, | 149 | }, |
| 150 | 150 | ||
| 151 | + onShareTimeline() { | ||
| 152 | + var curPage=this; | ||
| 153 | + var pagePath = curPage.route; //当前页面url | ||
| 154 | + if (pagePath.indexOf('/') != 0) { | ||
| 155 | + pagePath = '/' + pagePath; | ||
| 156 | + } | ||
| 157 | + return { | ||
| 158 | + title: '专享礼包', | ||
| 159 | + imageUrl: this.data.ad_data.ad_code, | ||
| 160 | + path: pagePath, | ||
| 161 | + } | ||
| 162 | + }, | ||
| 163 | + | ||
| 151 | 164 | ||
| 152 | }); | 165 | }); |
| 153 | \ No newline at end of file | 166 | \ No newline at end of file |