2018-08-09 18:42:34 +08:00
|
|
|
<!-- 顶部导航条 start -->
|
2018-08-19 22:40:38 +08:00
|
|
|
<div class="header-top">
|
|
|
|
|
<div class="am-container header">
|
2018-10-10 11:08:07 +08:00
|
|
|
<ul class="top-nav-left">
|
|
|
|
|
<div class="top-nav-items">
|
2018-08-19 22:40:38 +08:00
|
|
|
<div class="menu-hd">
|
2018-09-11 18:34:45 +08:00
|
|
|
<if condition="empty($user)">
|
|
|
|
|
<span>您好,欢迎来到 {{:MyC('home_site_name')}}</span>
|
2018-09-12 11:39:55 +08:00
|
|
|
<if condition="MyC('home_user_login_state') eq 1">
|
|
|
|
|
[<a href="{{:U('Home/User/LoginInfo')}}">登录</a>]
|
|
|
|
|
</if>
|
|
|
|
|
<if condition="in_array('sms', MyC('home_user_reg_state')) or in_array('email', MyC('home_user_reg_state'))">
|
|
|
|
|
[<a href="{{:U('Home/User/RegInfo')}}">注册</a>]
|
|
|
|
|
</if>
|
2018-09-11 18:34:45 +08:00
|
|
|
<else />
|
|
|
|
|
<span>您好 {{$user.user_name_view}},欢迎来到 {{:MyC('home_site_name')}}</span>
|
|
|
|
|
[<a href="{{:U('Home/User/Logout')}}">退出</a>]
|
|
|
|
|
</if>
|
2018-08-19 22:40:38 +08:00
|
|
|
</div>
|
2018-08-09 18:42:34 +08:00
|
|
|
</div>
|
2018-08-19 22:40:38 +08:00
|
|
|
</ul>
|
2018-10-10 11:08:07 +08:00
|
|
|
<ul class="top-nav-right">
|
2018-10-10 18:18:05 +08:00
|
|
|
<div class="top-nav-items">
|
|
|
|
|
<div class="menu-hd <if condition="empty($user)">login-event</if>">
|
2018-09-14 18:06:53 +08:00
|
|
|
<a href="<if condition="empty($user)">javascript:;<else />{{:U('Home/User/Index')}}</if>" target="_top">
|
|
|
|
|
<i class="am-icon-user am-icon-fw"></i>
|
|
|
|
|
<span>个人中心</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2018-08-19 22:40:38 +08:00
|
|
|
</div>
|
2018-10-10 18:18:05 +08:00
|
|
|
<div class="top-nav-items">
|
|
|
|
|
<div class="am-dropdown menu-hd <if condition="empty($user)">login-event</if>" data-am-dropdown>
|
|
|
|
|
<a class="am-dropdown-toggle" href="javascript:;" target="_top" data-am-dropdown-toggle>
|
|
|
|
|
<i class="am-icon-cube am-icon-fw"></i>
|
|
|
|
|
<span>我的交易</span>
|
|
|
|
|
<i class="am-icon-caret-down"></i>
|
2018-09-14 18:06:53 +08:00
|
|
|
</a>
|
2018-10-10 18:18:05 +08:00
|
|
|
<notempty name="user">
|
|
|
|
|
<ul class="am-dropdown-content">
|
|
|
|
|
<li>
|
|
|
|
|
<a href="<if condition="empty($user)">javascript:;<else />{{:U('Home/Order/Index')}}</if>">我的订单</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</notempty>
|
2018-09-14 18:06:53 +08:00
|
|
|
</div>
|
2018-08-19 22:40:38 +08:00
|
|
|
</div>
|
2018-10-10 18:18:05 +08:00
|
|
|
|
|
|
|
|
<div class="top-nav-items">
|
2018-10-10 11:08:07 +08:00
|
|
|
<div class="am-dropdown menu-hd <if condition="empty($user)">login-event</if>" data-am-dropdown>
|
|
|
|
|
<a class="am-dropdown-toggle" href="javascript:;" target="_top" data-am-dropdown-toggle>
|
2018-09-14 18:06:53 +08:00
|
|
|
<i class="am-icon-heart am-icon-fw"></i>
|
2018-10-15 18:35:42 +08:00
|
|
|
<span>我的收藏</span>
|
2018-10-10 11:08:07 +08:00
|
|
|
<i class="am-icon-caret-down"></i>
|
2018-09-14 18:06:53 +08:00
|
|
|
</a>
|
2018-10-10 11:08:07 +08:00
|
|
|
<notempty name="user">
|
|
|
|
|
<ul class="am-dropdown-content">
|
|
|
|
|
<li>
|
|
|
|
|
<a href="<if condition="empty($user)">javascript:;<else />{{:U('Home/UserFavor/Goods')}}</if>">商品收藏</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</notempty>
|
2018-09-14 18:06:53 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-10-10 18:18:05 +08:00
|
|
|
<div class="top-nav-items top-nav-mini-cart">
|
|
|
|
|
<div class="menu-hd <if condition="empty($user)">login-event</if>">
|
|
|
|
|
<a id="mc-menu-hd" href="<if condition="empty($user)">javascript:;<else />{{:U('Home/Cart/Index')}}</if>" target="_top">
|
2018-10-15 11:17:14 +08:00
|
|
|
<i class="am-icon-shopping-cart am-icon-fw"></i>
|
2018-10-10 18:18:05 +08:00
|
|
|
<span>购物车</span>
|
2018-10-12 14:25:21 +08:00
|
|
|
<if condition="$common_cart_total gt 0">
|
|
|
|
|
<strong class="am-badge am-badge-danger am-round common-cart-total">{{$common_cart_total}}</strong>
|
|
|
|
|
<else />
|
|
|
|
|
<strong class="common-cart-total am-round">{{$common_cart_total}}</strong>
|
|
|
|
|
</if>
|
2018-10-10 18:18:05 +08:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-10-15 11:17:14 +08:00
|
|
|
<div class="top-nav-items top-nav-mini-cart">
|
|
|
|
|
<div class="menu-hd <if condition="empty($user)">login-event</if>">
|
|
|
|
|
<a id="mc-menu-hd" href="<if condition="empty($user)">javascript:;<else />{{:U('Home/Message/Index')}}</if>" target="_top">
|
|
|
|
|
<i class="am-icon-bell am-icon-fw"></i>
|
|
|
|
|
<span>消息</span>
|
|
|
|
|
<if condition="$common_message_total gt 0">
|
|
|
|
|
<strong class="am-badge am-badge-danger am-round common-cart-total">{{$common_message_total}}</strong>
|
|
|
|
|
</if>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-19 22:40:38 +08:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
2018-08-09 18:42:34 +08:00
|
|
|
</div>
|
|
|
|
|
<!-- 顶部导航条 end -->
|