index.hbs 2.47 KB
<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">&#xe60f;</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">&#xe626;</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>