search-cont.hbs 1.94 KB
{{#if error}}
    <div class="search-result nav-title">很抱歉,关于“<span class="red">{{keywords}}</span>”没有找到您想要的答案</div>
    <p class="result-error mt15">建议您:看看输入的文字是否有误/减少分类条件的限制/重新检索</p>
    <p class="result-error">或 者:使用<a href="{{jumpUrl}}">在线客服</a>试试</p>
{{else}}
    <div class="search-result nav-title">关于“<span class="red">{{keywords}}</span>”,共为您查询到<span class="red">{{total}}</span>个答案</div>
    <ul class="search-list-area">
        {{#helper_list}}
            <li class="{{#if problem}}problem-li{{else}}article-li{{/if}}">
                <p class="title">{{{caption}}}</p>
                {{#if problem}}
                    <div class="cont">{{{content}}}</div>
                {{else}}
                    <div class="cont">{{{content}}}</div>
                {{/if}}
            </li>
        {{/helper_list}}
    </ul>
    {{!-- 分页 --}}
    {{# footPager}}
        <div class="foot-pager clearfix" data-total={{../totalCount}}>
            <span class="total">
                {{# tip}}
                    {{#if totalText}}
                        {{totalText}}
                    {{^}}
                        {{start}} - {{end}} / 共{{total}}件商品
                    {{/if}}
                {{/ tip}}
            </span>

            <div class="pager">
                {{# prePage}}
                    <a href="{{url}}" title="上一页"><span class="iconfont">&#xe60e;</span>上一页</a>
                {{/ prePage}}

                {{# pages}}
                    <a{{#if url}} href="{{url}}"{{/if}}{{#if cur}} class="cur"{{/if}}>{{num}}</a>
                {{/ pages}}

                {{# nextPage}}
                    <a href="{{url}}" title="下一页">下一页<span class="iconfont">&#xe60c;</span></a>
                {{/ nextPage}}
            </div>
        </div>
    {{/ footPager}}
{{/if}}