Authored by weiqingting

独立brands js

@@ -94,4 +94,11 @@ @@ -94,4 +94,11 @@
94 <script> 94 <script>
95 seajs.use('js/product/hotrank'); 95 seajs.use('js/product/hotrank');
96 </script> 96 </script>
  97 +{{/if}}
  98 +
  99 +{{!-- 品牌页 --}}
  100 +{{#if brandsHomePage}}
  101 + <script>
  102 + seajs.use('js/brand/index');
  103 + </script>
97 {{/if}} 104 {{/if}}
  1 +/**
  2 + * 首页
  3 + * @author: xuqi<qi.xu@yoho.cn>
  4 + * @date: 2015/11/23
  5 + */
  6 +
  7 +var $ = require('yoho.jquery'),
  8 + lazyLoad = require('yoho.lazyload');
  9 +
  10 +
  11 +require('../common/slider');
  12 +require('./brands');
  13 +
  14 +lazyLoad($('img.lazy'));
  15 +$('.slide-container').slider();
  16 +
  17 +
@@ -16,9 +16,7 @@ require('../common/logo-brand'); @@ -16,9 +16,7 @@ require('../common/logo-brand');
16 16
17 require('../common/accordion'); 17 require('../common/accordion');
18 18
19 -if (homePage === 'brands') {  
20 - require('./brands');  
21 -} 19 +
22 20
23 if (['boys','girls','kids','lifestyle'].indexOf(homePage) > -1) { 21 if (['boys','girls','kids','lifestyle'].indexOf(homePage) > -1) {
24 require('../common/new-arrivls')({ 22 require('../common/new-arrivls')({