slide-banner.phtml 1.34 KB
<div class="slide-container {{#if pagination}}slide-thumb-container{{/if}}">
    <div class="slide-wrapper"> 
        <ul>
            {{# list}}
            <li style="backgroundColor:{{bgColor}}">
                <a href="{{href}}" target= "_blank">
                    <img class="lazy" data-original="{{img}}" alt="">
                </a>
                {{# tips}}
                <div class="slide-tips">
                    <div class="g-mark"></div>
                    <p>{{.}}</p>
                </div>
                {{/ tips}}
            </li>
            {{/ list}}  
        </ul>
        <div class="slide-switch">
            <a class="prev" href="javascript:;">
                <span class="iconfont">&#xe60c;</span>
            </a>
            <a class="next" href="javascript:;">
                <span class="iconfont">&#xe60b;</span>
            </a>
        </div>
    </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>