|
|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-collect-index~pages-detail-index~pages-hotList-index~pages-index-index~pages-jobListSearch-ind~f133b97b"],{"233b":function(e,n,t){"use strict";function a(e){return null==e||""===e||"null"==e||"undefined"==typeof e}function r(e){return!a(e)}function i(e){var n="";if(r(e))if(e>1e3){var t=e/1e3;t=t.toFixed(1),n=t+"km"}else n=e+"m";return n}function d(){return[{id:"0",name:"代理招聘",name2:"代理招聘",value:"0",text:"代理招聘",checked:!1},{id:"1",name:"劳务派遣",name2:"全职",value:"1",text:"劳务派遣",checked:!1},{id:"2",name:"劳务外包",name2:"兼职",value:"2",text:"劳务外包",checked:!1},{id:"4",name:"劳务外包挂靠",name2:"劳务外包挂靠",value:"4",text:"劳务外包挂靠",checked:!1}]}function u(){return[{id:0,name:"全职",value:"0",text:"全职",checked:!1},{id:1,name:"兼职",value:"1",text:"兼职",checked:!1},{id:2,name:"寒暑假工",value:"2",text:"寒暑假工",checked:!1},{id:3,name:"实习生",value:"3",text:"实习生",checked:!1},{id:4,name:"零工",value:"4",text:"零工",checked:!1}]}function c(e){var n="",t=u();return t.forEach((function(t){t.id==e&&(n=t.name)})),n}t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.agencyPermissionArray=H,n.agencyPromotionDetailEventArray=B,n.agencyPromotionDetailMoneyStatusArray=F,n.agencyRoleTypeArray=J,n.cutShareImg=void 0,n.cutZero=L,n.disposeJobListData=function(e){return console.log(e),e.forEach((function(e){e["workType"]=c(e.workTypeMulti),r(e.distance)&&(e["distanceKm"]=i(e.distance));var n="";r(e.minAge)&&r(e.maxAge)?n=e.minAge+"-"+e.maxAge+"岁":r(e.minAge)?n=e.minAge+"岁以上":r(e.maxAge)&&(n=e.maxAge+"岁以下"),e["age"]=n;var t="";r(e.minMonthlyPay)&&r(e.maxMonthlyPay)?t=e.minMonthlyPay==e.maxMonthlyPay?e.minMonthlyPay/100:e.minMonthlyPay/100+"-"+e.maxMonthlyPay/100:r(e.minMonthlyPay)?t=e.minMonthlyPay/100:r(e.maxMonthlyPay)&&(t=e.maxMonthlyPay/100),e["monthlyPay"]=t,e["salaryClassifyValue"]=O(e.salaryClassify,e.salaryClassifyValue,t);var a=Y(e.district||e.storeDistrict),d="";if(r(e.district||e.storeDistrict)){var u=e.district?e.district.split(","):e.storeDistrict.split(",");d=u.length<3?u[u.length-1]:u[1]+"丨"+u[2]}e["district"]=a,e["districtStr"]=d,e.jobSpecialLabelNameArray=[],function(e){if(r(e))return e.split(", ");return[]}(e.jobSpecialLabelNames).forEach((function(n,t){t<=2&&e["jobSpecialLabelNameArray"].push(n)}))})),e},n.educationArray=function(){return[{id:"初中",name:"初中"},{id:"高中",name:"高中"},{id:"大专",name:"大专"},{id:"本科",name:"本科"},{id:"硕士",name:"硕士"},{id:"博士",name:"博士"}]},n.formatDateYMD=function(e){if(null==e||""==e)return null;null==e&&""!=e||"string"!=typeof e||(e.indexOf("T")&&(e=e.replace("T"," ")),e=e.replace("-","/").replace("-","/"));var n=new Date(e),t="yyyy-MM-dd",a={"M+":n.getMonth()+1,"d+":n.getDate()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length)));for(var r in a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t},n.getAgeByBirthday=function(e){var n,t=e.split("-"),a=t[0],r=t[1],i=t[2],d=new Date,u=d.getFullYear(),c=d.getMonth()+1,o=d.getDate();if(u==a)n=0;else{var m=u-a;if(m>0)if(c==r){var f=o-i;n=f<0?m-1:m}else{var l=c-r;n=l<0?m-1:m}else n=-1}return n},n.getAgencyPermissionNameById=function(e){var n=H(),t=[],a=e.split(",");return n.forEach((function(e){a.indexOf(e.value)>=0&&t.push(e.name)})),t.join(",")},n.getAgencyPermissionsByRole=function(e){return 1==e?"job:list,apply:add,apply:list,apply:user,user:pwd,user:tel,user:add,user:update,user:del":"job:list,apply:add,apply:list,apply:user,user:pwd,user:tel"},n.getAgencyPromotionDetailEventNameId=function(e){var n="",t=B();return t.forEach((function(t){t.id==e&&(n=t.name)})),n},n.getAgencyPromotionDetailMoneyStatusNameId=function(e){var n="",t=F();return t.forEach((function(t){t.id==e&&(n=t.name)})),n},n.getAgencyRoleTypeById=function(e){var n="",t=J();return t.forEach((function(t){t.id==e&&(n=t.name)})),n},n
|