...
|
...
|
@@ -56,10 +56,12 @@ var $listNav = $('#list-nav'), |
|
|
$pre, //纪录进入筛选前的active项
|
|
|
searching;
|
|
|
|
|
|
swiper = new Swiper('.swiper-container', {
|
|
|
lazyLoading: true,
|
|
|
pagination: '.swiper-pagination'
|
|
|
});
|
|
|
if ($('.swiper-container .swiper-slide').length > 1) {
|
|
|
swiper = new Swiper('.swiper-container', {
|
|
|
lazyLoading: true,
|
|
|
pagination: '.swiper-pagination'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 筛选注册的回调,筛选子项点击后逻辑
|
...
|
...
|
@@ -308,8 +310,8 @@ $(window).scroll(function() { |
|
|
//当scroll到1/4$goodsContainer高度后继续请求下一页数据
|
|
|
if ($(window).scrollTop() + winH >
|
|
|
$(document).height() - 0.25 * $goodsContainer.height()) {
|
|
|
if ($pre != undefined) {
|
|
|
if ($pre !== undefined) {
|
|
|
search();
|
|
|
}
|
|
|
}
|
|
|
}); |
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|