Showing
1 changed file
with
8 additions
and
1 deletions
@@ -27,9 +27,10 @@ let shareData = { | @@ -27,9 +27,10 @@ let shareData = { | ||
27 | link: location.href, | 27 | link: location.href, |
28 | desc: '来YOHO玩潮流~甄选好货等你来BUY~', | 28 | desc: '来YOHO玩潮流~甄选好货等你来BUY~', |
29 | imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png' | 29 | imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png' |
30 | + | ||
30 | }; | 31 | }; |
31 | 32 | ||
32 | -let appVersion; | 33 | +let appVersion, link; |
33 | 34 | ||
34 | let couponId = $('.coupon-info').data('id'); | 35 | let couponId = $('.coupon-info').data('id'); |
35 | 36 | ||
@@ -37,6 +38,12 @@ require('common/share')(shareData); | @@ -37,6 +38,12 @@ require('common/share')(shareData); | ||
37 | require('common'); | 38 | require('common'); |
38 | 39 | ||
39 | if (yoho.isApp) { | 40 | if (yoho.isApp) { |
41 | + link = 'http://m.yohobuy.com/activity/share-buy/detail?counum=' + window.queryString.counum + | ||
42 | + '&couponType=' + window.queryString.couponType + '&detailDes=' + window.queryString.detailDes + | ||
43 | + '&couponId=' + window.queryString.couponId; | ||
44 | + | ||
45 | + shareData.link = link; | ||
46 | + | ||
40 | yoho.ready(function() { | 47 | yoho.ready(function() { |
41 | yoho.invokeMethod('set.shareInfo', shareData); | 48 | yoho.invokeMethod('set.shareInfo', shareData); |
42 | }); | 49 | }); |
-
Please register or login to post a comment