Authored by xuqi

brand fav load. Review by:@梁志锋

... ... @@ -15,10 +15,10 @@ var $navLi = $('#fav-tab > li'),
swiperObj = {},
favTabHammer,
favContentHammer,
footerH = $('#yoho-footer').height(),
$loadMore = $('.fav-load-more'),
$brandLoadMore = $('.fav-brand-load-more'),
winH = $(window).height(),
footerH = $('#yoho-footer').height(),
$favProductList = $('.fav-product-list'),
$favBrandList = $('.fav-brand-swiper-wrapper'),
pageId = 1,
... ... @@ -220,8 +220,8 @@ favContentHammer.on('tap', function(e) {
function scrollHandler() {
if ($(window).scrollTop() + winH >= $(document).height() - footerH) {
//距离底部未1/4列表高度+底部高度的时候加载更多
if ($(window).scrollTop() + winH >= $(document).height() - 0.25 * $favBrandList.height() - footerH) {
if (brandTab) {
$brandLoadMore.filter('.hide').removeClass('hide');
... ...