index.phtml
1.34 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
{{> layout/header}}
<div class="search-page yoho-page">
{{# search}}
<div id="search-input" class="search-input">
<form action="/product/list/index" method="get">
<i class="search-icon iconfont"></i>
<input type="text" placeholder="搜索商品" name="query">
<i class="clear-input iconfont hide"></i>
<button id="search" class="search" type="submit">搜索</button>
</form>
</div>
<div class="search-items">
<div class="hot-search">
<h3>热门搜索</h3>
<ul class="hot clearfix">
{{# hot}}
<li>
<a href={{url}}>{{name}}</a>
</li>
{{/ hot}}
</ul>
</div>
<div class="history-search">
<h3>历史搜索</h3>
<ul class="history clearfix">
{{# history}}
<li>
<a href={{url}}>{{name}}</a>
</li>
{{/ history}}
</ul>
</div>
<button id="clear-history" class="clear-history">清空搜索历史</button>
</div>
{{/ search}}
</div>
{{> layout/footer}}