index.phtml 1.53 KB
{{> layout/header}}
<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>
        <div class="category-nav clearfix">
            {{# class}}
                <li class={{#if focus}}focus{{/if}}>
                    {{name}}
                </li>
            {{/ class}}
        </div>
        <div class="category-container clearfix">
            {{# class}}
                <div class="content {{#unless focus}}hide{{/if}}">
                    <ul class="primary-level">
                        {{# ca}}
                            <li class="p-level-item{{#if @first}} focus{{/if}}">{{name}}</li>
                        {{/ ca}}
                    </ul>
                    <div class="sub-level-container">
                        {{# ca}}
                            <ul class="sub-level {{#unless @first}}hide{{/if}}">
                                {{# sub}}
                                    <li>
                                        <a href={{url}}>
                                            {{name}}
                                        </a>
                                    </li>
                                {{/ sub}}
                            </ul>
                        {{/ ca}}
                    </div>
                </div>
            {{/ class}}
        </div>
    {{/ category}}
</div>
{{> layout/footer}}