list.hbs 4.96 KB

{{# brandBanner}}
    <div class="brand-banner">
        <div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner q=100}})"></div>
        <div class="opt-wrap">
            <p class="opt center-content">
                <a href="{{brandHome}}">
                    <i class="iconfont">&#xe61a;</i>
                    品牌首页
                </a>
                <a href="{{brandIntro}}">
                    <i class="iconfont">&#xe62a;</i>
                    品牌介绍
                </a>
                {{#unless @root.pc.cart.removeFavStatus}}
                <span id="brand-favor" class="brand-favor" data-id="{{dataId}}">
                    <i class="iconfont{{#if coled}} coled{{/if}}">&#xe611;</i>
                </span>
                {{/unless}}
            </p>
        </div>
    </div>
{{/ brandBanner}}

{{# shopBanner}}
    <div class="brand-banner base-shop-banner">
        <div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner q=100}})"></div>
        <div class="opt-wrap">
            <div class="opt center-content">
                {{#if showShopName}}
                <span class="shop-name">{{shopName}}</span>
                {{/if}}
                <a href="{{shopHome}}" rel="nofollow">
                    <i class="iconfont">&#xe61a;</i>
                    店铺首页
                </a>
                <a href="{{shopIntro}}">
                    <i class="iconfont">&#xe62a;</i>
                    店铺介绍
                </a>
                {{#unless @root.pc.cart.removeFavStatus}}
                <span id="shop-favor" class="brand-favor shop-favor" data-id="{{shopId}}">
                    <i class="iconfont{{#if coled}} coled{{/if}}">&#xe611;</i>
                </span>
                {{/unless}}
                <div class="qrcode-hover-box" data-id="{{shopId}}">
                    <span class="qrcode-shop">
                        <i class="qrcode-icon"></i>
                        <div class="qrcode-box">
                            <div id="qrcode-img" class="qrcode-img" data-url='https://union.yoho.cn/union/app-downloads.html?openby:yohobuy={"action":"go.shop","params":{"shop_id":"{{shopId}}","shop_template_type":"1","shop_name":"{{shopName}}"}}'></div>
                            <p>扫一扫,手机逛更方便</p>
                        </div>
                    </span>
                </div>
            </div>
        </div>
    </div>
{{/ shopBanner}}

<div class="center-content clearfix">
    {{> common/path-nav}}

    {{# brandAbout}}
        <div class="brand-about">
            {{{brandIntro}}}
        </div>
    {{^}}
        <div class="list-left pull-left">
            {{> product/left-content}}
        </div>
        <div class="list-right pull-right">
            {{#if_cond goods.length '<' 20 }}
                {{#if suggest}}
                    {{#unless changedQuery}}
                        <div class="search-suggest-less">
                            <em>"{{name}}"</em>&nbsp;搜索结果太少了,试试{{#suggest}}&nbsp;"<a href="/?query={{.}}&is_rec=Y">{{.}}</a>"&nbsp;{{/suggest}}关键词搜索
                        </div>
                    {{/unless}}
                {{/if}}
            {{/if_cond}}

            {{#if changedQuery}}
                <div class="search-suggest-less">
                    没有找到&nbsp;<em>"{{name}}"</em>&nbsp;相关的商品,
                    为您推荐&nbsp;"<a href="/?query={{suggestFirst}}&is_rec=Y" id="rec-query-key">{{suggestFirst}}</a>"&nbsp;的搜索结果。{{#if suggestSecond}}或者试试{{#suggestSecond}}&nbsp;"<a href="/?query={{.}}&is_rec=Y">{{.}}</a>"&nbsp;{{/suggestSecond}}{{/if}}
                </div>
            {{/if}}


            {{> list/top-coupon}}

        	{{# sortIntro}}
    			<div class="sort-intro clearfix">
    				<div class="texts pull-left">
    					<h1 class="name">{{name}}</h1>
    					<p class="en-name">{{enName}}</p>
    					<p class="desc">{{{description}}}</p>
    					<div class="key-entry">
    						{{#each keyEntry}}
    							<a href="{{url}}">{{name}}</a>
    						{{/each}}
    					</div>
    				</div>
    				<img class="pull-right img" src="{{image2 img}}">
    			</div>
    		{{/ sortIntro}}

    		{{> list/shop-entry}}

            {{> product/standard-content}}

            {{# pageIntro}}
                <div class="page-intro">
                    {{#if title}}<h1 class="page-title">{{title}}</h1>{{/if}}
                    {{{intro}}}
                </div>
            {{/ pageIntro}}

            {{> product/recommend-keywords goodsInfo=@root.recommendKeywordsInfo}}

            {{> product/latest-walk}}

            {{# @root.pageFooterSeo}}
                <div class="page-footer-seo">
                    <div>{{{description}}}</div>
                    <p class="wap-page-href">移动版:<a href="{{wapUrl}}">{{queryKey}}</a></p>
                </div>
            {{/ @root.pageFooterSeo}}
        </div>
    {{/ brandAbout}}
</div>