...
|
...
|
@@ -4,7 +4,7 @@ var $ = require('yoho.jquery'); |
|
|
var Handlebars = require('yoho.handlebars');
|
|
|
var InfiniteLoad = require('../common/infinite-load');
|
|
|
|
|
|
module.exports=function(url,data){
|
|
|
module.exports = function(url, data) {
|
|
|
var $container = $('#newarrivals ul');
|
|
|
var $load = $('.loading a');
|
|
|
var load = new InfiniteLoad({
|
...
|
...
|
@@ -14,11 +14,15 @@ module.exports=function(url,data){ |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
var options;
|
|
|
|
|
|
load.on('after', function(p) {
|
|
|
|
|
|
data=$.extend({},data,{pageIndex: p.index});
|
|
|
var options = {
|
|
|
data = $.extend({}, data, {
|
|
|
pageIndex: p.index
|
|
|
});
|
|
|
|
|
|
options = {
|
|
|
type: 'POST',
|
|
|
url: url,
|
|
|
data: data,
|
...
|
...
|
@@ -72,7 +76,4 @@ module.exports=function(url,data){ |
|
|
});
|
|
|
|
|
|
load.init();
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
\ No newline at end of file |
...
|
...
|
|