...
|
...
|
@@ -13,7 +13,7 @@ var winH = $(window).height(), |
|
|
$goodList = $('#goods-list'),
|
|
|
loading = false,
|
|
|
page = 0,
|
|
|
gender = $('.mobile-wrap').hasClass('boys-wrap') ? '1,3' : '2,3',
|
|
|
gender = null,
|
|
|
kidsType = $('.mobile-wrap').hasClass('kids-wrap') ? true : false,
|
|
|
lifestyleType = $('.mobile-wrap').hasClass('lifestyle-wrap') ? true : false,
|
|
|
num,
|
...
|
...
|
@@ -29,7 +29,9 @@ if (kidsType) { |
|
|
} else if (lifestyleType) {
|
|
|
url = '/product/recom/maylikelife';
|
|
|
} else {
|
|
|
gender = $('.mobile-wrap').hasClass('boys-wrap') ? '1,3' : '2,3',
|
|
|
url = '/product/recom/maylike?gender=' + gender;
|
|
|
boygirl_flag = true;
|
|
|
}
|
|
|
|
|
|
$curNav = $navList.children('.focus');
|
...
|
...
|
@@ -75,6 +77,27 @@ $(window).scroll(function () { |
|
|
success: function(data) {
|
|
|
if (data === ' ') {
|
|
|
loading = true;
|
|
|
alert('haha');
|
|
|
if (gender) {
|
|
|
var url;
|
|
|
if (gender === '1,3') {
|
|
|
url = '/boys/bottomBanner';
|
|
|
} else {
|
|
|
url = '/girls/bottomBanner';
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: url,
|
|
|
success: function(data) {
|
|
|
$('#load-more-img').show();
|
|
|
$('#load-more-img a').attr('url', data[0].banner[0].url);
|
|
|
$('#load-more-img a > img').attr('src', data[0].banner[0].img);
|
|
|
},
|
|
|
error: function() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
$goodList.append(data);
|
...
|
...
|
|