|
|
var $ = require('yoho.zepto'),
|
|
|
tip = require('../../plugin/tip'),
|
|
|
Swiper = require('yoho.iswiper'),
|
|
|
lazyLoad = require('yoho.zeptolazyload');
|
|
|
|
...
|
...
|
@@ -11,12 +12,9 @@ var winH = $(window).height(), |
|
|
loadMoreH = $('#load-more').height(),
|
|
|
$goodList = $('.goods-list'),
|
|
|
loading = false,
|
|
|
end = false,
|
|
|
page = 0,
|
|
|
index = 0,
|
|
|
num,
|
|
|
url,
|
|
|
res;
|
|
|
num;
|
|
|
|
|
|
var swiper;
|
|
|
|
...
|
...
|
@@ -61,20 +59,18 @@ $(window).scroll(function () { |
|
|
num = $goodList.children('.good-info').length;
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/newsale/selectNewSale?dayLimit'+(index+1),
|
|
|
url: '/product/newsale/selectNewSale?dayLimit' + (index + 1),
|
|
|
data: {
|
|
|
page: page + 1
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data === ' ') {
|
|
|
|
|
|
//opt.end = true;
|
|
|
loading = false;
|
|
|
|
|
|
$loading.addClass('hide');
|
|
|
$noMore.removeClass('hide');
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$goodList.append(data);
|
|
|
|
|
|
//lazyLoad
|
...
|
...
|
|