Commit accac142 authored by coolfish's avatar coolfish

增加jssdk

parent ba468248
......@@ -178,10 +178,12 @@
</div>
</body>
<script type="text/javascript">
var shareIcon = 'http://hfads.apps.xiaoyun.com/images/hjy@2x.png';
var shareUrl = 'http://hfads.apps.xiaoyun.com/';
var shareTitle = '红椒易X小云蜂巢新媒体广告平台';
var shareDesc = '整合内容资源,提升广告主的品牌曝光能力,只需四步,即可完成广告投放需求。';
var shareData = {
title: '红椒易X小云蜂巢新媒体广告平台',
desc: '整合内容资源,提升广告主的品牌曝光能力,只需四步,即可完成广告投放需求。',
link: 'http://hfads.apps.xiaoyun.com/',
imgUrl: 'http://hfads.apps.xiaoyun.com/images/hjy@2x.png'
};
wx.config({
debug: false,
appId: '<%= appid || '' %>',
......@@ -197,35 +199,11 @@
]
});
wx.ready(function () {
wx.onMenuShareTimeline({
title: shareTitle,
link: shareIcon,
imgUrl: shareUrl
});
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
});
wx.onMenuShareTimeline(shareData);
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareQQ(shareData);
wx.onMenuShareWeibo(shareData);
wx.onMenuShareQZone(shareData);
});
</script>
</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