function handleIsTopSearch(){$("#SearchInput").val().trim()?$("#isTopSearchHead").val(!0):$("#isTopSearchHead").val(!1)}function hotwords(e){""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",e),guideDialogClose(),window.open(basePathHead+"/advsearch/retrieval_list.do?searchCondition.SearchWord="+e+"&isTopSearch=true","_blank")}function getAssociationalWord(){$("#SearchInput").val().trim().length<11&&$.ajax({type:"POST",data:{keyword:$("#SearchInput").val().trim()},url:contextPath+"/advsearch/associativeWords.do",success:function(e){if(1e3===e.status){var a="";if(0"+e.data.associativeWords[t]+"";$(".associational .associational-list").html(a),$(".associational-list li").click(function(){$("#SearchInput").val($(this).text()),$("#SearchInput1").val($(this).text()),$(".associational-list").hide(),$(".stop-wolds").hide(),""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$(this).text()),$("#isTopSearchHead").val(!0),$("#searchFrom").submit()}),$(".associational-list").show()}else $(".associational-list").hide();0===$("#SearchInput").val().trim().length&&$(".associational-list").hide()}},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}})}function stopWord(r,e){"input"!=e&&""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",r),$.ajax({type:"POST",data:{pattern:"10",keyword:r},url:contextPath+"/advsearch/searchWords.do",success:function(e){var a,t,o;1e3===e.status&&(a="",t=!1,4\u5f53\u524d\u641c\u7d22\u8bcd\u4ec5\u5bf9 '+o.join(",")+" \u8fdb\u884c\u68c0\u7d22\uff0c\u5982\u9700\u68c0\u7d22\u5b8c\u6574\u7684\u5173\u952e\u8bcd\uff0c\u8bf7\u5207\u6362\u7cbe\u51c6\u641c\u7d22\u6a21\u5f0f",$(".stop-wolds").html(a),$(".stop-wolds").show()):$(".stop-wolds").hide())},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}})}function tabQy(){""==$("#SearchInput1").val().trim()?window.open(contextPath+"/company-search.do"):window.open(contextPath+"/company-list.do?keyword="+encodeURI($("#SearchInput1").val()))}function tabHyreport(){saveReportBuriedPoint("21001",2,$("#SearchInput1").val()),""==$("#SearchInput1").val().trim()?window.open(contextPath+"/hyfxbg/"):window.open(contextPath+"/industryReport.do?type=2&keyword="+encodeURI($("#SearchInput1").val()))}function tabQyreport(){saveReportBuriedPoint("11001",1,$("#SearchInput1").val()),""==$("#SearchInput1").val().trim()?window.open(contextPath+"/qyfxbg/"):window.open(contextPath+"/enterpriseReport.do?type=2&keyword="+encodeURI($("#SearchInput1").val()))}function tabZb(){localStorage.setItem("AccurateSearch",!1),""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$("#SearchInput").val()),$.ajax({type:"POST",data:{pageLocation:"\u62db\u6807",keyword:$("#SearchInput").val().trim()},url:contextPath+"/advsearch/recommenderWordAction.do",success:function(e){},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}}),$(".hotSearch").click(function(){""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$("this").text()),$.ajax({type:"POST",data:{pageLocation:"\u62db\u6807",keyword:$(this).text().trim(),recommendWord:$(this).text().trim()},url:contextPath+"/advsearch/recommenderWordAction.do",success:function(e){},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}})}),handleIsTopSearch(),$("#searchFrom").submit()}function getEnterpriseSearchRecords(r){$("#searchHistory").html(""),""===$("#SearchInput1").val().trim()?($.ajax({type:"POST",url:contextPath+"/company-search!getEnterpriseSearchRecords.do",success:function(e){var a="";if(0"+e.data[o].keyword+"";$("#searchHistory").html(a),$(".history-list").show(),$("#searchHistory li").click(function(){$("#SearchInput1").val($(this).html()),$("#SearchInput").val($(this).html()),$(".search-history").hide(),""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$(this).html()),(r?tabQyreport:tabQy)()})}},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}}),$(".search-history").show()):getEnterpriseWord(r)}$("#searchFrom").keydown(function(e){"13"==e.keyCode&&(""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$("#SearchInput").val()),handleIsTopSearch())}),$("#SearchInput1").keydown(function(e){if("13"==e.keyCode){""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$("#SearchInput").val()),handleIsTopSearch();for(var a=0,t=$(".top-tel ul li span"),o=0,r=t.length;o"+e.result[o].keyword+"";$("#searchHistory").html(a),$("#searchHistory li").click(function(){$("#SearchInput").val($(this).html()),$(".search-history").hide(),""!=$("#loginName").val()&&null!=$("#loginName").val()&&saveSearchWordRecord("90",$(this).html()),$("#isTopSearchHead").val(!0),$("#searchFrom").submit()})}else""===$("#loginName").val()?($(".history").hide(),$(".no-record").hide()):($(".history").hide(),$("#no-record").show()),$("#knowledge").show(),$(".index-header .search-history .prompt").css("padding-top","20px")},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}}),guideDialogClose(),$(".search-history").show()):(stopWord($("#SearchInput").val().trim(),"input"),getAssociationalWord())}),$(".search-box .isTabOther").click(function(e){e.stopPropagation();for(var a=0,t=$(".top-tel ul li span"),o=0,r=t.length;o"+a[r]+"";else for(r=0;r<5;r++)o+="
  • "+a[r]+"
  • ";$(".associational .associational-list").html(o),$(".associational-list li").click(function(){$("#SearchInput1").val($(this).text()),$("#SearchInput").val($(this).text()),tabQyreport()})}else{if(a.length<5)for(var r=0;r'+a[r]+"";else for(var r=0;r<5;r++)o+='
  • '+a[r]+"
  • ";$(".associational .associational-list").html(o)}$(".associational-list").show()}else $(".associational-list").hide();0===$("#SearchInput1").val().trim().length&&$(".associational-list").hide()}},error:function(e){null!=e.responseJSON&&null!=e.responseJSON.info?alert(e.responseJSON.info):alert("\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")}})}$(".search-box .isTabOther").on("input",function(){if($("#SearchInput").val($("#SearchInput1").val()),0<$("#SearchInput1").val().trim().length){$(".history").hide(),$("#knowledge").hide();for(var e=0,a=$(".top-tel ul li span"),t=0,o=a.length;t