Authored by 梁志锋

update

... ... @@ -11,18 +11,17 @@ var $ = require('yoho.zepto'),
trendTopicSwiper,
goodsSwiper;
require('./maybe-like');
var swiperClass;
var requestFrame,
thisFunc,
start = 0,
i,
swiperClass,
supportCss3,
$logotrans = $('.home-header .logo'),
isen = true;
require('./maybe-like');
lazyLoad($('img.lazy'));
//$('img:in-viewport').trigger('appear');
... ...
... ... @@ -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
... ...