Authored by zhangxiaoru

首页分享

... ... @@ -9,12 +9,27 @@ let $news = $('.news'),
newsLiL = $news.find('li').length,
newsHeight = 0;
let shareData = {
title: '【有货】参与分享购,大家一起拿返利~',
link: location.href,
desc: '学生用户专享,返利升级购物可直接抵现金,超级福利等你来嗨~',
imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png'
};
require('common');
require('common/share')(shareData);
if ($('.share-buy-page').height() < $(window).height()) {
$('.share-buy-page').height($(window).height());
}
if (yoho.isApp) {
yoho.ready(function() {
yoho.invokeMethod('set.shareInfo', shareData);
});
}
// 返利资讯的滚动
function Marquee() {
let diff;
... ...