channel.hbs 2.25 KB
<div class="home-page yoho-page {{pageType}}" data-page="{{pageType}}" data-mchannel="{{mchannel}}">
{{# channel}}
    {{! 头部banner}}
    {{# slide}}
        {{> banner}}
    {{/ slide}}
    {{! }}
    {{# floorHeader}}
        {{> common/floor-header}}
    {{/ floorHeader}}
    {{! 左中右格式的头部banner}}
    {{# debrisSlider}}
        {{> big-slider}}
    {{/ debrisSlider}}
    {{! 新品速报}}
    {{# newReport}}
        {{> newreport-floor}}
    {{/ newReport}}
    {{! 优选品牌}}
    {{# preferenceBrands}}
       {{> common/floor-header}}
       {{#if boysChannel}}
           {{>boy-brands}}
       {{/if}}
       {{#if girlsChannel}}
           {{>girl-brands}}
       {{/if}}
       {{#if kidsChannel}}
           {{>girl-brands}}
       {{/if}}
       {{#if lifestyleChannel}}
           {{>girl-brands}}
       {{/if}}
    {{/ preferenceBrands}}
    {{! 新人专享}}
    {{# newUserFloor}}
        {{> newuser-floor}}
    {{/ newUserFloor}}
    {{! 话题}}
    {{# tpltopic}}
        {{> topic}}
    {{/ tpltopic}}
    {{! 人气单品}}
    {{# singlehot}}
       {{#if boysChannel}}
           {{> boy-singlehot}}
       {{/if}}
       {{#if girlsChannel}}
           {{> girl-singlehot}}
       {{/if}}
       {{#if kidsChannel}}
           {{> girl-singlehot}}
       {{/if}}
       {{#if lifestyleChannel}}
           {{> girl-singlehot}}
       {{/if}}
    {{/ singlehot}}
    {{! 广告}}
    {{# adbanner}}
        {{> ad-floor}}
    {{/ adbanner}}
    {{! 品类推荐}}
    {{# recommend}}
       {{#if boysChannel}}
          {{> boy-recommend}}
       {{/if}}
       {{#if girlsChannel}}
          {{> girl-recommend}}
       {{/if}}
       {{#if kidsChannel}}
          {{> girl-recommend}}
       {{/if}}
       {{#if lifestyleChannel}}
          {{> girl-recommend}}
       {{/if}}
    {{/ recommend}}
    {{! 手风琴}}
    {{#accordion}}
        {{> slide-accordion}}
    {{/accordion}}
    {{! 热门分类}}
    {{# category}}
        {{> category-floor}}
    {{/ category}}
    {{! 新品上架}}
    {{# newArrivls}}
        {{> commodity}}
    {{/ newArrivls}}
    {{! 七个类别列表}}
    {{# sevenCategory}}
      {{> seven-product}}
    {{/ sevenCategory}}
{{/ channel}}
</div>

{{#unless devEnv}}
    {{> home-analysis}}
{{/ unless}}