page-header.phtml 14.6 KB
 {{#headerdata}}
<div class="yoho-header {{#if outlets}} outlets{{/if}}">
    <div class="header-topwrapper clearfix">
        <div class="header-top">
            <div class="leftpart float-left">
                <span class="icon-hamburger"></span>
                <a href="//www.yohobuy.com" class="header-yoho" >YOHO!BUY 有货</a>
                <ul class="yohoproducts-list">
                    <li class="yohoproducts-item">
                        <a href="http://www.yoho.cn" class="yohogroup" en="YOHO!" cn="集团官网">YOHO!</a>
                    </li>
                    <li class="yohoproducts-item">
                        <a href="http://www.yohoboys.com" class="yohogroup" en="YOHO!BOYS" cn="男生潮流">YOHO!BOYS</a>
                    </li>
                    <li class="yohoproducts-item">
                        <a href="http://www.yohogirls.com" class="yohogroup" en="YOHO!GIRLS" cn="女生潮流">YOHO!GIRLS</a>
                    </li>
                    <li class="yohoproducts-item">
                        <a href="http://www.yohoshow.com" class="yohogroup" en="YOHO!SHOW" cn="物趣分享">YOHO!SHOW</a>
                    </li>
                    <li class="yohoproducts-item">
                        <a href="http://www.yohood.cn" class="yohogroup" en="YO'HOOD" cn="潮流嘉年华">YO'HOOD</a>
                    </li>
                </ul>
            </div>
            <div class="rightpart">
                <div id="loginBox" class="float-left">
                    <span class="hi">Hi~</span>
                    <a href="//www.yohobuy.com/signin.html" class="loginbar">[请登录]</a>
                    <a href="//www.yohobuy.com/reg.html" class="registbar">[免费注册]</a>
                </div>
                <div class="tag-list-wrapper">
                    <ul class="tag-list">
                        <li class="tag-item myyoho" id="myYohoBox">
                            <span class="tag-seprate"></span>
                            <a href="//www.yohobuy.com/home?t=1453340799.4986">MY有货</a>
                            <span class="icon-bottomarrow"></span>
                            <div class="myyoho-info"></div>
                        </li>
                        <li class="tag-item myorder">
                            <span class="tag-seprate"></span>
                            <span class="icon-papers"></span>
                            <a href="//www.yohobuy.com/home/orders?t=1453168898.0176">我的订单</a>
                        </li>
                        <li class="tag-item mycollect">
                            <span class="tag-seprate"></span>
                            <span class="icon-heart"></span>
                            <a href="//www.yohobuy.com/home/favorite?t=1453168898.0176">我的收藏</a>
                        </li>
                        <li class="tag-item message">
                            <span class="tag-seprate"></span>
                            <span class="icon-mail"></span>
                            <a href="//www.yohobuy.com/home/message?t=1453168898.0176">消息</a>
                        </li>
                        <li class="tag-item phone">
                            <span class="tag-seprate"></span>
                            <span class="icon-iphone"></span>
                            <a href="//www.yohobuy.com/download/app">手机版</a>
                            <div class="qr">
                                <div class="qr-img"></div>
                                <h3 class="qr-words">扫描二维码</h3>
                                <h3 class="qr-words">下载有货手机客户端</h3>
                                <h3 class="qr-more">
                                    <a href="//www.yohobuy.com/download/app">更多客户端下载</a>
                                </h3>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="header-navwrapper clearfix">
        <div class="header-navcontent">
            <ul class="first-nav-list float-left">
                {{# navbars}}
                <li class="first-nav-item {{classname}}" {{#if showIcon}} style="background: url({{icon}}) no-repeat center center"{{/if}}>
                    {{#if showIcon}}
                        <a href="{{link}}" class="menu-ico" {{#if isNewPage}} target="_blank" {{/if}}></a>
                    {{^}}
                        <h3 class="name-cn">
                            <a href="{{link}}" {{#if isNewPage}} target="_blank" {{/if}}>{{name_cn}}</a>
                        </h3>
                        <h3 class="name-en">
                            <a href="{{link}}" {{#if isNewPage}} target="_blank" {{/if}}>{{name_en}}</a>
                        </h3>
                    {{/if}}
                    <div class='sub-nav-wrapper'>
                        <ul class="sub-nav-list">
                            {{# subnav}}
                            <li class="sub-nav-item">
                                <a  href="{{link}}">{{name}}
                                 {{#if is_new}}
                                    <span class="newlogo"></span>
                                 {{/if}}
                                </a>
                                {{#if thirdnav}}
                                <div class="third-nav-wrapper">
                                    <div class="third-nav">
                                        <div class="categorywrapper" id="category{{../index_main}}{{index_sub}}">
                                            <div class="category">
                                                {{# thirdnav}}
                                                <div class="thirdnavlist">
                                                    <h1 class="category-title thirdnavbar"><a href="{{link}}">{{title}}</a> </h1>
                                                    <ul class="category-list">
                                                        {{#branditems}}
                                                        <li class="category-
                                                        item thirdnavbar">
                                                            <a href="{{link}}" hot={{hot}} >{{brandname}}</a>
                                                        </li>
                                                        {{/branditems}}
                                                    </ul>
                                                </div>
                                                {{/thirdnav}}
                                            </div>
                                        </div>
                                        <div class="showdetail" data-code="{{content_code}}">
                                            <a href="//list.yohobuy.com/?gender=1,3&amp;msort=8">
                                                <img src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" alt="" style=""></a>
                                            <a class="title" href="//list.yohobuy.com/?gender=1,3&amp;msort=8">热门小物优选</a>
                                        </div>
                                    </div>
                                </div>
                                {{/if}}
                            </li>
                            {{/ subnav}}
                        </ul>
                    </div>
                </li>
                {{/ navbars}}
            </ul>
            <div class="outlets-logo"></div>
            <div class="icon-logo"><a href="//www.yohobuy.com/" class="main-link"></a></div>
            <div class="header-tool float-right">
                <div class="search float-left {{searchcate}}" >
                    <form action="//search.yohobuy.com" method="get" id="searchForm">
                        <span class="searchspan">
                            <input type="hidden" id="defaultsearch" value="">
                            <input class="searchinput" type="text" name="query" id="query_key" autocomplete="off" x-webkit-speech="" lang="zh-CN" x-webkit-grammar="builtin:translate" value="{{hotSearch}}" onfocus="if(this.value==this.defaultValue){this.value='';this.style.color='#333'}" onblur="if(this.value==''){this.value=this.defaultValue;this.style.color='#999'}" maxlength="30" style="color: #999;">
                        </span>
                        <a class="icon-search" href="javascript:submitSearch();"></a>
                        <ul class="search-list"></ul>
                    </form>
                </div>
                <div class="gobuy float-left {{gobytype}}" id="miniCartBox">

                    <span class="ic-infomation">0</span>
                    <div class="gobuy-wrapper"></div>

                </div>
            </div>
        </div>
    </div>
</div>
<div id="goodcartempwarpper">
    <script type="text/html" id="mini-cart-tpl">
    \{\{#carData\}\}
    <div class="gobuy-notempty">
      <div class="goods-list-wrapper">
        <ul class="goods-list">
            \{\{#main_goods\}\}
                \{{#notzero buy_number}}
                    <li class="goods-item">
                        <a href="\{\{product_url\}\}">
                            <img src="\{\{default_img\}\}" alt="" class="goods-img" />
                        </a>
                        <div class="goods-detail float-left">
                            <h3 class="content"><a href="\{\{product_url\}\}">\{\{product_name\}\}</a></h3>
                            <h3 class="style">
                                颜色:
                                <span class="color">\{\{color_name\}\}</span>
                                尺码:
                                <span class="size">\{\{size_name\}\}</span>
                            </h3>
                        </div>
                        <div class="goods-price float-left">
                            <h3 class="priceandnum">
                                <span class="price">¥\{\{show_price\}\}</span>
                                x
                                <span class="num">\{\{buy_number\}\}</span>
                            </h3>
                            <a href="javascript:void(0)" class="delete goodscardelete" product_sku=\{\{product_sku\}\} promotion_id=\{\{promotion_id\}\}>删除</a>
                        </div>
                    </li>
                \{{/notzero}}
            \{\{/main_goods\}\}
        </ul>
        <ul class="activity-list">
            \{{#if has_promotion\}\}
            <li class="activity-item">
                <span class="activity-name">活动</span>
                <h3 class="activity-content">
                    \{\{#if fit_outlet_promotion \}\}购outlet商品,满¥1999再享9
                    \{\{/if\}\}
                    \{\{#if has_other_promotion\}\}
                        <span class="mycart_i_down" title="更多" ></span>
                    \{\{/if\}\}
                    \{\{#if has_first_promotion\}\}
                        \{\{first_promotions.promotion_title\}\}
                    \{\{/if\}\}
                </h3>
            </li>
            \{\{/if\}\}
            \{\{#if fit_free_shipping \}\}
            <li  class="activity-item">
                <span class="activity-name">免运费</span>
                <h3 class="activity-content">全场满 ¥\{\{fit_free_shipping\}\}免运费</h3>
            </li>
            \{\{/if\}\}
        </ul>
    </div>
    <div class="gobuy-notempty-footer">
        <h3>
            <a href="//www.yohobuy.com/shopping/cart">去购物车结算</a>
        </h3>
    </div>
    \{\{/carData\}\}
    </script>
    <script type="text/html" id="tmpl-my-login-new">
      <div class="myyoho-info-header clearfix">
        <div class="myyoho-photo" ><img src="\{\{headerimg headIco\}\}" alt="" data-url =""></div>
        <h3 class="user-email"><a href="//www.yohobuy.com/home?t=\{\{random\}\}">\{\{profileName\}\}</a></h3>
        <h3 class="user-level">
            VIP:
            <span class="leveldetail">\{\{curTitle\}\}</span>
        </h3>
        \{\{#unless vip3 \}\}
        <div class="levelinfo">
            <div class="levelwrapper float-left">
                <div class="levelspan">
                    \{\{curYearCost\}\}/\{\{nextVipNeedCost\}\}
                </div>
                <p class="\{\{#if curYearCostPer\}\}integrate\{\{/if\}\}" style="width: \{\{curYearCostPer\}\}%;"></p>
            </div>
            <span class="cardcate float-left">\{\{nextVipTitle\}\}</span>
        </div>
        \{\{/unless\}\}
      </div>
      <ul class="myyoho-info-content">
        <li class="item">
            <span class="itemdetail float-left">
                <a href="//www.yohobuy.com/home/orders?t=\{\{timestamp\}\}">待处理的订单</a>
            </span>
            <span class="itemnum float-right">\{\{order\}\}</span>
        </li>
        <li class="item">
            <span class="itemdetail float-left">
                <a href="//www.yohobuy.com/home/favorite?t=\{\{timestamp\}\}">我的收藏</a>
            </span>
            <span class="itemnum float-right"></span>
        </li>
        <li class="item">
            <span class="itemdetail float-left">
                <a href="//www.yohobuy.com/home/coupons?t=\{\{timestamp\}\}">我的优惠券</a>
            </span>
            <span class="itemnum float-right">\{\{coupon\}\}</span>
        </li>
        <li class="item">
            <span class="itemdetail float-left">
                <a href="//www.yohobuy.com/home/currency?t=\{\{timestamp\}\}">我的有货币</a>
            </span>
            <span class="itemnum float-right">\{\{coin\}\}</span>
        </li>
        <li class="item">
            <span class="itemdetail float-left">
                <a href="//www.yohobuy.com/home/returns?t=\{\{timestamp\}\}">我的退货换货</a>
            </span>
            <span class="itemnum float-right">\{\{return\}\}</span>
        </li>
      </ul>
      <div class="myyoho-info-footer">
        <a href="//www.yohobuy.com/home/user?t=\{\{timestamp\}\}">完善资料 <span>(学生认证)</span></a>
      </div>
    </script>
</div>
<input id="api-domain" type="hidden" value="{{apiDomain}}">
<script type="text/javascript">
if (typeof call === 'undefined' || typeof call !== 'function') {
    function call() {}
}
</script>
<script async src="{{sysUserSession}}"></script>
{{/headerdata}}