index.phtml 2.88 KB
{{> layout/header}}
<div class="home-page yoho-page">
{{# boy}}

    {{! 头部banner}}
    {{# slide}}
    <div class="slide-container">
        <div class="big-slide">
            <ul>
                {{# bigSlide}}
                <li>
                    <a href="{{href}}">
                        <img src="{{img}}" alt="">
                    </a>
                </li>
                {{/ bigSlide}}  
            </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 smallSlide}}
        <div class="small-slide">
            <ul class="clearfix">
                {{# smallSlide}}
                <li>
                    <a href="{{href}}"></a>
                    <img src="{{img}}" alt="">  
                </li>
                {{/ smallSlide}}
            </ul>
        </div>
        {{/if}}
    </div>
    {{/ slide}}

    {{! 新品速报}}
    {{# newReport}}
    <div class="new-report clearfix">
        {{> index/floor_header}}

        <ul class="report-list clearfix">
            {{# list}}
            {{#unless @last}}
            <li>
                <a href="{{href}}">
                    <img class="lazy" data-original="{{img}}" alt="">
                </a>
            </li>
            {{/unless}}
            {{/ list}}
        </ul>

        {{# list}}
        {{#if @last}}
        <div class="last-item">
            <a href="{{href}}">
                <img class="lazy" data-original="{{img}}" alt="">
            </a>
        </div>
        {{/if}}
        {{/ list}}
    </div>
    {{/ newReport}}

    {{! 优选品牌}}
    {{# preferenceBrand}}
    <div class="preference-brand">
        {{> index/floor_header}}
        <div class="img-brand">
            <ul class="img-list clearfix">
                {{# imgBrand}}
                <li class="img-item">
                    <a href="{{href}}">
                        <img src="{{img}}" alt="">
                    </a>
                </li>
                {{/ imgBrand}}
            </ul>
            <div class="img-brand-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>
        <div class="logo-brand"></div>
    </div>
    {{/ preferenceBrand}}

    {{! 品类推荐}}  
    {{#each recommend}}
        {{> index/recommend}} 
    {{/ recommend}}

    {{! 新品上架}}
    {{# newArrivls}}
        {{> index/commodity}}
    {{/ newArrivls}}
{{/ boy}}
	
		
</div>
{{> layout/footer}}