...
|
...
|
@@ -18,7 +18,7 @@ var $infoList = $('#info-list'), |
|
|
$infos = $infoList.children('.info-list'),
|
|
|
$nav = $('#guang-nav'),
|
|
|
$curNav = $nav.children('.focus'),
|
|
|
curIndex = $curNav.index();
|
|
|
curType = $curNav.data('type');
|
|
|
|
|
|
var state = {};
|
|
|
|
...
|
...
|
@@ -67,15 +67,11 @@ $nav.delegate('.guang-nav-item', 'touchstart', function() { |
|
|
setLazyLoadAndMellipsis($content.children('.guang-info'));
|
|
|
|
|
|
$curNav = $this;
|
|
|
curIndex = index;
|
|
|
curType = $this.data('type');
|
|
|
});
|
|
|
|
|
|
$(document).scroll(function() {
|
|
|
if (state[curIndex].end) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) {
|
|
|
loadMore($infos, state[curIndex]);
|
|
|
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH && !state[curType].end) {
|
|
|
loadMore($infos, state[curType]);
|
|
|
}
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|