do fixes bug refs YW-783
Showing
1 changed file
with
4 additions
and
8 deletions
@@ -13,9 +13,7 @@ var winH = $(window).height(), | @@ -13,9 +13,7 @@ var winH = $(window).height(), | ||
13 | $goodList = $('.goods-list'), | 13 | $goodList = $('.goods-list'), |
14 | loading = false, | 14 | loading = false, |
15 | page = 0, | 15 | page = 0, |
16 | - index = 0, | ||
17 | - num; | ||
18 | - | 16 | + index = 0; |
19 | 17 | ||
20 | var swiper; | 18 | var swiper; |
21 | 19 | ||
@@ -31,7 +29,6 @@ $('#newarrival-nav').delegate('li', 'touchstart', function() { | @@ -31,7 +29,6 @@ $('#newarrival-nav').delegate('li', 'touchstart', function() { | ||
31 | var $this = $(this), | 29 | var $this = $(this), |
32 | $content; | 30 | $content; |
33 | 31 | ||
34 | - | ||
35 | if ($this.hasClass('focus')) { | 32 | if ($this.hasClass('focus')) { |
36 | return; | 33 | return; |
37 | } | 34 | } |
@@ -57,7 +54,8 @@ $(window).scroll(function () { | @@ -57,7 +54,8 @@ $(window).scroll(function () { | ||
57 | return; | 54 | return; |
58 | } | 55 | } |
59 | loading = true; | 56 | loading = true; |
60 | - num = $goodList.children('.good-info').length; | 57 | + |
58 | + //num = $goodList.children('.good-info').length; | ||
61 | $.ajax({ | 59 | $.ajax({ |
62 | type: 'GET', | 60 | type: 'GET', |
63 | url: '/product/newsale/selectNewSale', | 61 | url: '/product/newsale/selectNewSale', |
@@ -67,9 +65,7 @@ $(window).scroll(function () { | @@ -67,9 +65,7 @@ $(window).scroll(function () { | ||
67 | }, | 65 | }, |
68 | success: function(data) { | 66 | success: function(data) { |
69 | if (data === ' ') { | 67 | if (data === ' ') { |
70 | - | ||
71 | - //opt.end = true; | ||
72 | - loading = false; | 68 | + loading = true; |
73 | return; | 69 | return; |
74 | } | 70 | } |
75 | 71 |
-
Please register or login to post a comment