...
|
...
|
@@ -95,14 +95,14 @@ module.exports = function(data) { |
|
|
var load = new InfiniteLoad({
|
|
|
offset: {
|
|
|
height: function() {
|
|
|
return parseFloat($container.offset().top) + parseFloat($container.height())-200;
|
|
|
return parseFloat($container.offset().top) + parseFloat($container.height()) - 200;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
var options;
|
|
|
var url = data.url;
|
|
|
var firstCount = data.firstCount;
|
|
|
var pageCount=data.pageCount;
|
|
|
var pageCount = data.pageCount;
|
|
|
|
|
|
delete data.url;
|
|
|
delete data.firstCount;
|
...
|
...
|
@@ -116,7 +116,7 @@ module.exports = function(data) { |
|
|
pageIndex: p.index
|
|
|
});
|
|
|
|
|
|
data.pageCount = (data.pageIndex == 1) ? firstCount : pageCount;
|
|
|
data.pageCount = (data.pageIndex === 1) ? firstCount : pageCount;
|
|
|
|
|
|
options = {
|
|
|
type: 'POST',
|
...
|
...
|
|