filesbox/web/dist/design/designstatic/front/js/recruitment.js

2 lines
8.5 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
var wapurl=window.location.origin+"/pages/wap/newslist.html";if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)&&(window.location.href=wapurl+"?busType=2"),!cdnPath)var cdnPath="";var employWagemap=["\u9762\u8BAE","2\u5343\u4EE5\u4E0B","2-3\u5343","3-4.5\u5343","4.5-6\u5343","6-8\u5343","0.8-1\u4E07","1-1.5\u4E07","1.5-2\u4E07","2-3\u4E07","3-4\u4E07","5\u4E07\u4EE5\u4E0A"],employExpmap=["\u4E0D\u9650","1-2\u5E74","2-3\u5E74","3-5\u5E74","5\u5E74\u4EE5\u4E0A"],employDegreemap=["\u4E0D\u9650","\u5C0F\u5B66","\u521D\u4E2D","\u9AD8\u4E2D","\u4E2D\u4E13","\u5927\u4E13","\u672C\u79D1","\u7855\u58EB","\u535A\u58EB","\u5176\u4ED6"],employFrommap=["\u4E0D\u9650","\u793E\u62DB","\u6821\u62DB"],employNaturemap=["\u4E0D\u9650","\u5168\u804C","\u517C\u804C"],peIde=getPar("typeId")?getPar("typeId"):"",infoValue=getPar("infoValue")?getPar("infoValue"):"1",infoValuePeIde=getPar("typeId")?getPar("typeId"):"",peId,peId2,peId3,peId4,peId5,item,item2,item3,item4,item5;function resetImgSrc(r){var t=r.replace(/([^.]*).([^.]*)$/g,"$1!medium.$2");return t}function coverError(r){var t=event.target;parseInt(t.dataset.errorcount)==0?(t.setAttribute("data-errorcount",1),t.src=r):parseInt(t.dataset.errorcount)==1&&(t.setAttribute("data-errorcount",2),t.src="/static/common/image/information/defult.jpg")}function list(r,t,o){$.ajax({type:"GET",headers:{token:getCookie("token")},url:"/api/common/getHomepageList?projectid=41",contentType:"application/json",dataType:"json",data:{infoTypeId:r,currentPage:t,pageSize:20,keywords:o,infoType:"2",employFrom:window.employFrom||void 0,employNature:window.employNature||void 0,cityCode:window.cityCode||void 0},async:!0,success:function(e){for(var s=e.data.list,a="",n=0,i=s.length;n<i;n++){var l=s[n].commonHomepageInfoId,p=s[n],v=getTimeZhCN(s[n].gmtModified),f=s[n].infoType=="1",c=location.port=="81"?"/pages/information.html?aid="+l:"/information/"+l+".shtml",y=s[n].introduce.replace(/<[^>]+>/g,"");a+="<li>",a+=' <a href="'+c+'" target="_blank">',a+=' <div class="detail" >',a+=" <h2>",a+=s[n].title,a+=" </h2>",a+=" <p>",a+="<span>"+employWagemap[parseInt(p.employWage)]+"/\u6708</span>",a+="<span>"+employDegreemap[parseInt(p.employDegree)]+"</span>",a+="<span>"+employExpmap[parseInt(p.employExp)]+"\u5DE5\u4F5C\u7ECF\u9A8C</span>",a+="<span>"+employFrommap[parseInt(p.employFrom)]+"</span>",a+="<span>"+employNaturemap[parseInt(p.employNature)]+"</span>",a+="<span>"+v+"</span>",a+=" </p>",a+=" </div>",a+=" </a>",a+="</li>"}$("#pagination2").pagination({currentPage:t,totalPage:Math.ceil(e.data.total/20),isShow:!1,count:20,prevPageText:"<",nextPageText:">",callback:function(d){list(r,d)}}),s.length==0?$(".plate-navcm").html("<div class='nodata'></div>"):$(".plate-navcm").html(a)}})}list(peIde,1),function(r,t){var o={init:function(){this.getListHomepageSetting(),this.getrecruitmentlb(),this.getrecruitmentxz(),this.getrecruitmentgzdd()},getrecruitmentlb:function(){var e="";e+='<div class="nav_label">\u62DB\u8058\u7C7B\u522B</div>',e+='<div class="plate-nav2"> <a class="pid curs employFrom" employFrom="" href="javascript:void(0);">\u5168\u90E8</a> <a class="pid employFrom" employFrom="0" href="javascript:void(0);">\u4E0D\u9650</a> <a class="pid employFrom" employFrom="2" href="javascript:void(0);">\u6821\u56ED\u62DB\u8058</a><a class="pid employFrom" employFrom="1" href="javascript:void(0);">\u793E\u4F1A\u62DB\u8058</a></div>',r(".filterrig .plate-nav2").html(e)},getrecruitmentxz:function(){var e="";e+='<div class="nav_label">\u5DE5\u4F5C\u6027\u8D28</div>',e+='<div class="plate-nav3"> <a class="pid curs employNature" employNature="" href="javascript:void(0);">\u5168\u90E8</a> <a class="pid employNature" employNature="0" href="javascript:void(0);">\u4E0D\u9650</a> <a class="pid employNature" employNature="2" href="javascript:void(0);">\u517C\u804C</a> <a class="pid employNature" employNature="1" href="javascript:void(0);">\u5168\u804C</a></div>',r(".filterrig .plate-nav3").html(e)},getrecruitmentgzdd:function(){var e=this;r.ajax({type:"GET",url:"/api/common/getRecruitmentCityList",contentType:"