channel.hbs 1.8 KB
<div class="home-page yoho-page {{pageType}}" data-page="{{pageType}}">
{{# channel}}
    {{! 头部banner}}
    {{# slide}}
        {{> banner}}
    {{/ slide}}
    {{! 左中右格式的头部banner}}
    {{# debrisSlider}}
        {{> big-slider}}
    {{/ debrisSlider}}
    {{! 新品速报}}
    {{# newReport}}
        {{> newreport-floor}}
    {{/ newReport}}
    {{! 优选品牌}}
    {{# preferenceBrands}}
       {{> floor-header}}
       {{#if boysChannel}}
           {{>boy-brands}}
       {{/if}}
       {{#if girlsChannel}}
           {{>girl-brands}}
       {{/if}}
       {{#if kidsChannel}}
           {{>girl-brands}}
       {{/if}}
       {{#if lifestyleChannel}}
           {{>girl-brands}}
       {{/if}}
    {{/ preferenceBrands}}
    {{! 人气单品}}
    {{# 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}}
{{/ channel}}
</div>