Authored by hf

do fixes bug refs YW-783

... ... @@ -13,9 +13,7 @@ var winH = $(window).height(),
$goodList = $('.goods-list'),
loading = false,
page = 0,
index = 0,
num;
index = 0;
var swiper;
... ... @@ -31,7 +29,6 @@ $('#newarrival-nav').delegate('li', 'touchstart', function() {
var $this = $(this),
$content;
if ($this.hasClass('focus')) {
return;
}
... ... @@ -57,7 +54,8 @@ $(window).scroll(function () {
return;
}
loading = true;
num = $goodList.children('.good-info').length;
//num = $goodList.children('.good-info').length;
$.ajax({
type: 'GET',
url: '/product/newsale/selectNewSale',
... ... @@ -67,9 +65,7 @@ $(window).scroll(function () {
},
success: function(data) {
if (data === ' ') {
//opt.end = true;
loading = false;
loading = true;
return;
}
... ...