Blame view

template/www.yohobuy.com/partials/product/left-content.phtml 2.79 KB
xuqi authored
1 2 3 4 5 6 7
{{# leftContent}}

    {{!-- 全部折扣 --}}
    {{# allDiscount}}
        <div class="sort-container">
            <ul class="sort-child-list new-sale">
                <li>
8 9 10 11
                    <h2>
                        <a href="{{href}}">全部折扣</a>
                        <span>{{updateNum}}</span>
                    </h2>
xuqi authored
12 13
                </li>
                {{#each list}}
14
                    <li {{#if active}}class="active"{{/if}}>
15 16 17 18
                        <a href="{{href}}">
                            {{name}}
                            <span>{{num}}</span>
                        </a>
xuqi authored
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
                    </li>
                {{/each}}
            </ul>
        </div>
    {{/ allDiscount}}

    {{!-- 新品上架 --}}
    {{# newSales}}
        <div class="sort-container">
            <h2>
                一周新品上架
                <span>{{updateNum}}</span>
            </h2>
            <ul class="sort-child-list new-sale">
                {{#each list}}
34
                    <li {{#if active}}active{{/if}}>
35 36 37 38
                        <a href="{{href}}">
                            {{name}}
                            <span>{{num}}</span>
                        </a>
xuqi authored
39 40 41 42 43 44 45 46
                    </li>
                {{/each}}
            </ul>
        </div>
    {{/ newSales}}

    {{!-- 全部品类--}}
    {{# allSort}}
xuqi authored
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
        <div class="sort-container">
            <h2>
                全部品类
                <span>{{updateNum}}</span>
            </h2>
            <ul>
                {{#each list}}
                    <li class="product-list-nav {{#if active}}active{{/if}}">
                        <h3>
                            <span class="icon-triangle"></span>
                            {{name}}
                            <span>{{num}}</span>
                        </h3>
                        <ul class="sort-child-list">
                            {{#each childList}}
                                <li class="{{#if childActive}}active{{/if}}">
63 64 65 66
                                    <a href="{{href}}">
                                        {{name}}
                                        <span>{{num}}</span>
                                    </a>
xuqi authored
67 68 69 70 71 72 73
                                </li>
                            {{/each}}
                        </ul>
                    </li>
                {{/each}}
            </ul>
        </div>
xuqi authored
74 75 76 77
    {{/ allSort}}

    {{!-- 图片链接 --}}
    {{# picLink}}
78 79
        {{#if picTitle}}
            <h2 class="nav-pic-title">{{picTitle}}</h2>
xuqi authored
80 81 82 83 84 85 86 87 88 89 90
        {{/if}}
        <ul class="pic-nav">
            {{#each list}}
                <li>
                    <a href="{{href}}">
                        <img src="{{src}}">
                    </a>
                </li>
            {{/each}}
        </ul>
    {{/ picLink}}
91
{{/ leftContent}}