goods-category.hbs 1.75 KB
{{#data}}
    {{> common/floor-header-more}}
    <div class="goods-category">
        {{# big_image}}
            {{#if bigList}}
                <div class="category-swiper">
                    <ul class="swiper-wrapper">
                        {{# bigList}}
                        <li class="swiper-slide">
                            <a href="{{url}}">
                                <img class="lazy" data-original="{{image src 640 403}}" alt="{{title}}">
                            </a>
                        </li>
                        {{/ bigList}}
                    </ul>
                    <div class="swiper-pagination">
                        <div class="pagination-inner clearfix">
                        </div>
                    </div>
                </div>
            {{^}}
                <div class="category-swiper">
                    <a href="{{url}}">
                        <img class="lazy" data-original="{{image src 640 403}}" alt="{{title}}">
                    </a>
                </div>
            {{/if}}
        {{/ big_image}}
        {{#if list}}
        <ul class="category-list clearfix">
            {{# list}}
                <li>
                    <a href="{{url}}">
                        <div class="img-box">
                            {{#if @first}}
                                <img class="lazy" data-original="{{image src 258 383}}" alt="">
                            {{^}}
                                <img class="lazy" data-original="{{image src 191 191}}" alt="">
                            {{/if}}
                        </div>
                        <p class="category-name">{{title}}</p>
                    </a>
                </li>
            {{/ list}}
        </ul>
        {{/if}}
    </div>
{{/data}}