header.hbs 3.73 KB
{{#pageHeader}}
{{# @root.pageChannel}}
<header id="yoho-header" class="yoho-header{{#if @root.setChannel}} set-channel{{/if}}{{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}{{#if lifestyle}} life-style{{/if}}">
{{^}}
<header id="yoho-header" class="yoho-header">
{{/ @root.pageChannel}}
    {{#unless @root.nogoback}}
    {{#navBack}}
    <a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back">&#xe610;</a>
    {{/navBack}}
    {{/unless}}
    {{#navBtn}}
    <span class="iconfont nav-home new-nav-home">&#xe638;</span>
    {{/navBtn}}
    {{#shopPage}}
            <a href="{{url}}" class="nav-sub-right">{{text}}</a>
    {{/shopPage}}
    {{#currencyPage}}
    <a href="/service/qaDetail?keyword=%E6%9C%89%E8%B4%A7%E5%B8%81&sonId=233" class="iconfont nav-home">&#xe639;</a>
    {{/currencyPage}}
    {{#currencyDetailPage}}
    <a href="/service/qaDetail?keyword=%E6%9C%89%E8%B4%A7%E5%B8%81&sonId=227" class="iconfont nav-home">&#xe639;</a>
    {{/currencyDetailPage}}
    {{#installmentPage}}
    <a href="/service/qaDetail?keyword=%E6%9C%89%E8%B4%A7%E5%88%86%E6%9C%9F&sonId=179" class="iconfont nav-home">&#xe639;</a>
    {{/installmentPage}}
    {{#navPhone}}
    <a href="{{.}}" class="iconfont nav-home">&#xe641;</a>
    {{/navPhone}}
    {{#navTitle}}
    <p class="nav-title">{{.}}</p>
    {{/navTitle}}
    {{#suggestSub}}
    <span class="nav-btn">
        {{#if text}}
            {{text}}
        {{^}}
            提交
        {{/if}}
    </span>
    {{/suggestSub}}
    {{#saleNav}}
    <span class="sale-nav nav-home">
        {{channel}} <span class="iconfont">&#xe616;</span>
    </span>
    {{/saleNav}}
    {{#myReward}}
    <a href="/activity/my-reward" class="nav-home my-reward">我的奖励</a>
    {{/myReward}}
    {{#save}}
    <span class="nav-home save">保存</span>
    {{/save}}
    {{#invoiceNotice}}
        <span class="invoice-btn">{{.}}</span>
    {{/invoiceNotice}}
    {{#useGiftCard}}
        <a href="/service/qaDetail?keyword=%E7%A4%BC%E5%93%81%E5%8D%A1&id=286" class="iconfont nav-home">&#xe639;</a>
    {{/useGiftCard}}
    {{#navBtn}}
    {{# @root.pageChannel}}
    <div class="homebuttom hide{{#if @root.setChannel}} set-channel{{/if}} {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}{{#if lifestyle}} life-style{{/if}}">
    {{^}}
    <div class="homebuttom hide">
    {{/ @root.pageChannel}}
        <div class="ul-arr"></div>
        <ul>
            <li>
                <a href="{{ indexUrl }}">
                    <i class="iconfont">&#xe62a;</i>
                    <span>首页</span>
                </a>
            </li>
            <li>
                <a href="{{ categoryUrl }}">
                    <i class="iconfont">&#xe62d;</i>
                    <span>分类</span>
                </a>
            </li>
            <li>
                <a href="{{ shoppingCartUrl }}" rel="nofollow">
                    <i class="iconfont">&#xe62c;</i>
                    <span>购物车</span>
                </a>
            </li>
            <li>
                <a href="{{ mineUrl }}" rel="nofollow">
                    <i class="iconfont">&#xe62b;</i>
                    <span>我的</span>
                </a>
            </li>
        </ul>
    </div>
    {{/navBtn}}
</header>
{{#if saleNav.list}}
<div class="sale-nav-select">
    <span class="arrow"></span>
    {{#each saleNav.list}}
    <a href="{{url}}">{{title}}</a>
    {{/each}}
</div>
{{/if}}

<script type="text/javascript">
    var isWechat = /micromessenger/i.test(navigator.userAgent || '');
    if (isWechat) {
        document.getElementById('yoho-header').classList.add('hide');
    }
</script>

{{/pageHeader}}