...
|
...
|
@@ -6,7 +6,7 @@ var InfiniteLoad = require('../common/infinite-load'); |
|
|
|
|
|
(function($) {
|
|
|
var $container = $('div.commodity ul');
|
|
|
var $load = $('.loading');
|
|
|
var $load = $('.loading a');
|
|
|
var load = new InfiniteLoad({
|
|
|
offset: {
|
|
|
height: function() {
|
...
|
...
|
@@ -16,6 +16,7 @@ var InfiniteLoad = require('../common/infinite-load'); |
|
|
});
|
|
|
|
|
|
load.on('after', function(p) {
|
|
|
console.log(p.index);
|
|
|
var options = {
|
|
|
type: 'POST',
|
|
|
url: '/boys/commodity',
|
...
|
...
|
@@ -40,7 +41,7 @@ var InfiniteLoad = require('../common/infinite-load'); |
|
|
load.emit();
|
|
|
} else {
|
|
|
|
|
|
$load.html('END');
|
|
|
$load.html('查看更多');
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
...
|
...
|
|