Commit accac142 authored by coolfish's avatar coolfish

增加jssdk

parent ba468248
...@@ -178,10 +178,12 @@ ...@@ -178,10 +178,12 @@
</div> </div>
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
var shareIcon = 'http://hfads.apps.xiaoyun.com/images/hjy@2x.png'; var shareData = {
var shareUrl = 'http://hfads.apps.xiaoyun.com/'; title: '红椒易X小云蜂巢新媒体广告平台',
var shareTitle = '红椒易X小云蜂巢新媒体广告平台'; desc: '整合内容资源,提升广告主的品牌曝光能力,只需四步,即可完成广告投放需求。',
var shareDesc = '整合内容资源,提升广告主的品牌曝光能力,只需四步,即可完成广告投放需求。'; link: 'http://hfads.apps.xiaoyun.com/',
imgUrl: 'http://hfads.apps.xiaoyun.com/images/hjy@2x.png'
};
wx.config({ wx.config({
debug: false, debug: false,
appId: '<%= appid || '' %>', appId: '<%= appid || '' %>',
...@@ -197,35 +199,11 @@ ...@@ -197,35 +199,11 @@
] ]
}); });
wx.ready(function () { wx.ready(function () {
wx.onMenuShareTimeline({ wx.onMenuShareTimeline(shareData);
title: shareTitle, wx.onMenuShareAppMessage(shareData);
link: shareIcon, wx.onMenuShareQQ(shareData);
imgUrl: shareUrl wx.onMenuShareWeibo(shareData);
}); wx.onMenuShareQZone(shareData);
wx.onMenuShareAppMessage({
title: shareTitle,
desc: shareDesc,
link: shareUrl,
imgUrl: shareIcon
});
wx.onMenuShareQQ({
title: shareTitle,
desc: shareDesc,
link: shareUrl,
imgUrl: shareIcon
});
wx.onMenuShareWeibo({
title: shareTitle,
desc: shareDesc,
link: shareUrl,
imgUrl: shareIcon
});
wx.onMenuShareQZone({
title: shareTitle,
desc: shareDesc,
link: shareUrl,
imgUrl: shareIcon
});
}); });
</script> </script>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment