...
|
...
|
@@ -13,7 +13,7 @@ var navHammer, |
|
|
winH = $(window).height(),
|
|
|
loadMoreH = $('#load-more').height(),
|
|
|
$goodList = $('#goods-list'),
|
|
|
loading = false,
|
|
|
searching = false,
|
|
|
page = 0,
|
|
|
gender = null,
|
|
|
kidsType = $('.mobile-wrap').hasClass('kids-wrap') ? true : false,
|
...
|
...
|
@@ -44,6 +44,7 @@ if (lifestyleType) { |
|
|
$goods = $('.goods-list'),
|
|
|
$content;
|
|
|
|
|
|
e.preventDefault();
|
|
|
if ($this.hasClass('focus')) {
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -64,12 +65,15 @@ if (lifestyleType) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//loading.init($('.maybe-like'));
|
|
|
|
|
|
function search() {
|
|
|
if (loading) {
|
|
|
if (searching) {
|
|
|
return;
|
|
|
}
|
|
|
loading = true;
|
|
|
searching = true;
|
|
|
|
|
|
//loading.showLoadingMask();
|
|
|
|
|
|
//num = $goodList.find('.good-info').length;
|
|
|
$.ajax({
|
...
|
...
|
@@ -80,7 +84,9 @@ function search() { |
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data === ' ') {
|
|
|
loading = false;
|
|
|
searching = false;
|
|
|
|
|
|
//loading.hideLoadingMask();
|
|
|
if (gender) {
|
|
|
if (gender === '1,3') {
|
|
|
url = '/boys/bottomBanner';
|
...
|
...
|
@@ -116,12 +122,16 @@ function search() { |
|
|
lazyLoad($goodList.find('.good-info:gt(' + (num - 1) + ')').find('img.lazy'));
|
|
|
}
|
|
|
|
|
|
loading = false;
|
|
|
searching = false;
|
|
|
|
|
|
//loading.hideLoadingMask();
|
|
|
page++;
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
|
|
loading = false;
|
|
|
searching = false;
|
|
|
|
|
|
//loading.hideLoadingMask();
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|