header.html
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--公共头部-->
<header>
<div class="headerMain">
<a href="{:url('index/index')}">
<img class="logo" src="__CDN__/assets/store/images/logo.png" alt="logo">
</a>
<div class="buttons">
{empty name="$token"}
<a href="{:url('index/user/login_view')}" class="btn btn-warning">
<img src="__CDN__/assets/store/images/user.png" alt="user">
登录/注册
</a>
{/empty}
{notempty name="$token"}
<a href="{:url('index/member/index')}" class="btn btn-warning">
<img src="__CDN__/assets/store/images/user.png" alt="shop">
个人中心
</a>
{/notempty}
{notempty name="$token"}
<a href="{:url('index/car/index')}" class="btn" style="position: relative">
<img src="__CDN__/assets/store/images/icon_gouwu.png" alt="shop">
购物车<span class="bubble">{$bubble}</span>
</a>
{/notempty}
{$is_store}
{notempty name="$token"}
{$is_store}
{if condition="$is_store eq 0"}
<a href="{:url('index/enter/index')}" class="btn">
<img src="__CDN__/assets/store/images/settled.png" alt="user">
我要入驻
</a>
{else /}
<a href="{:url('admin/index/login')}" class="btn">
<img src="__CDN__/assets/store/images/settled.png" alt="user">
我的店铺
</a>
{/if}
{/notempty}
{notempty name="$token"}
<a href="{:url('index/user/logout')}" class="btn">
退出
</a>
{/notempty}
</div>
</div>
</header>