{if(!empty($hideCategory) && $hideCategory==1)}
{wst:ads code="index-top-ads" cache='86400' id="tads" num="1"}
{if ($tads['adFile']!='')}
<div class="index-top-ads">
  <a href="{$tads['adURL']}" {if ($tads['isOpen'])}target='_blank'{/if} {if ($tads['adURL']!='')}onclick="WST.recordClick({$tads['adId']})"{/if} onfocus="this.blur();">
    <div style="background:url(__RESOURCE_PATH__/{$tads['adFile']}) center center no-repeat;" class="picture"></div></a>
</div>
{/if}
{/wst:ads}
{/if}
<div class="wst-header">
    <div class="wst-nav">
		<ul class="headlf" style='float:right;width:500px;'>
		<li class="j-cart active" id="goodsCarts">
		  <div id="goodsCart">
		  <div class="cart-info" onclick="WST.goodsCart();">
		  	<i class="iconfont"></i><span class="name">购物车</span><span class="num">（<span id="goodsTotalNum">0</span>）</span>
		  </div>
		  </div>
         <div class="j-cart-layer wst-cart-boxs hide">
             <div id="list-carts" class="list"></div>
             <div id="settlement-carts" class="settlement"></div>
         </div>
             {/* 购物车 */}
             <script id="list-cart" type="text/html">
              {{# for(var i = 0; i < d.list.length; i++){ }}
                <div class="goods j-cartgoods {{# if(i!=0){ }}line{{# } }}" id="j-goods{{ d.list[i].cartId }}">
                    <div class="imgs"><a target='_blank' href="{{WST.U('home/goods/detail','goodsId='+d.list[i].goodsId)}}"><img class="goodsImgc" data-original="__RESOURCE_PATH__/{{ d.list[i].goodsImg }}" title="{{ d.list[i].goodsName }}" src="__RESOURCE_PATH__/{:WSTConf('CONF.goodsLogo')}"></a></div>
                    <div class="number"><p><a target='_blank' href="{{WST.U('home/goods/detail','goodsId='+d.list[i].goodsId)}}">{{WST.cutStr(d.list[i].goodsName,28)}}</a></p></div>
                    <div class="price">{{ d.list[i].shopPrice }}元×{{ d.list[i].cartNum }}<i class="iconfont j-cartgoods-layer hide" onclick="javascript:WST.delCheckCart({{ d.list[i].cartId }})"></i></div>
                </div>
				<div class="wst-clear"></div>
              {{# } }}
              </script>
		</li>
		{if condition="session('WST_USER.userId') >0"}
		<li>
			<div class="drop-info" style="width: 70px;"><a href="{:Url('home/orders/waitPay')}" target="_blank" onclick="WST.position(3,0)">我的订单</a></div>
		</li>
		<li class="spacer">|</li>
		{/if}
		<li>
			<div class="drop-info"><a href="{:Url('home/messages/index')}" target="_blank" onclick="WST.position(49,0)">我的消息</a>{if condition="session('WST_USER.userId') >0"}（<span id='wst-user-messages'>0</span>）{/if}</div>
		</li>
		{if condition="session('WST_USER.userId') >0"}
	    <li class="j-dorpdown">
		  <div class="user-info" onclick="location='{:Url("home/users/index")}'">
		  	<span class="name">{:session('WST_USER.userName')?session('WST_USER.userName'):session('WST_USER.loginName')}</span><i class="iconfont"></i>
		  </div>
		  <div class='j-dorpdown-layer order-list'>
		  	   <div><a href='{:Url("home/users/index")}' target='_blank'>个人中心</a></div>
		  	   <div><a href='{:Url("home/goodsappraises/myAppraise")}' target='_blank' onclick='WST.position(9,0)'>我的评价</a></div>
		  	   <div><a href='{:Url("home/favorites/goods")}' target='_blank' onclick='WST.position(41,0)'>商品收藏</a></div>
		  	   <div><a href='{:Url("home/users/security")}' target='_blank' onclick='WST.position(16,0)'>安全设置</a></div>
			   <div><a href="javascript:WST.logout();">退出登陆</a></div>
		 </div>
		</li>
		{else /}
			<li class="spacer">|</li>
			<li>
			   <div class="drop-info"><a href="{:Url('home/users/regist')}" onclick="WST.currentUrl();">注册</a></div>
			</li>
		    <li class="spacer">|</li>
			<li class="drop-info">
				 <a href="{:Url('home/users/login')}" onclick="WST.currentUrl();">登录</a>
		    </li>
		{/if}
		</ul>
		<ul class="headrf" style='float:left;'>
			<li>
				<div class="drop-down"><a href="{$Request.root.true}">{:WSTConf('CONF.shopName')}</a></div>
			</li>
			<li class="spacer">|</li>
			<li>
				<div class="drop-down"><a href="{:url('home/news/nList')}" target="_blank">资讯中心</a></div>
			</li>
			<li class="spacer">|</li>
			<li>
				<div class="drop-down" ><a href="{:Url('home/helpcenter/index')}" target="_blank">帮助中心</a></div>
			</li>
			<li class="spacer">|</li>
			<li>
				<div class="drop-down"><a href="{:Url('home/helpcenter/view','id=8')}" target="_blank">售后服务</a></div>
			</li>
			<li class="spacer">|</li>
			<li>
				<div class="drop-down"><a href="{:Url('home/helpcenter/view','id=3')}" target="_blank">常见问题</a></div>
			</li>
			<li class="spacer">|</li>
			<li>
				<div class="drop-down"><a href="{:url('home/feedbacks/index')}" target="_blank">反馈</a></div>
			</li>

			
		</ul>
		<div class="wst-clear"></div>
  </div>
  {:hook('homeDocumentListener')}
</div>