Showing
1 changed file
with
24 additions
and
0 deletions
@@ -19,6 +19,23 @@ var shareData = { | @@ -19,6 +19,23 @@ var shareData = { | ||
19 | imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png' | 19 | imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png' |
20 | }; | 20 | }; |
21 | 21 | ||
22 | +if (/QQ/i.test(navigator.userAgent)) { | ||
23 | + console.log('hi') | ||
24 | + $.ajax({ | ||
25 | + url: '//qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js', | ||
26 | + dataType: 'script', | ||
27 | + cache: true, | ||
28 | + success: function() { | ||
29 | + window.setShareInfo && window.setShareInfo({ | ||
30 | + title: shareData.title, | ||
31 | + summary: shareData.desc, | ||
32 | + pic: shareData.imgUrl, | ||
33 | + url: shareData.link | ||
34 | + }); | ||
35 | + } | ||
36 | + }); | ||
37 | +} | ||
38 | + | ||
22 | if (/MicroMessenger/i.test(navigator.userAgent)) { | 39 | if (/MicroMessenger/i.test(navigator.userAgent)) { |
23 | $.ajax({ | 40 | $.ajax({ |
24 | url: '//res.wx.qq.com/open/js/jweixin-1.1.0.js', | 41 | url: '//res.wx.qq.com/open/js/jweixin-1.1.0.js', |
@@ -63,4 +80,11 @@ module.exports = function(data) { | @@ -63,4 +80,11 @@ module.exports = function(data) { | ||
63 | window.wx.onMenuShareWeibo(shareData); | 80 | window.wx.onMenuShareWeibo(shareData); |
64 | window.wx.onMenuShareQZone(shareData); | 81 | window.wx.onMenuShareQZone(shareData); |
65 | } | 82 | } |
83 | + | ||
84 | + window.setShareInfo && window.setShareInfo({ | ||
85 | + title: shareData.title, | ||
86 | + summary: shareData.desc, | ||
87 | + pic: shareData.imgUrl, | ||
88 | + url: shareData.link | ||
89 | + }); | ||
66 | }; | 90 | }; |
-
Please register or login to post a comment