|
@@ -134,11 +134,106 @@ a{
|
|
|
.modal-dialog{
|
|
|
width:500px;
|
|
|
}
|
|
|
+.superSearch:hover{
|
|
|
+ background: #2cb7ca url(/images/biddingSearch/sea-header-btnImg-bai.png) 16px center no-repeat;
|
|
|
+ color: #ffffff;
|
|
|
+ background-size: 15px 16px;
|
|
|
+}
|
|
|
+#labmodalbody .code-close{
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ position: absolute;
|
|
|
+ right: 40px;
|
|
|
+ top: -20px;
|
|
|
+ cursor: pointer;
|
|
|
+ -webkit-transition: all 1s;
|
|
|
+ -o-transition: all 1s;
|
|
|
+ -moz-transition: all 1s;
|
|
|
+ transition: all 1s;
|
|
|
+}
|
|
|
+#labmodalbody .code-close:hover{
|
|
|
+ -webkit-transform: scale(1.2);
|
|
|
+ -moz-transform: scale(1.2);
|
|
|
+ -ms-transform: scale(1.2);
|
|
|
+ -o-transform: scale(1.2);
|
|
|
+ transform: scale(1.2);
|
|
|
+}
|
|
|
+.j-clearicon{
|
|
|
+ right:118px !important;
|
|
|
+}
|
|
|
</style>
|
|
|
<script>
|
|
|
+var areas = {{.T.area}};
|
|
|
+var selectPublishtime = {{.T.publishtime}};
|
|
|
+var selectTimeslot = {{.T.timeslot}};
|
|
|
+var toptype = {{.T.toptype}};
|
|
|
+var subtype = {{.T.subtype}};
|
|
|
+var isopen = {{.T.isopen}};
|
|
|
+var keys = {{.T.keywords}};
|
|
|
+var selectType = {{.T.selectType}};//全文或标题
|
|
|
+var industry = {{.T.industry}}
|
|
|
+var industrylist = {{.T.industrylist}}
|
|
|
+var sortArray = {{.T.sortArray}}
|
|
|
+var list = {{.T.list}}
|
|
|
+var searchvalue = {{.T.searchvalue}};
|
|
|
+var searchvalueArray = searchvalue.split("+");
|
|
|
$(function(){
|
|
|
- var industrylist = {{.T.industrylist}}
|
|
|
- var sortArray = {{.T.sortArray}}
|
|
|
+ if(selectType=="all"){
|
|
|
+ $("#newsclass li:nth-child(1) a").addClass("active");
|
|
|
+ $("#newsclass li:nth-child(2) a").removeClass("active");
|
|
|
+ }else{
|
|
|
+ $("#newsclass li:nth-child(1) a").removeClass("active");
|
|
|
+ $("#newsclass li:nth-child(2) a").addClass("active");
|
|
|
+ };
|
|
|
+ $("#zbSeatchT [name='selectType']").val(selectType);
|
|
|
+ //
|
|
|
+ $("#zbSeatchT [name='keywords']").val($.trim(keys));
|
|
|
+ $("#zbSeatchT [name='searchvalue']").val($.trim(keys));
|
|
|
+ $("#searchinput").focus();
|
|
|
+ if($.trim(keys)!=""){
|
|
|
+ searchvalue = $.trim(keys);
|
|
|
+ searchvalueArray = searchvalue.split("+");
|
|
|
+ $("#newsclass").show();
|
|
|
+ $("#newsnow").hide();
|
|
|
+ if(list == null || list.length == 0){
|
|
|
+ $(".tabContainer").hide();
|
|
|
+ $(".pagination").hide();
|
|
|
+ $(".hasNoData").show();
|
|
|
+ submitflag=true;
|
|
|
+ }else{
|
|
|
+ $(".tabContainer").show();
|
|
|
+ $(".pagination").show();
|
|
|
+ $(".hasNoData").hide();
|
|
|
+ appendDatas(list,true);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(list!=null&&list.length>0){
|
|
|
+ $(".tabContainer").show();
|
|
|
+ $(".pagination").show();
|
|
|
+ $(".hasNoData").hide();
|
|
|
+ appendDatas(list,false);
|
|
|
+ }else{
|
|
|
+ $(".tabContainer").hide();
|
|
|
+ $(".pagination").hide();
|
|
|
+ $(".hasNoData").show();
|
|
|
+ submitflag=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //
|
|
|
+ $(".searchname").on("input propertychange",function(){
|
|
|
+ var kw = $("#zbSeatchT [name='keywords']").val();
|
|
|
+ $("#zbSeatchT [name='searchvalue']").val($.trim(kw));
|
|
|
+ if($.trim(kw)!=""){
|
|
|
+ $("#t-clear").show();
|
|
|
+ }else{
|
|
|
+ $("#t-clear").hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $("#t-clear").click(function(){
|
|
|
+ $("#t-clear").hide();
|
|
|
+ $("#searchinput").val("").focus();
|
|
|
+ })
|
|
|
+
|
|
|
var industryhtml = '<span id="induAll" class="active">全部</span>';
|
|
|
if (sortArray!=null&&sortArray.length>0){
|
|
|
for(var i in sortArray){
|
|
@@ -153,6 +248,80 @@ $(function(){
|
|
|
$(".industry-content").html(industryhtml)
|
|
|
}
|
|
|
|
|
|
+ //
|
|
|
+ if(industry!=""){
|
|
|
+ $("#induAll").removeClass("active");
|
|
|
+ industry = industry.split(",");
|
|
|
+ for(var i=0;i<industry.length;i++){
|
|
|
+ $(".industry-content>font:not('.parent-node')").each(function(){
|
|
|
+ if($(this).attr("data-value") == industry[i]){
|
|
|
+ $(this).addClass("active");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(".industry-content .parent-node").each(function(){
|
|
|
+ if($(this).nextUntil(".parent-node").filter("font").length == $(this).nextUntil(".parent-node").filter(".active").length){
|
|
|
+ $(this).addClass("active");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //
|
|
|
+ if(selectPublishtime != ""){
|
|
|
+ $("#timerAll").removeClass("active");
|
|
|
+ $(".timer [data-value='"+selectPublishtime+"']").addClass("active");
|
|
|
+ if(selectPublishtime.indexOf("_") > -1){
|
|
|
+ $(".timerInput").addClass("active");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(selectTimeslot != "" && selectTimeslot.indexOf("_") > -1){
|
|
|
+ var spTimeArray = selectTimeslot.split("_");
|
|
|
+ if(spTimeArray[0] != ""){
|
|
|
+ $("#starttime").val(new Date(new Number(spTimeArray[0]+"000")).Format("yyyy年MM月dd日"));
|
|
|
+ $("#starttime").attr("data-value",spTimeArray[0]);
|
|
|
+ }
|
|
|
+ if(spTimeArray[1] != ""){
|
|
|
+ $("#endtime").val(new Date(new Number(spTimeArray[1]+"000")).Format("yyyy年MM月dd日"));
|
|
|
+ $("#endtime").attr("data-value",spTimeArray[1]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //
|
|
|
+ if(areas != ""){
|
|
|
+ $("#regionBtn").removeClass("active");
|
|
|
+ areas = areas.split(",");
|
|
|
+ for(var i=0;i<areas.length;i++){
|
|
|
+ $(".region-content>font:not('.parent-node')").each(function(){
|
|
|
+ if($(this).text() == areas[i]){
|
|
|
+ $(this).addClass("active");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(".region-content .parent-node").each(function(){
|
|
|
+ if($(this).nextUntil(".parent-node").filter("font").length == $(this).nextUntil(".parent-node").filter(".active").length){
|
|
|
+ $(this).addClass("active");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //
|
|
|
+ if(subtype != ""){
|
|
|
+ $("#infoBtn").removeClass("active");
|
|
|
+ subtype = subtype.split(",");
|
|
|
+ for(var i=0;i<subtype.length;i++){
|
|
|
+ $(".info-content>font:not('.parent-node')").each(function(){
|
|
|
+ if($(this).attr("data-value") == subtype[i]){
|
|
|
+ $(this).addClass("active");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(".info-content .parent-node").each(function(){
|
|
|
+ if($(this).nextUntil(".parent-node").filter("font").length == $(this).nextUntil(".parent-node").filter(".active").length){
|
|
|
+ $(this).addClass("active");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
})
|
|
|
</script>
|
|
|
<script src="/js/biddingSearch.js?v={{Msg "seo" "version"}}"></script>
|
|
@@ -164,6 +333,7 @@ $(function(){
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content" id="labmodalcont">
|
|
|
<div class="modal-body" id="labmodalbody">
|
|
|
+ <img class="code-close" src="/images/j-wx-code-close.png" alt="" onclick="labClose();">
|
|
|
<div class="layheader">
|
|
|
<div>超级搜索</div>
|
|
|
<div>按行业、金额搜索、结果可按表格显示</div>
|
|
@@ -190,9 +360,9 @@ $(function(){
|
|
|
<!--搜索-->
|
|
|
<div class="searchInput clearfix">
|
|
|
<form action="/jylab/supsearch/index.html" method="post" id="zbSeatchT" class="clearfix" onsubmit="return beforeSubmit('F')">
|
|
|
- <input class="searchname" autocomplete="off" type="search" id="searchinput" value="" name="keywords" placeholder="高速公路" />
|
|
|
-
|
|
|
- <input type="button" value="搜索" />
|
|
|
+ <input class="searchname" autocomplete="off" type="search" id="searchinput" value="{{.T.keywords}}" name="keywords" placeholder="高速公路" />
|
|
|
+ <img src="/images/pc_20.png" id="t-clear" class="j-clearicon" style="display: none;">
|
|
|
+ <input type="submit" value="搜索" />
|
|
|
<!-- <div class="searchSlideText">
|
|
|
<ul>
|
|
|
<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
|
|
@@ -209,7 +379,7 @@ $(function(){
|
|
|
<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
|
|
|
</ul>
|
|
|
</div>-->
|
|
|
- <input type="hidden" name="searchvalue" value="{{.T.searchvalue}}">
|
|
|
+ <input type="hidden" name="searchvalue" value="{{.T.keywords}}">
|
|
|
<input type="hidden" name="publishtime" value="{{.T.publishtime}}">
|
|
|
<input type="hidden" name="timeslot" value="{{.T.timeslot}}">
|
|
|
<input type="hidden" name="area" value="{{.T.area}}">
|
|
@@ -505,6 +675,7 @@ $(function(){
|
|
|
haslogin({{.T.logid}});
|
|
|
console.log(loginflag+"-------")
|
|
|
//
|
|
|
+ $(".j-nav .j-nav-link:eq(2)").addClass("active");
|
|
|
$(".q-mark").click(function(){
|
|
|
$(".remind").fadeIn();
|
|
|
})
|
|
@@ -519,9 +690,11 @@ $(function(){
|
|
|
$("#backTop").hide();
|
|
|
}
|
|
|
});
|
|
|
- var list = {{.T.list}}
|
|
|
- appendDatas(list,false);
|
|
|
})
|
|
|
+//关闭遮罩层
|
|
|
+function labClose(){
|
|
|
+ $("#labModal").modal("hide");
|
|
|
+}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|