|
@@ -233,7 +233,9 @@ var SuperSearch = {
|
|
|
////
|
|
|
SuperSearch.njTipEasyPopup = new EasyPopup("nijianTip");
|
|
|
$("#supersearchPage .q-mark").on("tap",function(){
|
|
|
- SuperSearch.njTipEasyPopup.show();
|
|
|
+ setTimeout(function(){
|
|
|
+ SuperSearch.njTipEasyPopup.show();
|
|
|
+ },500);
|
|
|
});
|
|
|
//金额点击事件
|
|
|
$("#supersearchPage .money-dialog .btn").on("tap",function(){
|
|
@@ -678,6 +680,7 @@ var SuperSearch = {
|
|
|
sessionStorage.removeItem("superSearch_limitFlag");
|
|
|
sessionStorage.removeItem("superSearch_maxprice");
|
|
|
sessionStorage.removeItem("superSearch_minprice");
|
|
|
+ sessionStorage.removeItem("superSearch_showNull");
|
|
|
},
|
|
|
//js 方法
|
|
|
resetSx: function(){ //清除筛选
|
|
@@ -966,7 +969,7 @@ var SuperSearch = {
|
|
|
var ListHtml='';
|
|
|
var TableHtml='';
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
- if(pageNum==1&&i==5&&!SuperSearch.advertIsClose&&$("#advertscript").length>0){
|
|
|
+ if(pageNum==1&&i==5&&!SuperSearch.advertIsClose){
|
|
|
ListHtml+='<div class="adv-wxsearch-center" id="E1"></div>'
|
|
|
}
|
|
|
var index = (pageNum-1)*pageSize+i+1;
|
|
@@ -1168,7 +1171,7 @@ var SuperSearch = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(pageNum==1&&list.length<6&&!SuperSearch.advertIsClose&&$("#advertscript").length>0){
|
|
|
+ if(pageNum==1&&list.length<6&&!SuperSearch.advertIsClose){
|
|
|
ListHtml+='<div class="adv-wxsearch-center" id="E1">E1</div>'
|
|
|
}
|
|
|
html["ListHtml"]=ListHtml;
|
|
@@ -1501,74 +1504,80 @@ var SuperSearch = {
|
|
|
}
|
|
|
sessionStorage.superSearch_allSearchModel_isshow=$("#supersearchPage #allSearchModel").is(":visible");
|
|
|
sessionStorage.superSearch_limitFlag=SuperSearch.limitFlag;
|
|
|
+ sessionStorage.superSearch_showNull=SuperSearch.showNull;
|
|
|
}
|
|
|
},
|
|
|
setUpLastPage: function() {
|
|
|
if(!sessionStorage){
|
|
|
return;
|
|
|
}
|
|
|
- $("#supersearchPage .clearInpt").addClass("hidden");
|
|
|
- if(sessionStorage.superSearch_limitFlag=="true"){
|
|
|
- SuperSearch.limitFlag = true;
|
|
|
+ if(sessionStorage.superSearch_showNull == "null"){
|
|
|
+ SuperSearch.showNull = null;
|
|
|
+ $("#supersearchPage .selLable").addClass("hidden");
|
|
|
}else{
|
|
|
- SuperSearch.limitFlag = false;
|
|
|
- }
|
|
|
- //页面数据
|
|
|
- if(sessionStorage.superSearch_listContent==""){
|
|
|
- SuperSearch.hasNoData();
|
|
|
- $("#supersearchPage #hasNoData_tiptext>font").hide();
|
|
|
- if(sessionStorage.superSearch_hasNoData_tiptext=="-1"){
|
|
|
- $("#supersearchPage #hasNoData_tiptext>font:eq(1)").show();
|
|
|
- }else if(sessionStorage.superSearch_hasNoData_tiptext=="-2"){
|
|
|
- $("#supersearchPage #hasNoData_tiptext>font:eq(2)").show();
|
|
|
+ $("#supersearchPage .clearInpt").addClass("hidden");
|
|
|
+ if(sessionStorage.superSearch_limitFlag=="true"){
|
|
|
+ SuperSearch.limitFlag = true;
|
|
|
+ }else{
|
|
|
+ SuperSearch.limitFlag = false;
|
|
|
+ }
|
|
|
+ //页面数据
|
|
|
+ if(sessionStorage.superSearch_listContent==""){
|
|
|
+ SuperSearch.hasNoData();
|
|
|
+ $("#supersearchPage #hasNoData_tiptext>font").hide();
|
|
|
+ if(sessionStorage.superSearch_hasNoData_tiptext=="-1"){
|
|
|
+ $("#supersearchPage #hasNoData_tiptext>font:eq(1)").show();
|
|
|
+ }else if(sessionStorage.superSearch_hasNoData_tiptext=="-2"){
|
|
|
+ $("#supersearchPage #hasNoData_tiptext>font:eq(2)").show();
|
|
|
+ }else{
|
|
|
+ $("#supersearchPage #hasNoData_tiptext>font:eq(0)").show();
|
|
|
+ }
|
|
|
+ if(sessionStorage.superSearch_allSearchModel_isshow=="true"){
|
|
|
+ $("#supersearchPage #allSearchModel").show();
|
|
|
+ }else{
|
|
|
+ $("#supersearchPage #allSearchModel").hide();
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ SuperSearch.noMoreCache = sessionStorage.superSearch_noMoreCache;
|
|
|
+ SuperSearch.showNull = false;
|
|
|
+ var ListContent=$(sessionStorage.superSearch_listContent);
|
|
|
+ ListContent.on("tap", function(event){
|
|
|
+ var h = $(this).find("a.bt").attr("s");
|
|
|
+ var sid = $(this).find("a.bt").attr("sid");
|
|
|
+ var sds = SuperSearch.s_words.replace(/\+/g,"+");
|
|
|
+ var industry = $(this).find(".industry").text();
|
|
|
+ SuperSearch.myredirect(h,sid,sds,industry);
|
|
|
+ });
|
|
|
+ $("#supersearchPage #list").html(ListContent);
|
|
|
+ SuperSearch.initDropload(SuperSearch.noMoreCache!="true",sessionStorage.superSearch_pageNum);
|
|
|
+ var TableContent=$(sessionStorage.superSearch_tableContent);
|
|
|
+ TableContent.on("tap",function(event){
|
|
|
+ var h = $(this).attr("s");
|
|
|
+ var sid = $(this).attr("sid");
|
|
|
+ var sds = SuperSearch.s_words.replace(/\+/g,"+");
|
|
|
+ var industry = $(this).attr("i");
|
|
|
+ SuperSearch.myredirect(h,sid,sds,industry);
|
|
|
+ });
|
|
|
+ $("#supersearchPage #table .data .content").html(TableContent);
|
|
|
+ }
|
|
|
+ SuperSearch.appendInterceptWord(sessionStorage.superSearch_interceptWord);
|
|
|
+ if(sessionStorage.superSearch_advertIsClose == "false"){
|
|
|
+ SuperSearch.advertIsClose = false;
|
|
|
}else{
|
|
|
- $("#supersearchPage #hasNoData_tiptext>font:eq(0)").show();
|
|
|
+ SuperSearch.advertIsClose = true;
|
|
|
}
|
|
|
- if(sessionStorage.superSearch_allSearchModel_isshow=="true"){
|
|
|
- $("#supersearchPage #allSearchModel").show();
|
|
|
+ if(sessionStorage.superSearch_dyDiv == "false"){
|
|
|
+ SuperSearch.dyDiv = false;
|
|
|
}else{
|
|
|
- $("#supersearchPage #allSearchModel").hide();
|
|
|
+ SuperSearch.dyDiv = true;
|
|
|
}
|
|
|
- }else{
|
|
|
- SuperSearch.noMoreCache = sessionStorage.superSearch_noMoreCache;
|
|
|
- SuperSearch.showNull = false;
|
|
|
- var ListContent=$(sessionStorage.superSearch_listContent);
|
|
|
- ListContent.on("tap", function(event){
|
|
|
- var h = $(this).find("a.bt").attr("s");
|
|
|
- var sid = $(this).find("a.bt").attr("sid");
|
|
|
- var sds = SuperSearch.s_words.replace(/\+/g,"+");
|
|
|
- var industry = $(this).find(".industry").text();
|
|
|
- SuperSearch.myredirect(h,sid,sds,industry);
|
|
|
- });
|
|
|
- $("#supersearchPage #list").html(ListContent);
|
|
|
- SuperSearch.initDropload(SuperSearch.noMoreCache!="true",sessionStorage.superSearch_pageNum);
|
|
|
- var TableContent=$(sessionStorage.superSearch_tableContent);
|
|
|
- TableContent.on("tap",function(event){
|
|
|
- var h = $(this).attr("s");
|
|
|
- var sid = $(this).attr("sid");
|
|
|
- var sds = SuperSearch.s_words.replace(/\+/g,"+");
|
|
|
- var industry = $(this).attr("i");
|
|
|
- SuperSearch.myredirect(h,sid,sds,industry);
|
|
|
- });
|
|
|
- $("#supersearchPage #table .data .content").html(TableContent);
|
|
|
- }
|
|
|
- SuperSearch.appendInterceptWord(sessionStorage.superSearch_interceptWord);
|
|
|
- if(sessionStorage.superSearch_advertIsClose == "false"){
|
|
|
- SuperSearch.advertIsClose = false;
|
|
|
- }else{
|
|
|
- SuperSearch.advertIsClose = true;
|
|
|
- }
|
|
|
- if(sessionStorage.superSearch_dyDiv == "false"){
|
|
|
- SuperSearch.dyDiv = false;
|
|
|
- }else{
|
|
|
- SuperSearch.dyDiv = true;
|
|
|
+ var superSearch_yScroll = sessionStorage.superSearch_yScroll;
|
|
|
+ var superSearch_xScroll = sessionStorage.superSearch_xScroll;
|
|
|
+ setTimeout(function(){
|
|
|
+ $("body").scrollTop(superSearch_yScroll);
|
|
|
+ $("#supersearchPage #table .data").scrollLeft(superSearch_xScroll);
|
|
|
+ },50);
|
|
|
}
|
|
|
- var superSearch_yScroll = sessionStorage.superSearch_yScroll;
|
|
|
- var superSearch_xScroll = sessionStorage.superSearch_xScroll;
|
|
|
- setTimeout(function(){
|
|
|
- $("body").scrollTop(superSearch_yScroll);
|
|
|
- $("#supersearchPage #table .data").scrollLeft(superSearch_xScroll);
|
|
|
- },50);
|
|
|
//筛选时间
|
|
|
var ptime= sessionStorage.superSearch_publishtime;
|
|
|
if(typeof(ptime) != "undefined" && ptime != ""){
|