goods-category.hbs 1.81 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="{{image2 src w=640 h=403 q=60}}" 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="{{image2 src w=640 h=403 q=60}}" 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="{{image2 src w=258 h=383 q=60}}" alt="{{title}}">
                            {{^}}
                                <img class="lazy" data-original="{{image2 src w=191 h=191 q=60}}" alt="{{title}}">
                            {{/if}}
                        </div>
                        <p class="category-name">{{title}}</p>
                    </a>
                </li>
            {{/ list}}
        </ul>
        {{/if}}
    </div>
{{/data}}