Authored by weiqingting

独立brands js

... ... @@ -94,4 +94,11 @@
<script>
seajs.use('js/product/hotrank');
</script>
{{/if}}
{{!-- 品牌页 --}}
{{#if brandsHomePage}}
<script>
seajs.use('js/brand/index');
</script>
{{/if}}
\ No newline at end of file
... ...
/**
* 首页
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/11/23
*/
var $ = require('yoho.jquery'),
lazyLoad = require('yoho.lazyload');
require('../common/slider');
require('./brands');
lazyLoad($('img.lazy'));
$('.slide-container').slider();
... ...
... ... @@ -16,9 +16,7 @@ require('../common/logo-brand');
require('../common/accordion');
if (homePage === 'brands') {
require('./brands');
}
if (['boys','girls','kids','lifestyle'].indexOf(homePage) > -1) {
require('../common/new-arrivls')({
... ...