channel.hbs 3.85 KB
<div class="home-page yoho-page {{pageType}}" data-page="{{pageType}}">
{{# channel}}
    {{! 头部banner}}
    {{# slide}}
        {{> banner}}
    {{/ slide}}

    {{! 新品速报}}
    {{# newReport}}
    <div class="new-report imgopacity clearfix">
        {{> floor-header}}

        <ul class="report-list clearfix">
            {{# list}}

            {{#unless @last}}
            <li>
                <a href="{{href}}" target= "_blank">
                    {{#if @first}}
                    <img class="lazy" data-original="{{image img 377 504}}" alt="" >
                    {{^}}
                    <img class="lazy" data-original="{{image img 185 248}}" alt="" >
                    {{/if}}
                </a>
            </li>
            {{/unless}}
            {{/ list}}
        </ul>

        {{# list}}
        {{#if @last}}
        <div class="last-item">
            <a href="{{href}}" target= "_blank">
                <img class="lazy" data-original="{{image img 377 504}}" alt="">
            </a>
        </div>
        {{/if}}
        {{/ list}}
    </div>
    {{/ newReport}}

    {{# debrisSlider}}
    <div class="debris-slider clearfix">
        <div class="left-col col">
            {{# left}}
            <a href="{{href}}" target="_blank">
                <img class="lazy" data-original="{{image img 200 265}}">
            </a>
            {{/ left}}
        </div>
        <div class="center-col col">
            <ul class="slide-wrapper">
                {{# center}}
                <li>
                    <a href="{{href}}" target="_blank">
                        <img class="lazy" data-original="{{image img 570 633}}">
                    </a>
                </li>
                {{/ center}}
            </ul>
            <div class="slide-switch">
                <a class="prev" href="javascript:;">
                    <span class="iconfont">&#xe60c;</span>
                </a>
                <a class="next" href="javascript:;">
                    <span class="iconfont">&#xe60b;</span>
                </a>
            </div>
        </div>
        <div class="right-col col">
            {{# right}}
            <a href="{{href}}" target="_blank">
                <img class="lazy" data-original="{{image img 200 265}}">
            </a>
            {{/ right}}
        </div>
    </div>
    {{/ debrisSlider}}


    {{! 优选品牌}}
    {{# 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}}
    <div class="floor-ad">
    <a href="{{href}}" target= "_blank"><img class="lazy" data-original="{{image img 1150 129}}"/></a>
    </div>
    {{/ 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>