Showing
1 changed file
with
5 additions
and
6 deletions
@@ -50,14 +50,13 @@ $('.header-tab a').click(function() { | @@ -50,14 +50,13 @@ $('.header-tab a').click(function() { | ||
50 | // 默认加载第一页 | 50 | // 默认加载第一页 |
51 | loadOrderList(search.pageIndex, 1); | 51 | loadOrderList(search.pageIndex, 1); |
52 | 52 | ||
53 | -// TODO: 滚屏分页 | 53 | +// 滚屏分页 |
54 | $(window).scroll(function() { | 54 | $(window).scroll(function() { |
55 | - // var scrollTop = $(window).scrollTop(); | 55 | + var scrollTop = $(window).scrollTop(); |
56 | 56 | ||
57 | - | ||
58 | - // if (scrollTop > previousScrollTop) { | ||
59 | - // loadOrderList(search.type, search.pageIndex); | ||
60 | - // } | 57 | + if (scrollTop > $('.installment-list').height() - 200) { |
58 | + loadOrderList(search.type, ++search.pageIndex); | ||
59 | + } | ||
61 | }); | 60 | }); |
62 | 61 | ||
63 | 62 |
-
Please register or login to post a comment