Authored by weiqingting

女装首页和男装修改

... ... @@ -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
... ...
... ... @@ -7,13 +7,13 @@
var $ = require('yoho.jquery'),
Handlebars = require('yoho.handlebars'),
lazyLoad = require('yoho.lazyload');
var $data = JSON.parse($('.home-page').attr('data-newarrivls'));
require('../common/linkage-slider');
require('../common/slider2');
var $data= JSON.parse($(".home-page").attr('data-newarrivls'));
require('../common/new-arrivls')($data.url,{
require('../common/new-arrivls')($data.url, {
pageCount: $data.pageCount,
flag: $data.flag
});
... ...