list.hbs 5.55 KB
{{# goodList}}
    {{# search}}
        <div id="search-input" class="search-input">
            <form id="search-form" action="{{url}}" method="get">
                <i class="search-icon iconfont">&#xe60f;</i>
                <input type="hidden" value="search" name="from">
                <input type="text" value="{{default}}" name="query" class="buriedpoint" data-bp-id="shop-search_input_1" autocomplete="off">
                <input type="hidden" name="shop_id" value="{{@root.shopId}}">
                <i class="clear-input iconfont hide">&#xe626;</i>
                <span id="search" class="search buriedpoint" type="submit" data-bp-id="shop-search_btn_0">搜索</span>
            </form>
        </div>
        <ul class="search-associate"></ul>
    {{/ search}}

    {{#if brandWay}}
        <div class="brand-way">
            <div class="brand-enter">
                {{# brandWay}}
                <a  href={{url}} data-shopid="{{shopId}}" data-brandid="{{brandId}}">
                    {{#if thumb}}
                    <img class="brand-thumb" src={{image2 thumb q=90}}>
                    {{else}}
                    <span class="occupy"></span>
                    {{/if}}
                    <span class="brand-name">{{name}}</span>
                    {{#if brandId}}
                    <div class="global-box">
                        <span class="global"></span>
                    </div>
                    {{/if}}
                    <span class="entry">
                        进入店铺
                        <i class="iconfont">&#xe614;</i>
                    </span>
                </a>
                {{/ brandWay}}
            </div>

            {{#if brandWay.moreShop}}
            <div class="more-shop down">
                <span class="iconfont">&#xe616;</span>
            </div>
            {{/if}}
        </div>
    {{/if}}

    {{# shopBanner}}
        <div class="brand-header">
            <img class="lazy" data-original={{banner}}>
        </div>
    {{/ shopBanner}}

    {{!--品牌页面--}}
    {{# brandHome}}
        <div id="brand-header" class="brand-header" data-id={{id}}>
            <img class="lazy" data-original={{banner}}>
            <a class="btn-intro" href="javascript:void(0);">
                品牌介绍
            </a>
            <a class="btn-col" href="javascript:void(0);">
                <span class="iconfont">&#xe622;</span>
                <span class="txt"></span>
            </a>
        </div>
        <div id="intro-box" class="brand-intro-box hide">
            <div id="brand-intro" class="brand-intro">
                <h2>品牌介绍</h2>
                <div class="con">
                    {{{intro}}}
                </div>
                <p class="fo">
                    <span class="iconfont">&#xe629;</span>
                    100%品牌授权正品
                </p>
                <span class="iconfont close-intro">&#xe623;</span>
            </div>
        </div>
    {{/ brandHome}}
    {{!--/品牌页面--}}

    {{!--基础店铺页面--}}
    {{# baseShopHome}}
        <div id="brand-header" class="brand-header" data-id={{id}} data-isbaseshop="{{isBaseShop}}">
            <img class="lazy" data-original={{banner}}>
            <a class="btn-intro" href="javascript:void(0);">
                店铺介绍
            </a>
            <a class="btn-col" href="javascript:void(0);">
                <span class="iconfont">&#xe622;</span>
                <span class="txt"></span>
            </a>
        </div>
        <div id="intro-box" class="brand-intro-box hide">
            <div id="brand-intro" class="brand-intro">
                <h2>店铺介绍</h2>
                <div class="con">
                    {{{intro}}}
                </div>
                <p class="fo">
                    <span class="iconfont">&#xe629;</span>
                    100%品牌授权正品
                </p>
                <span class="iconfont close-intro">&#xe623;</span>
            </div>
        </div>
        <input type="hidden" name="app_version" value="{{appVersion}}">
    {{/ baseShopHome}}
    {{!--/基础店铺页面--}}

    {{#ifor brandHome baseShopHome}}
        {{!--优惠卷--}}
        <div class="coupon-group"></div>
    {{/ifor}}

    {{!--筛选tab--}}
    {{> product/filter-tab}}

    <div id="goods-container" class="goods-container">
        {{#@root.introText}}
            <p class="intro-text">{{@root.introText}}</p>
        {{/@root.introText}}

        <div class="default-goods container clearfix">
            {{!--搜索推荐词模板--}}
            {{> search/search-word-content}}

            {{#@root.firstPageGoods.list}}
                {{> product/recommend-goods}}
            {{/@root.firstPageGoods.list}}
        </div>
        <div class="search-divide hide">正在加载...</div>
        <div class="new-goods container clearfix"></div>
        <div class="sale-goods container clearfix"></div>
        <div class="price-goods container clearfix hide"></div>
        <div class="discount-goods container clearfix hide"></div>

        {{> common/filter}}
    </div>

    {{!--搜索列表显示过少,显示猜您喜欢--}}
    {{#if @root.suggestion.isMaybeLike}}
        <div class="maybe-like-search">你可能喜欢</div>
        <div class='maybe-like maybe-like-word'>
            <div id="goods-list" class="goods-list clearfix"></div>
        </div>
    {{/if}}

    {{> common/query-param}}
    {{> common/suspend-home}}
    {{> common/suspend-cart}}
{{/ goodList}}

<input type="hidden" class="domain" value={{domain}}>
<input type="hidden" class="shopId shop-id" value={{shopId}}>