cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>搜索</title>
 
 
[#include "/business/pages/include/static.html" /]
<script type="text/javascript" src="${common_static}/static/ui/js/usingle.js"></script>
</head>
 
<body class="service">
[#include "/uc/include/head.html" /]
<div class="service_btn_con service_btn_conmar">
  <table class="service_btn">
    <tr>
      <td style="vertical-align:middle;"><a class="logo seekf seeklogomar" title="回到首页" href="${base}/uc/home.html"><img src="${common_static}/static/companyLogo/larks-logo1.gif" alt="" /></a>
        <div class="seek_con seekf seekfmar">
          <ul class="seek_tab clearfix">
            <li><a href="javascript:void(0);" [#if type==FullTextConstants.order]class="focus"[/#if]  t="${FullTextConstants.order}">工单</a></li>
            <li><a href="javascript:void(0);" [#if type==FullTextConstants.knowledge]class="focus"[/#if]  t="${FullTextConstants.knowledge}">知识</a></li>
          </ul>
          <div class="seek_box">
            <div class="seek_boxl">
              <input class="seek_boxl_input" type="text" value="${kw}" id="kw"/>
            </div>
            <a class="seek_box_btn" href="javascript:query();">搜索</a> </div>
        </div></td>
    </tr>
  </table>
</div>
<div class="jieguocont">
    <div id="main"></div>
    
    <div class="pagering" id="pagination"></div>
  
  <div class="clear"></div>
</div>
 
 
<script type="text/javascript">
    $(function() {
        $("ul.seek_tab a").click(function() {
            $("ul.seek_tab a").removeClass("focus");
            $(this).addClass("focus");
            query();
        });
        
        $(document).keyup(function(event) {
            if(event.keyCode==13) {
              query();
            }
        });
        
        $("a.key").live("click",function() {
            var keyword;
            var $span = $(this).find("span");
            if($span.length == 0) {
                keyword = $(this).text();
            } else {
                keyword = $span.text();
            }
            $("#kw").val(keyword);
            query();
        })
    })
 
 
 
    function query(){
        kw = $.trim($("#kw").val());
        
        if($.util.isEmpty(kw)) {
            window.location.href="${base}/uc/ucfulltext/ucsearch.html";
            return;
        }
        
        if($.util.isEmpty(kw) || kw.length == 1) {
            popupTips("关键词至少为2个字");
            return;
        }
        
        var searchType = $("ul.seek_tab a[class='focus']").attr("t");
        
        var params = {"kw":kw,"type":searchType};
        singlePagination("${base}","${base}/uc/ucfulltext/ucresultData.html","main","pagination",{psize:10},params);
    }
    
    
    $(function() {
        query();
    })
</script>
 
 
 
[#include "/business/pages/include/footer.html" /]
</body>
</html>