...
|
...
|
@@ -1708,6 +1708,7 @@ var start = 0, |
|
|
lazyLoad($('img.lazy'));
|
|
|
|
|
|
$('.nav-btn').on('touchstart', function(event) {
|
|
|
$sideNav.css('pointer-events', 'none');
|
|
|
$mobileWrap.addClass('menu-open');
|
|
|
$overlay.show().css('opacity', 0.3);
|
|
|
$sideNav.addClass('on');
|
...
|
...
|
@@ -1720,6 +1721,11 @@ $('.nav-btn').on('touchstart', function(event) { |
|
|
height: $(window).height(),
|
|
|
overflow: 'hidden'
|
|
|
});
|
|
|
|
|
|
setTimeout(function() {
|
|
|
$sideNav.css('pointer-events', 'auto');
|
|
|
}, 400);
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
|
...
|
...
|
@@ -6917,8 +6923,8 @@ function loadData($parent, url, page) { |
|
|
page: page
|
|
|
},
|
|
|
success: function(data) {
|
|
|
var $loadingMask = $parent.closest('.fav-type').find('.fav-content-loading');
|
|
|
|
|
|
var $loadingMask = $parent.closest('.fav-type').find('.fav-content-loading');
|
|
|
|
|
|
if (url === 'favBrand') {
|
|
|
$brandLoadMore.addClass('hide');
|
|
|
} else {
|
...
|
...
|
@@ -6929,23 +6935,23 @@ function loadData($parent, url, page) { |
|
|
$loadingMask.addClass('hide');
|
|
|
$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
|
|
|
} else if (data === 'end') {
|
|
|
|
|
|
//处理data等于end时如果loadingMask存在且没有hide样式的情况
|
|
|
if ($loadingMask && !$loadingMask.hasClass('hide')) {
|
|
|
|
|
|
//处理data等于end时如果loadingMask存在且没有hide样式的情况
|
|
|
if ($loadingMask && !$loadingMask.hasClass('hide')) {
|
|
|
$loadingMask.addClass('hide');
|
|
|
$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
|
|
|
}
|
|
|
|
|
|
//$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
|
|
|
}
|
|
|
|
|
|
$parent.closest('.fav-type').find('.fav-load-background')
|
|
|
.removeClass('fav-load-background').html('没有更多了');
|
|
|
|
|
|
.removeClass('fav-load-background').html('没有更多了');
|
|
|
|
|
|
// hf: fixes bug to 修改没有数据还调接口,加载错误页面问题
|
|
|
brandLockId = true;
|
|
|
lockId = true;
|
|
|
} else if (data.length > 10) {
|
|
|
$parent.append(data);
|
|
|
|
|
|
//如果有数据loadingMask会被remove掉
|
|
|
|
|
|
//如果有数据loadingMask会被remove掉
|
|
|
$loadingMask.remove();
|
|
|
if (url === 'favBrand') {
|
|
|
initSwiper(data);//如果是收藏品牌需要初始化swiper
|
...
|
...
|
|