...
|
...
|
@@ -10,17 +10,14 @@ var $ = require('yoho.zepto'), |
|
|
|
|
|
var winH = $(window).height(),
|
|
|
loadMoreH = $('#load-more').height(),
|
|
|
$goodList = $('#goods-list'),
|
|
|
loading = false,
|
|
|
end = false,
|
|
|
page = 0,
|
|
|
gender = '',
|
|
|
gender = $('.mobile-wrap').hasClass('boys-wrap') ? '1,3' : '2,3',
|
|
|
num,
|
|
|
res;
|
|
|
|
|
|
gender = $('.mobile-wrap').hasClass('boys-wrap') ? '1,3' : '2,3';
|
|
|
|
|
|
var $goodList = $('#goods-list');
|
|
|
|
|
|
//srcoll to load more
|
|
|
$(window).scroll(function () {
|
|
|
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) {
|
...
|
...
|
@@ -28,7 +25,7 @@ $(window).scroll(function () { |
|
|
num = $goodList.children('.good-info').length;
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/recom/maylike?gender='+gender,
|
|
|
url: '/product/recom/maylike?gender=' + gender,
|
|
|
data: {
|
|
|
page: page + 1
|
|
|
},
|
...
|
...
|
@@ -56,5 +53,4 @@ $(window).scroll(function () { |
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|