|
@@ -42,8 +42,6 @@ if ($window.width() === 375 && isiOS) { |
|
@@ -42,8 +42,6 @@ if ($window.width() === 375 && isiOS) { |
42
|
|
42
|
|
43
|
require('../common');
|
43
|
require('../common');
|
44
|
|
44
|
|
45
|
-lazyLoad($('img.lazy'));
|
|
|
46
|
-
|
|
|
47
|
$window.on('mousewheel', false);
|
45
|
$window.on('mousewheel', false);
|
48
|
|
46
|
|
49
|
// 限制标题字数
|
47
|
// 限制标题字数
|
|
@@ -177,11 +175,15 @@ function initAction() { |
|
@@ -177,11 +175,15 @@ function initAction() { |
177
|
txtLimit($(this), '.title', '.cont-txt');
|
175
|
txtLimit($(this), '.title', '.cont-txt');
|
178
|
});
|
176
|
});
|
179
|
|
177
|
|
180
|
- lazyLoad($('img.lazy'));
|
178
|
+ $('img.lazy').lazyload({
|
|
|
179
|
+ effect: 'fadeIn'
|
|
|
180
|
+ });
|
181
|
|
181
|
|
182
|
setIndexAction();
|
182
|
setIndexAction();
|
183
|
}
|
183
|
}
|
184
|
|
184
|
|
|
|
185
|
+initAction();
|
|
|
186
|
+
|
185
|
|
187
|
|
186
|
// 首页数据请求
|
188
|
// 首页数据请求
|
187
|
getIndexHtml = function() {
|
189
|
getIndexHtml = function() {
|
|
@@ -211,8 +213,6 @@ getIndexHtml = function() { |
|
@@ -211,8 +213,6 @@ getIndexHtml = function() { |
211
|
});
|
213
|
});
|
212
|
};
|
214
|
};
|
213
|
|
215
|
|
214
|
-initAction();
|
|
|
215
|
-
|
|
|
216
|
// 下拉刷新,上拉加载
|
216
|
// 下拉刷新,上拉加载
|
217
|
starIScroll = new PullRefresh('.star-main', {
|
217
|
starIScroll = new PullRefresh('.star-main', {
|
218
|
height: scrollH,
|
218
|
height: scrollH,
|
|
@@ -272,12 +272,12 @@ starIScroll.iScroll.on('scrollEnd', function() { |
|
@@ -272,12 +272,12 @@ starIScroll.iScroll.on('scrollEnd', function() { |
272
|
$loadingTip.slideUp();
|
272
|
$loadingTip.slideUp();
|
273
|
});
|
273
|
});
|
274
|
|
274
|
|
275
|
-$('img').on('load', function() {
|
|
|
276
|
- starIScroll && starIScroll.iScroll.refresh();
|
|
|
277
|
-});
|
|
|
278
|
-
|
|
|
279
|
window.setCookie('guangStarUid', window.queryString.uid);
|
275
|
window.setCookie('guangStarUid', window.queryString.uid);
|
280
|
|
276
|
|
|
|
277
|
+// $('img').on('load', function() {
|
|
|
278
|
+// starIScroll && starIScroll.iScroll.refresh();
|
|
|
279
|
+// });
|
|
|
280
|
+
|
281
|
// 明星动态文章图片相关操作
|
281
|
// 明星动态文章图片相关操作
|
282
|
/*
|
282
|
/*
|
283
|
function articleImgAction(dom, key) {
|
283
|
function articleImgAction(dom, key) {
|