|
@@ -12,6 +12,7 @@ var SuperSearch = {
|
|
|
noMoreCache: false,
|
|
|
showNull: null,//null true false
|
|
|
advert: null,
|
|
|
+ advertIsClose: false,
|
|
|
industry: "",
|
|
|
sortArray: "",
|
|
|
reqParam: {
|
|
@@ -381,30 +382,11 @@ var SuperSearch = {
|
|
|
var dialogObj = $("#supersearchPage .contentone");
|
|
|
dialogObj.find(".btn").click(function(){
|
|
|
if($(this).parent().index() == 0){
|
|
|
- dialogObj.find('div[id="dqbtn"]').removeClass("active");
|
|
|
dialogObj.find(".btn").removeClass("active");
|
|
|
}else{
|
|
|
dialogObj.find("ul:first li:first .btn").removeClass("active");
|
|
|
};
|
|
|
$(this).toggleClass("active");
|
|
|
- if ($(this).attr("class")!="active"){
|
|
|
- $(this).prevAll('div[id="dqbtn"]').removeClass("active");
|
|
|
- };
|
|
|
- if($(this).parent("li").find(".btn").length == $(this).parent("li").find(".btn.active").length){
|
|
|
- $(this).prevAll('div[id="dqbtn"]').addClass("active");
|
|
|
- };
|
|
|
- if(dialogObj.find(".btn.active").length == 0){
|
|
|
- dialogObj.find("ul:first li:first .btn").addClass("active");
|
|
|
- };
|
|
|
- });
|
|
|
- dialogObj.find('div[id="dqbtn"]').click(function(){
|
|
|
- $(this).toggleClass("active");
|
|
|
- if ($(this).attr("class") != "active"){
|
|
|
- $(this).nextAll(".btn").removeClass("active");
|
|
|
- }else{
|
|
|
- $(this).nextAll(".btn").addClass("active");
|
|
|
- dialogObj.find("ul:first li:first .btn").removeClass("active");
|
|
|
- };
|
|
|
if(dialogObj.find(".btn.active").length == 0){
|
|
|
dialogObj.find("ul:first li:first .btn").addClass("active");
|
|
|
};
|
|
@@ -599,6 +581,7 @@ var SuperSearch = {
|
|
|
sessionStorage.removeItem("superSearch_industry");
|
|
|
sessionStorage.removeItem("searchpageName");
|
|
|
sessionStorage.removeItem("superSearch_dyDiv");
|
|
|
+ sessionStorage.removeItem("superSearch_advertIsClose");
|
|
|
sessionStorage.removeItem("superSearch_shaxuan");
|
|
|
sessionStorage.removeItem("superSearch_showType");
|
|
|
},
|
|
@@ -840,7 +823,7 @@ var SuperSearch = {
|
|
|
var ListHtml='';
|
|
|
var TableHtml='';
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
- if(pageNum==1&&i==5){
|
|
|
+ if(pageNum==1&&i==5&&!SuperSearch.advertIsClose){
|
|
|
ListHtml+='<div class="adv-wxsearch-center" id="E1"></div>'
|
|
|
}
|
|
|
var index = (pageNum-1)*pageSize+i+1;
|
|
@@ -963,7 +946,7 @@ var SuperSearch = {
|
|
|
}
|
|
|
}
|
|
|
if(i==4){
|
|
|
- ListHtml += '<div class="tslist" style="border:0px;">'
|
|
|
+ ListHtml += '<div class="tslist" style="border-bottom-width:0px;">'
|
|
|
}else{
|
|
|
ListHtml += '<div class="tslist">'
|
|
|
}
|
|
@@ -1033,7 +1016,7 @@ var SuperSearch = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(pageNum==1&&list.length<6){
|
|
|
+ if(pageNum==1&&list.length<6&&!SuperSearch.advertIsClose){
|
|
|
ListHtml+='<div class="adv-wxsearch-center" id="E1">E1</div>'
|
|
|
}
|
|
|
html["ListHtml"]=ListHtml;
|
|
@@ -1261,18 +1244,18 @@ var SuperSearch = {
|
|
|
sessionStorage.superSearch_industry=$("#supersearchPage .contentthree").html();
|
|
|
sessionStorage.searchpageName="superSearch";
|
|
|
sessionStorage.superSearch_dyDiv=SuperSearch.dyDiv;
|
|
|
+ sessionStorage.superSearch_advertIsClose=SuperSearch.advertIsClose;
|
|
|
if($("#supersearchPage .on").hasClass("showlist")){
|
|
|
sessionStorage.superSearch_showType="showList";
|
|
|
}else if($("#supersearchPage .on").hasClass("showtable")){
|
|
|
sessionStorage.superSearch_showType="showTable";
|
|
|
}
|
|
|
- if(!$("#supersearchPage #super_search").hasClass("hidden")){
|
|
|
- var shaxuanclass = $("#supersearchPage .jyshaxuan .shaixcl").attr("class");
|
|
|
- if(shaxuanclass){
|
|
|
- shaxuanclass = shaxuanclass.split(" ")[0];
|
|
|
- sessionStorage.superSearch_shaxuan=shaxuanclass;
|
|
|
- }
|
|
|
+ var shaxuanclass = $("#supersearchPage .jyshaxuan .shaixcl").attr("class");
|
|
|
+ if(shaxuanclass){
|
|
|
+ shaxuanclass = shaxuanclass.split(" ")[0];
|
|
|
+ sessionStorage.superSearch_shaxuan=shaxuanclass;
|
|
|
}
|
|
|
+ sessionStorage.superSearch_shaxuanFlag=!$("#supersearchPage #super_search").hasClass("hidden");
|
|
|
}
|
|
|
},
|
|
|
setUpLastPage: function () {
|
|
@@ -1306,7 +1289,11 @@ var SuperSearch = {
|
|
|
});
|
|
|
$("#supersearchPage #table .data .content").html(TableContent);
|
|
|
}
|
|
|
-
|
|
|
+ if(sessionStorage.superSearch_advertIsClose == "false"){
|
|
|
+ SuperSearch.advertIsClose = false;
|
|
|
+ }else{
|
|
|
+ SuperSearch.advertIsClose = true;
|
|
|
+ }
|
|
|
if(sessionStorage.superSearch_dyDiv == "false"){
|
|
|
SuperSearch.dyDiv = false;
|
|
|
}else{
|
|
@@ -1359,9 +1346,6 @@ var SuperSearch = {
|
|
|
$("#supersearchPage .contentone").find(".btn").each(function(){
|
|
|
if($(this).text() == scopes[i]){
|
|
|
$(this).addClass("active");
|
|
|
- if($(this).parent("li").find(".btn").length == $(this).parent("li").find(".btn.active").length){
|
|
|
- $(this).prevAll('div[id="dqbtn"]').addClass("active");
|
|
|
- };
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
@@ -1408,12 +1392,15 @@ var SuperSearch = {
|
|
|
$("#supersearchPage .money-dialog .btn").addClass("active");
|
|
|
}
|
|
|
var shaxuanclass = sessionStorage.superSearch_shaxuan;
|
|
|
- if(shaxuanclass){
|
|
|
+ var shaxuanFlag = sessionStorage.superSearch_shaxuanFlag;
|
|
|
+ if(shaxuanFlag=="true"){
|
|
|
$("#supersearchPage #selLable").addClass("hidden");
|
|
|
$("#supersearchPage #wrapper").addClass("hidden");
|
|
|
$("#supersearchPage .nullcontent").addClass("hidden");
|
|
|
$("#supersearchPage #super_search").removeClass("hidden");
|
|
|
$("#supersearchPage .jyshaxuan>div").removeClass("shaixcl");
|
|
|
+ }
|
|
|
+ if(shaxuanclass){
|
|
|
$("#supersearchPage ."+shaxuanclass).addClass("shaixcl");
|
|
|
$("#supersearchPage .industry-dialog,.jydq-dialog,.jytype-dialog,.jypt-dialog,.money-dialog").addClass("hidden");
|
|
|
if(shaxuanclass == "shaixIndustry"){
|
|
@@ -1654,5 +1641,13 @@ var SuperSearch = {
|
|
|
endtime = "";
|
|
|
}
|
|
|
return [starttime,endtime]
|
|
|
+ },
|
|
|
+ closeadv: function(obj){
|
|
|
+ SuperSearch.advertIsClose = true;
|
|
|
+ $(obj).parent().prev().css("border-bottom-width","1px");
|
|
|
+ $(obj).parent().remove();
|
|
|
+ if(SuperSearch.dropload != null){
|
|
|
+ SuperSearch.dropload.resetload();
|
|
|
+ }
|
|
|
}
|
|
|
};
|