banner.hbs 1.39 KB
<div class="slide-container {{#if pagination}}slide-thumb-container{{/if}}">
    <span id="bannerFloorId" class="hide">{{floorId}}</span>
    <div class="slide-wrapper">
        <ul>
            {{# list}}
            <li style="{{#if bgColor}}background:{{bgColor}}{{/if}}">
                <a href="{{url}}" rel="nofollow" target= "_blank" title="{{title}}">
                    {{#if @first}}
                    <img src="{{image2 src w=1125 h=420}}"  alt="{{title}}-YOHO!BUY有货">
                    {{^}}
                    <img class="lazy" data-original="{{image2 src w=1125 h=420}}" alt="{{title}}-YOHO!BUY有货">
                    {{/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="{{url}}" target="_blank" title="{{title}}"></a>
                <img src="{{image2 src w=138 h=54}}"  alt="{{alt}}">
            </li>
            {{/ pagination}}
        </ul>
    </div>
    {{/if}}
</div>
<div class="slide-container-placeholder {{#if pagination}}slide-thumb-container-placeholder{{/if}}"></div>