火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}], getListYears([{"fbtime":"09月05日","infoid":"I1300000001105656001001","wjdjjztime":"2022-09-27 09:00","year":"2022","ggname":"火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}]))) //折叠初始化 $(".info_item").each(function(){ $(this).hide(); }); $(getListCategoryid([{"fbtime":"09月05日","infoid":"I1300000001105656001001","wjdjjztime":"2022-09-27 09:00","year":"2022","ggname":"火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}])).each(function(){ var that=this; $(".time_zhou ul").each(function(){ $(this).find("."+that).eq(0).show(); }) }); //点击并折叠效果 $(".time_zhou a").on("click",function(e){ var this_categoryid=$(this).parents("li").attr("class").split(" ")[1]; $(this).parents("ul").find(".info_item").each(function(){ $(this).removeClass("tagOpen"); $(this).hide(); }); $(getListCategoryid([{"fbtime":"09月05日","infoid":"I1300000001105656001001","wjdjjztime":"2022-09-27 09:00","year":"2022","ggname":"火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}])).each(function(){ $("."+this).parents("ul").find("."+this).eq(0).show(); }); $(this).parents("ul").find("."+this_categoryid).each(function(){ $(this).show(); $(this).addClass("tagOpen"); }) $(".time_zhou a").each(function(){ $(this).removeClass("active"); }) $(this).addClass("active"); })})function loadxx(categoryid,infoid){ $("#article").load("newDetail.do?categoryid="+categoryid+"&infoid="+infoid+"&laiyuan=[平台内] #article_con","",function(response,status,xhr){ if(response==''){ window.location.href="/admin/login?cdxUrl=%2Finfogk%2Fdetail.do%3Fcategoryid%3D101102%26infoid%3DI1300000001105656001001001%26bdcodes%3DI1300000001105656001001%26laiyuan%3D%25255B%2525E5%2525B9%2525B3%2525E5%25258F%2525B0%2525E5%252586%252585%25255D"; } $response = $(response); //$response.find("script").appendTo('#article'); layer.photos({ photos: '#table7', anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数) }); }); if(categoryid=='101103'){ $(".one").hide() $(".two").show() $(".three").hide() $(".four").hide() $(".five").hide() }else if(categoryid=='101102'){ $(".one").hide() $(".two").hide() $(".three").show() $(".four").hide() $(".five").hide() }else if(categoryid=='101104'){ $(".one").hide() $(".two").hide() $(".three").hide() $(".four").show() $(".five").hide() }else if(categoryid=='zbjhgg') { $(".one").hide() $(".two").hide() $(".three").hide() $(".four").hide() $(".five").show() }else{ $(".one").show() $(".two").hide() $(".three").hide() $(".four").hide() $(".five").hide() }}//遍历年份function getListYears(json){ var resArr=[] $(json).each(function(){ if(resArr.indexOf(this.year)==-1){ resArr.push(this.year) } }) return resArr;}//遍历categoryidfunction getListCategoryid(json){ var resArr=[] $(json).each(function(){ if(resArr.indexOf(this.categoryid)==-1){ resArr.push(this.categoryid) }else{ } }) return resArr;}//遍历categoryid并标记重复次数function getListCategoryid_repeat(json){ var resArr=[]; var; var lastNode=json[0].categoryid; $(json).each(function(i){ var that=this; var res=false; var index=0; $(resArr).each(function(i){ if(this.categoryid==that.categoryid){ res=true; index=i; } }); if(res){ resArr[index].repeat++; }else{ resArr.push({"categoryid":this.categoryid, "repeat":1,"position":i}); }; lastCategoryid=this.categoryid; }) return resArr;}// console.log(getListCategoryid_repeat([{"fbtime":"09月05日","infoid":"I1300000001105656001001","wjdjjztime":"2022-09-27 09:00","year":"2022","ggname":"火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}]));//生成重复的节点位置// function categoryid_repeat_pos(json){// var resArr=[0];// var lastNode=json[0].categoryid;// $(json).each(function(i){// if(i!=0){// resArr.push(i);// if(this.categoryid==lastNode){// resArr.pop(resArr.length);// }// }// lastNode=this.categoryid;// })// return resArr;// }// console.log(categoryid_repeat_pos([{"fbtime":"09月05日","infoid":"I1300000001105656001001","wjdjjztime":"2022-09-27 09:00","year":"2022","ggname":"火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}]));function creatTimeLine(json, yearArr){ // console.log(json) var; var lastYear=yearArr[0]; $(json).each(function(index){ var that=this; if('101101'=='101102') { if(this.lx=="招标公告"&&this.infoid=='I1300000001105656001001001'){ $("#ggname").html(this.ggname); $("#infodate").html(this.infodate); $("#wjhqtime").html(this.wjhqtime); $("#wjdjjztime").html(this.wjdjjztime); $("#one_ggcode").html(this.infoid); } }else{ if(this.lx=="招标公告"){ $("#ggname").html(this.ggname); $("#infodate").html(this.infodate); $("#wjhqtime").html(this.wjhqtime); $("#wjdjjztime").html(this.wjdjjztime); $("#one_ggcode").html(this.infoid); } } if('101103'==this.categoryid){ $(".gsname").html(this.ggname); $(".starttime").html(this.infodate); $("#two_ggcode").html(this.infoid); var gsstart = this.wjhqtime; var gsend = this.wjdjjztime; if(gsstart!=undefined&&gsend!=undefined){ $("#gsstart").html(gsstart.substring(0,10)); $("#gsend").html(gsend.substring(0,10)); }else{ $("#gsstart").html(gsstart); $("#gsend").html(gsend); } } if('101102'==this.categoryid){ var kbtime = this.wjhqtime; var kbdidian = this.kbdidian; if(kbtime!=undefined){ $(".kbtime").html(kbtime.substring(0,16)); $("#kbdidian").html(kbdidian); }else{ $(".kbtime").html(kbtime); $("#kbdidian").html(kbdidian); } $("#three_ggcode").html(this.infoid); } if('101104'==this.categoryid){ var gsstarttime = this.wjhqtime; var zhongbiaoggname = this.ggname; if(gsstarttime!=undefined){ $(".gsstarttime").html(gsstarttime.substring(0,10)); $("#zhongbiaoggname").html(zhongbiaoggname); }else{ $(".gsstarttime").html(gsstarttime); $("#zhongbiaoggname").html(zhongbiaoggname); } $("#four_ggcode").html(this.infoid); } if(this.year!=lastYear){ resStr+='' } if(yearArr.indexOf(this.year)!=-1){ yearArr[yearArr.indexOf(this.year)]=0; resStr+='
- '; lastYear=this.year; } var className=this.categoryid=="101102"&&this.infoid=="I1300000001105656001001001"?"active":""; var; $(getListCategoryid_repeat([{"fbtime":"09月05日","infoid":"I1300000001105656001001","wjdjjztime":"2022-09-27 09:00","year":"2022","ggname":"火工品存储间建设EPC总承包工程招标公告","lx":"招标公告","categoryid":"101101","infodate":"2022-09-05","wjhqtime":"2022-09-05 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","year":"2022","kbdidian":"河北宏信招标有限公司(石家庄市新华区新合作城市广场B座14层1416会议室,石家庄市合作路68号)","lx":"开标记录","categoryid":"101102","infodate":"2022-09-28","wjhqtime":"2022-09-27 09:00"}, {"fbtime":"09月28日","infoid":"I1300000001105656001001001","wjdjjztime":"2022-09-30 17:00","year":"2022","ggname":"火工品存储间建设EPC总承包中标候选人公示","lx":"中标候选人公示","categoryid":"101103","infodate":"2022-09-28","wjhqtime":"2022-09-28 10:29"}])).each(function(){ if(this.categoryid==that.categoryid&&this.repeat>1&&index==this.position){ } }) if(index+1==json.length){ resStr+='
'+this.fbtime+''+this.lx+'
'; resStr+=''+this.fbtime+''+this.lx+'
'; } }) return resStr;}