...
|
...
|
@@ -66,7 +66,8 @@ $(window).scroll(function () { |
|
|
return;
|
|
|
}
|
|
|
loading = true;
|
|
|
num = $goodList.children('.good-info').length;
|
|
|
|
|
|
//num = $goodList.find('.good-info').length;
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: url,
|
...
|
...
|
@@ -100,11 +101,16 @@ $(window).scroll(function () { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
$goodList.append(data);
|
|
|
num = $goodList.find('.good-info').length;
|
|
|
|
|
|
//lazyLoad
|
|
|
lazyLoad($goodList.children('.good-info:gt(' + (num - 1) + ')').find('img.lazy'));
|
|
|
$goodList.append(data);
|
|
|
|
|
|
// 2015/10/31 fei.hong: 修复第一页分页不显示图片的问题
|
|
|
if (num === 0) {
|
|
|
lazyLoad($goodList.children('.good-info').find('img.lazy'));
|
|
|
} else {
|
|
|
lazyLoad($goodList.children('.good-info:gt(' + (num - 1) + ')').find('img.lazy'));
|
|
|
}
|
|
|
|
|
|
loading = false;
|
|
|
page++;
|
...
|
...
|
|