...
|
...
|
@@ -42,8 +42,6 @@ if ($window.width() === 375 && isiOS) { |
|
|
|
|
|
require('../common');
|
|
|
|
|
|
lazyLoad($('img.lazy'));
|
|
|
|
|
|
$window.on('mousewheel', false);
|
|
|
|
|
|
// 限制标题字数
|
...
|
...
|
@@ -177,11 +175,15 @@ function initAction() { |
|
|
txtLimit($(this), '.title', '.cont-txt');
|
|
|
});
|
|
|
|
|
|
lazyLoad($('img.lazy'));
|
|
|
$('img.lazy').lazyload({
|
|
|
effect: 'fadeIn'
|
|
|
});
|
|
|
|
|
|
setIndexAction();
|
|
|
}
|
|
|
|
|
|
initAction();
|
|
|
|
|
|
|
|
|
// 首页数据请求
|
|
|
getIndexHtml = function() {
|
...
|
...
|
@@ -211,8 +213,6 @@ getIndexHtml = function() { |
|
|
});
|
|
|
};
|
|
|
|
|
|
initAction();
|
|
|
|
|
|
// 下拉刷新,上拉加载
|
|
|
starIScroll = new PullRefresh('.star-main', {
|
|
|
height: scrollH,
|
...
|
...
|
@@ -272,12 +272,12 @@ starIScroll.iScroll.on('scrollEnd', function() { |
|
|
$loadingTip.slideUp();
|
|
|
});
|
|
|
|
|
|
$('img').on('load', function() {
|
|
|
starIScroll && starIScroll.iScroll.refresh();
|
|
|
});
|
|
|
|
|
|
window.setCookie('guangStarUid', window.queryString.uid);
|
|
|
|
|
|
// $('img').on('load', function() {
|
|
|
// starIScroll && starIScroll.iScroll.refresh();
|
|
|
// });
|
|
|
|
|
|
// 明星动态文章图片相关操作
|
|
|
/*
|
|
|
function articleImgAction(dom, key) {
|
...
|
...
|
|