Authored by whb

首页

  1 +{{> layout/header}}
  2 +<div class="home-page yoho-page boys" data-page="boys">
  3 +{{# boys}}
  4 + {{! 头部banner}}
  5 + {{# slide}}
  6 + {{>index/slide-banner}}
  7 + {{/ slide}}
  8 +
  9 + {{! 新品速报}}
  10 + {{# newReport}}
  11 + <div class="new-report clearfix">
  12 + {{> index/floor-header}}
  13 +
  14 + <ul class="report-list clearfix">
  15 + {{# list}}
  16 + {{#unless @last}}
  17 + <li>
  18 + <a href="{{href}}">
  19 + <img class="lazy" data-original="{{img}}" alt="">
  20 + </a>
  21 + </li>
  22 + {{/unless}}
  23 + {{/ list}}
  24 + </ul>
  25 +
  26 + {{# list}}
  27 + {{#if @last}}
  28 + <div class="last-item">
  29 + <a href="{{href}}">
  30 + <img class="lazy" data-original="{{img}}" alt="">
  31 + </a>
  32 + </div>
  33 + {{/if}}
  34 + {{/ list}}
  35 + </div>
  36 + {{/ newReport}}
  37 +
  38 + {{! 优选品牌}}
  39 + {{# preferenceBrands}}
  40 + <div class="preference-brand">
  41 + {{> index/floor-header}}
  42 + <div class="img-brand">
  43 + <ul class="img-list clearfix">
  44 + {{# imgBrand}}
  45 + <li class="img-item">
  46 + <a href="{{href}}">
  47 + <img src="{{img}}" alt="">
  48 + </a>
  49 + </li>
  50 + {{/ imgBrand}}
  51 + </ul>
  52 + <div class="img-brand-switch">
  53 + <a class="prev" href="javascript:;">
  54 + <span class="iconfont">&#xe60c;</span>
  55 + </a>
  56 + <a class="next" href="javascript:;">
  57 + <span class="iconfont">&#xe60b;</span>
  58 + </a>
  59 + </div>
  60 + </div>
  61 + <div class="logo-brand" data-url="{{brandUrl}}"></div>
  62 + </div>
  63 + {{/ preferenceBrands}}
  64 +
  65 + {{! 单品/广告}}
  66 + {{# singlehot}}
  67 + {{> index/boy-singlehot}}
  68 + {{/ singlehot}}
  69 +
  70 + {{! 广告}}
  71 + {{# adbanner}}
  72 + <div class="floor-ad">
  73 + <a href="{{url}}"><img class="lazy" data-original="{{img}}"/></a>
  74 + </div>
  75 + {{/ adbanner}}
  76 +
  77 + {{! 品类推荐}}
  78 + {{# recommend}}
  79 + {{> index/boy-recommend}}
  80 + {{/ recommend}}
  81 +
  82 + {{! 新品上架}}
  83 + {{# newArrivls}}
  84 + {{> index/commodity}}
  85 + {{/ newArrivls}}
  86 +{{/ boys}}
  87 +</div>
  88 +{{> layout/footer}}
@@ -27,7 +27,7 @@ class IndexController extends WebAction @@ -27,7 +27,7 @@ class IndexController extends WebAction
27 'boysHomePage' => true, 27 'boysHomePage' => true,
28 'boys' => \Index\HomeModel::getChannelResource(\Index\HomeModel::COOKIE_NAME_BOYS, \Index\HomeModel::CODE_BOYS_CHANNEL) 28 'boys' => \Index\HomeModel::getChannelResource(\Index\HomeModel::COOKIE_NAME_BOYS, \Index\HomeModel::CODE_BOYS_CHANNEL)
29 ); 29 );
30 - $this->_view->display('../boys/index', $data); 30 + $this->_view->display('index', $data);
31 } 31 }
32 32
33 } 33 }