left-content.hbs 3.79 KB
{{# leftContent}}

{{!-- 全部折扣 --}}
    {{# allDiscount}}
        <div class="sort-container">
            <ul class="sort-child-list new-sale">
                {{#each list}}
                    <li {{#if active}}class="active"{{/if}}>
                        <a href="{{href}}" title="{{name}}">
                            {{name}}
                            <span>{{num}}</span>
                        </a>
                    </li>
                {{/each}}
            </ul>
        </div>
    {{/ allDiscount}}

    {{!-- 新品上架 --}}
    {{# newSales}}
        <div class="sort-container">
            <h2 title="{{name}}">
                一周新品上架
                <span>{{updateNum}}</span>
            </h2>
            <ul class="sort-child-list new-sale">
                {{#each list}}
                    <li {{#if active}}class="active"{{/if}}>
                        <a href="{{href}}"  title="{{name}}">
                            {{name}}
                            <span>{{num}}</span>
                        </a>
                    </li>
                {{/each}}
            </ul>
        </div>
    {{/ newSales}}

    {{!-- 全部品类--}}
    {{# allSort}}
        <div class="sort-container">
            <ul>
                {{#all}}
                    <li>
                        <h2>
                            <a href="{{href}}" title="{{name}}">
                                {{name}}
                            </a>
                        </h2>
                    </li>
                {{/all}}
                {{#each list}}
                    <li class="product-list-nav {{#if active}}active{{/if}}">
                        <h3 title="{{name}}">
                            <span class="icon-triangle"></span>
                            {{name}}
                        </h3>
                        <ul class="sort-child-list">
                            {{#each childList}}
                                <li class="{{#if childActive}}active{{/if}}">
                                    <a href="{{href}}" title="{{name}}">
                                        {{name}}
                                    </a>
                                </li>
                            {{/each}}
                        </ul>
                    </li>
                {{/each}}
            </ul>
        </div>
    {{/ allSort}}

    {{!-- 图片链接 --}}
    {{# picLink}}
        {{#if picTitle}}
            <h2 class="nav-pic-title">{{picTitle}}</h2>
        {{/if}}
        <ul class="pic-nav">
            {{#each list}}
                <li>
                    <a href="{{href}}">
                        <img src="{{src}}">
                    </a>
                </li>
            {{/each}}
        </ul>
    {{/ picLink}}
{{/ leftContent}}

{{#if brandBanner.dataId}}
    <script id="pic-link-tpl" type="text/html">
            \{{# picLink}}
            \{{#if picTitle}}
        <h2 class="nav-pic-title">\{{picTitle}}</h2>
            \{{/if}}
        <ul class="pic-nav">
            \{{#each list}}
            <li>
                <a href="\{{href}}">
                    <img src="\{{src}}">
                </a>
            </li>
            \{{/each}}
        </ul>
            \{{/ picLink}}
    </script>
    <div id="brand-ad" class="brand-ad"></div>
{{/if}}

{{!-- 水牌广告 --}}
{{#if node}}
    <div id="brand-card" class="brand-card" data-node="{{node}}"></div>
{{/if}}

{{!-- 水牌广告-基础模板 --}}
{{#signboard}}
    <div class="sell-signboard left-modular">
        <h2 class="title">{{title}}</h2>
        <ul class="left-list">
            {{#each list}}
                <li>
                    <a target="_blank" href="{{url}}"><img src="{{img}}" alt="{{title}}" width="100%" /></a>
                </li>
            {{/each}}
        </ul>
    </div>
{{/signboard}}