slide-banner.hbs 1.4 KB
<div id="slider" class="slide-container {{#if pagination}}slide-thumb-container{{/if}}">
    <div class="slide-wrapper">
        <ul>
            {{# list}}
                <li style="{{#if bgColor}}background:{{bgColor}}{{/if}}">
                    <a href="{{href}}" target= "_blank">
                        {{#if @first}}
                            <img src="{{image img 1150 450}}" style="height: 450px;width: 1150px">
                        {{^}}
                            <img class="lazy" data-original="{{image img 1150 450}}" style="height: 450px;width: 1150px" alt="">
                        {{/if}}
                    </a>
                    {{# tips}}
                        <div class="slide-tips">
                            <div class="g-mark"></div>
                            <p>{{.}}</p>
                        </div>
                    {{/ tips}}
                </li>
            {{/ list}}
        </ul>
    </div>

    {{#if pagination}}
        <div class="thumb-pagination">
            <ul class="clearfix">
                {{# pagination}}
                    <li>
                        <a href="{{href}}" target="_blank"></a>
                        <img src="{{img}}" alt="">
                    </li>
                {{/ pagination}}
            </ul>
        </div>
    {{/if}}
</div>
<div class="slide-container-placeholder {{#if pagination}}slide-thumb-container-placeholder{{/if}}"></div>