new-arrive.hbs 5.36 KB
<div class="home-page yoho-page {{pageType}}" data-page="{{pageType}}">
    {{> common/path-nav}}
    {{! 头部banner}}
    {{# slide}}
        {{> banner}}
    {{/ slide}}
    {{#recommond}}
        <div class="recommond-floor">
            {{> common/floor-header}}
            <div id="rec-swiper" class="swiper-container new-arrival-swiper rec-swiper">
                <div class="swiper-wrapper">
                    {{#dataList}}
                        <div class="swiper-slide" data-shopId="{{shopId}}" data-brandId="{{brandId}}">
                            <a class="rec-pro" href="{{url}}" target="_blank">
                                <img src="{{image2 src w=185 h=86}}">
                                <p class="new-num">上新<span>{{num}}</span></p>
                            </a>
                        </div>
                    {{/dataList}}
                </div>

                <a class="prev" href="javascript:;">
                    <span class="iconfont">&#xe609;</span>
                </a>
                <a class="next" href="javascript:;">
                    <span class="iconfont">&#xe608;</span>
                </a>
            </div>
        </div>
    {{/recommond}}
    {{#newBrand}}
        <div class="newBrand-floor">
           {{> common/floor-header}}
            <div id="brand-swiper" class="swiper-container new-arrival-swiper brand-swiper">
                <div class="swiper-wrapper">
                    {{#brandList}}
                    <span class="swiper-slide" data-shopId="{{shopId}}" data-brandId="{{brandId}}">
                        <a class="" href="{{url}}" target="_blank">
                            <img src="{{image2 src w=185 h=86}}">
                        </a>
                    </span>
                    {{/brandList}}
                </div>

                <a class="prev" href="javascript:;">
                    <span class="iconfont">&#xe609;</span>
                </a>
                <a class="next" href="javascript:;">
                    <span class="iconfont">&#xe608;</span>
                </a>
            </div>
        </div>
    {{/newBrand}}
    {{#firstLook}}
        <div class="first-look-floor clearfix">
            {{> common/floor-header}}
            {{#lookBanner}}
            <div class="left-one">
                <div class="slide-wrapper">
                    <ul>
                        {{# list}}
                            <li style="{{#if bgColor}}background:{{bgColor}}{{/if}}">
                                <a href="{{url}}" target= "_blank">
                                    {{#if @first}}
                                        <img src="{{image2 src w=785 h=420}}">
                                    {{^}}
                                        <img class="lazy" data-original="{{image2 src w=785 h=420}}" alt="">
                                    {{/if}}
                                </a>
                                {{# tips}}
                                    <div class="slide-tips">
                                        <div class="g-mark"></div>
                                        <p>{{.}}</p>
                                    </div>
                                {{/ tips}}
                            </li>
                        {{/ list}}
                    </ul>
                </div>
            </div>
            {{/lookBanner}}
            <div class="right-two">
                {{#lookTwoImg}}
                <a class="first-right-img" href="{{url}}" target="_blank">
                    <img class="lazy" data-original="{{image2 src w=355 h=205}}" style="display: block; opacity: 1;">
                </a>
                {{/lookTwoImg}}
            </div>
        </div>
    {{/firstLook}}
    {{#newProduct}}
        <div id="new-product-floor" class="newProduct-floor">
            {{> common/floor-header}}
            <div style="height:28px;" id="catagory-wrap">
                <div class="all-catagory fixed-area clearfix">
                    <div class="catagory-text">推荐品类</div>
                    <ul class="catagory-navs clearfix">
                        {{#ctyList}}
                            <li {{#if active}} class="active" {{/if}} data-cateId="{{cateId}}">
                                <a href="{{url}}">{{name}}</a>
                            </li>
                        {{/ctyList}}
                    </ul>
                </div>
            </div>
            <div  id="pjax-container" class="new-arrive-list clearfix">
                {{> list/new-arrive-list}}
            </div>
        </div>
    {{/newProduct}}
    <div id="new-arrive-latest" class="product-detail-page new-arrive-latest latest-walk">
        <div class="bottom-tab">
            <p>
                <span class="bottom-title bottom-cur">最近浏览</span>
            </p>
        </div>
        <div class="individual-comment info-block info-bottom">
            <div class="latest-walk" style="display: block;">
                <input id="latest-walk-count" type="hidden" value="5">
                <div id="latest-walk-goods" class="goods clearfix"></div>
            </div>
            {{> product/latest-walk-tpl}}

            <div class="lazy-load-object">
                <textarea class="latest-walk-datalazyload" style="visibility: hidden;">
                    <script> fetchLatestWalk(); </script>
                </textarea>
            </div>
        </div>
    </div>
</div>