...
|
...
|
@@ -3,7 +3,8 @@ |
|
|
let $ = require('yoho-jquery');
|
|
|
|
|
|
let $news = $('.news'),
|
|
|
newsLiL = $news.find('li').length;
|
|
|
newsLiL = $news.find('li').length,
|
|
|
newsHeight = 0;
|
|
|
|
|
|
// tip = require('plugin/tip');
|
|
|
|
...
|
...
|
@@ -14,8 +15,7 @@ if ($('.share-buy-page').height() < $(window).height()) { |
|
|
}
|
|
|
|
|
|
function Marquee() {
|
|
|
let diff,
|
|
|
newsHeight = $news.find('li:first').height() * newsLiL;
|
|
|
let diff;
|
|
|
|
|
|
$news.scrollTop($news.scrollTop() + 1);
|
|
|
|
...
|
...
|
@@ -30,5 +30,11 @@ if (newsLiL > 1) { |
|
|
|
|
|
$news.append('<li>' + $news.find('li:first').html() + '</li>');
|
|
|
|
|
|
for (let i = 0; i < newsLiL; i++) {
|
|
|
$news.find('li').eq(i).height($news.find('li:first').height());
|
|
|
|
|
|
newsHeight = newsHeight + $news.find('li').eq(i).height();
|
|
|
}
|
|
|
|
|
|
setInterval(Marquee, 100);
|
|
|
} |
...
|
...
|
|