Blame view

apps/channel/views/action/cate.hbs 1.84 KB
ccbikai authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<div class="category-page yoho-page">
    {{# category}}
        <div id="search-input" class="search-input">
            <a href={{searchUrl}}>
                <i class="search-icon iconfont">&#xe60f;</i>
                <p>搜索商品</p>
            </a>
        </div>
        <ul class="category-nav clearfix">
            {{# nav}}
                <li class="{{#if focus}}focus{{/if}}" data-channel="{{channel}}">
                    <span>{{name}}</span>
                </li>
            {{/ nav}}
        </ul>
        <div class="category-container clearfix">
            {{#each list}}
                <div class="content {{@key}} {{#unless focus}}hide{{/unless}}">
                    <ul class="primary-level">
                        {{# this}}
                            <li class="p-level-item{{#if @first}} focus{{/if}}">
                                {{#if url}}
23
                                <a href={{url}}> {{category_name}}</a>
ccbikai authored
24
                                {{^}}
25
                                {{category_name}}
ccbikai authored
26 27 28 29 30 31 32 33 34 35
                                {{/if}}
                            </li>
                        {{/ this}}
                    </ul>
                    <div class="sub-level-container">
                        {{# this}}
                            <ul class="sub-level {{#unless @first}}hide{{/unless}}">
                                {{# sub}}
                                    <li>
                                        <a href={{url}}>
36
                                            {{category_name}}
ccbikai authored
37 38 39 40 41 42 43 44 45 46 47
                                        </a>
                                    </li>
                                {{/ sub}}
                            </ul>
                        {{/ this}}
                    </div>
                </div>
            {{/each}}
        </div>
    {{/ category}}
</div>
48
{{> footer-tab}}