index.hbs
2.47 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
<div class="search-page yoho-page">
{{# search}}
<input type="hidden" value="{{defaultTerms}}" id="default-terms">
<div id="search-input" class="search-input">
<form id="search-form" action="{{url}}" method="get">
<i class="search-icon iconfont"></i>
<input type="hidden" name="from" value="search">
<input type="text" placeholder="{{#if defaultTerms}}{{defaultTerms}}{{else}}搜索商品、品牌{{/if}}" name="query" data-bp-id="search_page_input_1" class="buriedpoint" autocomplete="off">
<i class="clear-input iconfont hide"></i>
<span id="search" class="search buriedpoint" type="submit" data-bp-id="search_index_one_0">搜索</span>
</form>
</div>
<ul class="search-associate"></ul>
{{#if hotTerms}}
<div class="hot-search-new clearfix">
<div class="new-hot">
<div class="hot-title hot-term">热搜</div>
{{# hotTerms}}
<div class="hot-term">
<a href='javascript:void(0);'>{{content}}</a>
</div>
{{/ hotTerms}}
</div>
</div>
{{/if}}
<div class="search-items clearfix">
<div class="search-index">
<div class="search-group history-search hide">
<div class="search-content-title">
<h3 class="left">最近搜索</h3>
<i id="clear-history" class="right ico-del hide"></i>
</div>
<div class="search-content">
<ul class="history clearfix"></ul>
</div>
</div>
{{#if wantTerms}}
<div class="search-group want-search">
<h3>猜你想找</h3>
<div class="search-content">
<ul class="want clearfix">
{{# wantTerms}}
<li>
<a href='javascript:void(0);'>{{.}}</a>
</li>
{{/ wantTerms}}
</ul>
</div>
</div>
{{/if}}
</div>
</div>
{{/ search}}
</div>