...
|
...
|
@@ -50,14 +50,13 @@ $('.header-tab a').click(function() { |
|
|
// 默认加载第一页
|
|
|
loadOrderList(search.pageIndex, 1);
|
|
|
|
|
|
// TODO: 滚屏分页
|
|
|
// 滚屏分页
|
|
|
$(window).scroll(function() {
|
|
|
// var scrollTop = $(window).scrollTop();
|
|
|
var scrollTop = $(window).scrollTop();
|
|
|
|
|
|
|
|
|
// if (scrollTop > previousScrollTop) {
|
|
|
// loadOrderList(search.type, search.pageIndex);
|
|
|
// }
|
|
|
if (scrollTop > $('.installment-list').height() - 200) {
|
|
|
loadOrderList(search.type, ++search.pageIndex);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
|