header.html
3.6 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<link rel="stylesheet" href="__TMPL__/public/assets/css/header.css">
<!--导航-->
<div class="nav">
<div class="navImg1">
<img src="__TMPL__/public/assets/images/cicon_02@2x.png" />
</div>
<div class="navImg2">
<img src="__TMPL__/public/assets/images/cicon_01@2x.png" alt="" />
</div>
<!-- input框 -->
<div class="nav_search">
<form action="/portal/login/searchList" method="GET" id="searchForm">
<i></i>
<input type="text" placeholder="请输入搜索内容" name="keyword" value="{$keyword}" id="keywords">
</form>
</div>
<div class="navImg3">
<img src="__TMPL__/public/assets/images/cicon_03@2x.png" alt="" />
</div>
<!--导航下拉-->
<div class="nav_down" id="over">
<!--未登录-->
<notempty name="user">
<!--登陆后-->
<div class="nav_downBtn login_person">
<input type="hidden" value="{$user.source}" id="source">
<notempty name="user.avatar">
<div class="nav_downImg">
<img src="{:cmf_get_image_url($user.avatar)}" alt="" />
</div>
<else/>
<div class="nav_downImg">
<img src="__TMPL__/public/assets/images/aicon_82.png" alt="" />
</div>
</notempty>
<notempty name="user.user_nickname">
<p class="nav_downName" id="user_nickname">{$user.user_nickname}</p>
<else/>
<p class="nav_downName"></p>
</notempty>
</div>
<else/>
<!-- 登录注册 -->
<div class="nav_downBtn">
<a href="/portal/login/login">
<div class="nav_landing">登录</div>
</a>
<a href="/portal/login/register">
<div class="nav_reg">注册</div>
</a>
</div>
</notempty>
<div class="nav_downLi">
<div class="nav_downN">
<a href="/">
<p class="nav_downTxt">首页</p>
</a>
</div>
</div>
<div class="nav_downLi">
<div class="nav_downN nav_downN9">
<a href="/#star">
<p class="nav_downTxt">星球奇境</p>
</a>
</div>
</div>
<volist name="slide" id="vo">
<div class="nav_downLi">
<div class="nav_downN">
<a href="javascript:void(0);">
<p class="nav_downTxt">{$vo.name}</p>
</a>
<img class="nav_downImg2" src="__TMPL__/public/assets/images/down.png" alt="" />
</div>
<div class="nav_drop-down">
<notempty name="vo.child">
<ul>
<volist name="vo.child" id="voo">
<a href="{$voo.url}">
<li>{$voo.name}</li>
</a>
</volist>
</ul>
</notempty>
</div>
</div>
</volist>
<div class="nav_downLi">
<div class="nav_downN">
<a href="javascript:void(0);">
<p class="nav_downTxt">星际活动</p>
</a>
<!--<img class="nav_downImg2" src="__TMPL__/public/assets/images/down.png" alt="" />-->
</div>
</div>
</div>
</div>