9.493e5585.chunk.js 15 KB

12
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[9],{103:function(e,t,a){"use strict";a.d(t,"c",function(){return n}),a.d(t,"f",function(){return r}),a.d(t,"d",function(){return s}),a.d(t,"a",function(){return l}),a.d(t,"b",function(){return o}),a.d(t,"e",function(){return c});var n=["\u793e\u4f1a\u4eba\u58eb-\u5728\u804c","\u793e\u4f1a\u4eba\u58eb-\u79bb\u804c","\u5b66\u751f"],r=["\u515a\u5458","\u6c11\u4e3b\u6d3e\u4eba\u58eb","\u7fa4\u4f17"],s=["\u672a\u5a5a","\u5df2\u5a5a","\u79bb\u5f02","\u4e27\u5076"],l=["\u57ce\u9547","\u519c\u6751"],o=["\u535a\u58eb\u53ca\u4ee5\u4e0a","\u7855\u58eb","\u672c\u79d1","\u5927\u4e13","\u9ad8\u4e2d","\u804c\u9ad8","\u4e2d\u4e13","\u6280\u6821","\u521d\u4e2d","\u5c0f\u5b66"],c=["\u6c49\u65cf","\u963f\u660c\u65cf","\u767d\u65cf","\u5e03\u6717\u65cf","\u4fdd\u5b89\u65cf","\u5e03\u4f9d\u65cf","\u671d\u9c9c\u65cf","\u50a3\u65cf","\u5fb7\u6602\u65cf","\u4f97\u65cf","\u72ec\u9f99\u65cf","\u8fbe\u65a1\u5c14\u65cf","\u4e1c\u4e61\u65cf","\u9102\u6e29\u514b\u65cf","\u4eac\u65cf","\u4ee1\u4f6c\u65cf","\u9ad8\u5c71\u65cf","\u56de\u65cf","\u8d6b\u54f2\u65cf","\u57fa\u8bfa\u65cf","\u666f\u9887\u65cf","\u67ef\u5c14\u514b\u5b5c\u65cf","\u54c8\u8428\u514b\u65cf","\u73de\u5df4\u65cf","\u62c9\u795c\u65cf","\u9ece\u65cf","\u5088\u50f3\u65cf","\u6ee1\u65cf","\u95e8\u5df4\u65cf","\u8499\u53e4\u65cf","\u82d7\u65cf","\u4eeb\u4f6c\u65cf","\u6bdb\u5357\u65cf","\u6012\u65cf","\u7eb3\u897f\u65cf","\u9102\u4f26\u6625\u65cf","\u666e\u7c73\u65cf","\u7f8c\u65cf","\u4fc4\u7f57\u65af\u65cf","\u7572\u65cf","\u6492\u62c9\u65cf","\u6c34\u65cf","\u5854\u5409\u514b\u65cf","\u571f\u5bb6\u65cf","\u5854\u5854\u5c14\u65cf","\u571f\u65cf","\u7ef4\u543e\u5c14\u65cf","\u4e4c\u5b5c\u522b\u514b\u65cf","\u4f64\u65cf","\u9521\u4f2f\u65cf","\u7476\u65cf","\u88d5\u56fa\u65cf","\u5f5d\u65cf","\u85cf\u65cf","\u58ee\u65cf","\u7a7f\u9752\u4eba\u65cf","\u54c8\u5c3c\u65cf"]},306:function(e,t,a){},309:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return g});a(81);var n=a(83),r=(a(90),a(92)),s=a(19),l=a.n(s),o=(a(85),a(91)),c=a(25),i=a(5),u=a(6),m=a(10),p=a(9),d=a(11),f=a(0),E=a.n(f),h=a(96),b=a(73),v=a(103),g=(a(306),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).state={department:"",name:"",sallary:"",idPhoto:"",lifePhoto:"",personalInfo:{curStatus:0,sex:1,nation:0,belief:"",healthy:"",diseases:"",nativePlace:"",politics:0,marriage:0,registration:"",accountCharacter:0,address:"",dateOfBirth:null,height:null,foreign:"",skillCertificate:"",skillType:"",fristWork:null},identity:"",phone:"",urgentPhone:"",email:"",eduExperience:[{education:0}],workExperience:{},plan:"",description:"",agree:!0,npProvince:"\u5317\u4eac\u5e02",npCity:0,loading:!1},a.initState(),a}return Object(d.a)(t,e),Object(u.a)(t,[{key:"initState",value:function(){var e=Object(c.a)(l.a.mark(function e(){var t,a,n,r,s,c,i,u,m;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props.match.params.id,a=Object(b.d)("username"),n=Object(b.d)("yyuid"),a&&n){e.next=6;break}return o.a.error("\u8bf7\u5148\u7528\u591a\u73a9YY\u767b\u5f55"),e.abrupt("return");case 6:return e.prev=6,e.next=9,h.a.user.preview({id:t,userId:Object(b.d)("username")});case 9:r=e.sent,(s=r.data)||o.a.error("\u8be5\u7528\u6237\u4e0d\u5b58\u5728"),c={},e.t0=l.a.keys(s);case 14:if((e.t1=e.t0()).done){e.next=32;break}if(i=e.t1.value,!s[i]||!this.state.hasOwnProperty(i)){e.next=30;break}if("workExperience"!==i&&"eduExperience"!==i&&"personalInfo"!==i){e.next=29;break}e.prev=18,u=JSON.parse(s[i]),c[i]=u,"personalInfo"===i&&u.nativePlace&&(m=u.nativePlace.split("-"),c.npProvince=m[0],c.npCity=m[1]),e.next=27;break;case 24:return e.prev=24,e.t2=e.catch(18),e.abrupt("break",32);case 27:e.next=30;break;case 29:c[i]=s[i];case 30:e.next=14;break;case 32:this.setState(Object.assign(this.state,c)),e.next=38;break;case 35:e.prev=35,e.t3=e.catch(6),o.a.error(e.t3);case 38:case"end":return e.stop()}},e,this,[[6,35],[18,24]])}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){return E.a.createElement("div",{className:"page-preview"},E.a.createElement("div",{className:"mod-photo"},E.a.createElement("div",{className:"img-wrap"},E.a.createElement("img",{src:this.state.idPhoto,alt:""}))),E.a.createElement("div",{className:"mod-normal"},E.a.createElement("h2",{className:"mod-title"},"\u5e94\u8058\u4fe1\u606f"),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u5e94\u8058\u5c97\u4f4d"),"\uff1a",this.state.department),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u671f\u671b\u85aa\u8d44"),"\uff1a",this.state.sallary)),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u76ee\u524d\u72b6\u6001"),"\uff1a",v.c[this.state.personalInfo.curStatus]))),E.a.createElement("div",{className:"mod-normal"},E.a.createElement("h2",{className:"mod-title"},"\u57fa\u672c\u4fe1\u606f"),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u59d3\u540d"),"\uff1a",this.state.name),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u6027\u522b"),"\uff1a",1===this.state.personalInfo.sex?"\u7537":"\u5973")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u6c11\u65cf"),"\uff1a",v.e[this.state.personalInfo.nation]),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u5b97\u6559\u4fe1\u4ef0"),"\uff1a",this.state.personalInfo.belief||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u5065\u5eb7\u72b6\u51b5"),"\uff1a",this.state.personalInfo.healthy),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u91cd\u5927\u75be\u75c5\u53f2"),"\uff1a",this.state.personalInfo.diseases)),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u7c4d\u8d2f\u7701\u5e02"),"\uff1a",this.state.personalInfo.nativePlace),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u653f\u6cbb\u9762\u8c8c"),"\uff1a",v.f[this.state.personalInfo.politics])),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u8eab\u4efd\u8bc1\u53f7"),"\uff1a",this.state.identity),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u5a5a\u59fb\u72b6\u51b5"),"\uff1a",v.d[this.state.personalInfo.marriage])),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u6237\u53e3\u6240\u5728\u5730"),"\uff1a",this.state.personalInfo.registration),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u6237\u53e3\u6027\u8d28"),"\uff1a",v.a[this.state.personalInfo.accountCharacter])),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u5bb6\u5ead\u8be6\u7ec6\u4f4f\u5740"),"\uff1a",this.state.personalInfo.address),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u51fa\u751f\u65e5\u671f"),"\uff1a",this.state.personalInfo.dateOfBirth||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u8eab\u9ad8"),"\uff1a",this.state.personalInfo.height||"--"),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u5916\u8bed\u53ca\u7a0b\u5ea6"),"\uff1a",this.state.personalInfo.foreign||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u6280\u80fd\u8bc1\u4e66"),"\uff1a",this.state.personalInfo.skillCertificate||"--"),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u804c\u79f0\u53ca\u7c7b\u522b"),"\uff1a",this.state.personalInfo.skillType||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u9996\u6b21\u53c2\u52a0\u5de5\u4f5c\u65f6\u95f4"),"\uff1a",this.state.personalInfo.fristWork||"--")),E.a.createElement("h2",{className:"mod-title"},"\u901a\u8baf\u4fe1\u606f"),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u624b\u673a\u53f7\u7801"),"\uff1a",this.state.phone),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u5176\u4ed6\u8054\u7cfb\u4eba\u53f7\u7801/\u5173\u7cfb"),"\uff1a",this.state.urgentPhone||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u4e2a\u4eba\u90ae\u7bb1"),"\uff1a",this.state.email))),E.a.createElement("div",{className:"mod-normal"},E.a.createElement("h2",{className:"mod-title"},"\u6559\u80b2\u7ecf\u5386"),this.state.eduExperience.map(function(e,t){return E.a.createElement("div",{key:t},E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u8d77\u6b62\u65e5\u671f"),"\uff1a",e.startDate," \u81f3 ",e.endDate),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u6bd5\u4e1a\u5b66\u6821"),"\uff1a",e.school)),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u5b66\u5386"),"\uff1a",v.b[e.education]),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u4e13\u4e1a\u540d\u79f0"),"\uff1a",e.major)),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u6bd5\u4e1a\u65f6\u95f4/\u5b66\u5236"),"\uff1a",e.educationBg)))})),E.a.createElement("div",{className:"mod-normal"},E.a.createElement("h2",{className:"mod-title"},"\u5de5\u4f5c\u7ecf\u5386"),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u8d77\u6b62\u65e5\u671f"),"\uff1a",this.state.workExperience.startDate," \u81f3 ",this.state.workExperience.endDate),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u4efb\u804c\u516c\u53f8"),"\uff1a",this.state.workExperience.company||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u804c\u4f4d"),"\uff1a",this.state.workExperience.position||"--"),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u7a0e\u524d\u6708\u85aa"),"\uff1a",this.state.workExperience.sally||"--")),E.a.createElement(n.a,null,E.a.createElement(r.a,{span:10},E.a.createElement("b",null,"\u79bb\u804c\u539f\u56e0"),"\uff1a",this.state.workExperience.reason||"--"),E.a.createElement(r.a,{span:10,offset:4},E.a.createElement("b",null,"\u8bc1\u660e\u4eba\u53ca\u7535\u8bdd"),"\uff1a",this.state.workExperience.witness,"-",this.state.workExperience.witnessPhone))),E.a.createElement("div",{className:"mod-normal"},E.a.createElement("h2",{className:"mod-title"},"\u81ea\u6211\u63cf\u8ff0"),E.a.createElement(n.a,null,E.a.createElement("b",null,"\u4e09\u5e74\u5185\u804c\u4e1a\u89c4\u5212"),"\uff1a",E.a.createElement("div",null,this.state.plan)),E.a.createElement(n.a,null,E.a.createElement("b",null,"\u5de5\u4f5c\u4e1a\u7ee9\u4e0e\u81ea\u6211\u8bc4\u4ef7"),"\uff1a",E.a.createElement("div",null,this.state.description))),E.a.createElement("div",{className:"mod-normal"},E.a.createElement("h2",{className:"mod-title"},"\u5176\u4ed6"),E.a.createElement(n.a,null,E.a.createElement("b",null,"\u751f\u6d3b\u7167"),"\uff1a",E.a.createElement("div",{className:"life-photo"},E.a.createElement("img",{src:this.state.lifePhoto,alt:""})))))}}]),t}(E.a.Component))},73:function(e,t,a){"use strict";a.d(t,"b",function(){return r}),a.d(t,"g",function(){return s}),a.d(t,"h",function(){return l}),a.d(t,"i",function(){return o}),a.d(t,"e",function(){return c}),a.d(t,"f",function(){return i}),a.d(t,"c",function(){return u}),a.d(t,"a",function(){return m}),a.d(t,"d",function(){return p});a(85);var n=a(91);function r(e,t,a){return t&&t.props?t.key:t||(a?"checkbox"===e.target.type?e.target.checked:e.target.value:e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(a,n){var s=r(a,n,t);this.props&&this.props.transferMsg&&this.props.transferMsg(e,s)}}function l(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,s){var l=r(n,s,a),o=this.props.info[e];o[t]=l,this.props&&this.props.transferMsg&&this.props.transferMsg(e,o)}}function o(e){n.a.error(e)}function c(e){return"[object Function]"===Object.prototype.toString.call(e)}function i(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function u(e,t){var a=new FileReader;a.addEventListener("load",function(){return t(a.result)}),a.readAsDataURL(e)}function m(e){var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var a=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return new Blob([n],{type:a})}function p(e){var t,a=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=document.cookie.match(a))?unescape(t[2]):null}},96:function(e,t,a){"use strict";var n=a(76),r=a.n(n),s=a(122),l=a.n(s),o=a(18),c=a(73),i="";i="3000"===window.location.port?"//localhost:1024/":window.location.host.match("test")?"//test-api-hr.duowan.com":"//api-hr.duowan.com";var u=r.a.create({baseURL:i,headers:{"Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(e,t){return e=l.a.stringify(e)}],transformResponse:[],withCredentials:!0});u.host=i,u.interceptors.request.use(function(e){var t="post"===e.method?e.data:e.params;if(t&&t.needAuth){if(!o.a.userId||!o.a.token)return Object(c.i)("\u767b\u5f55\u6001\u5931\u6548\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55"),o.a.logout(),Promise.reject("\u8bf7\u5148\u767b\u5f55");o.a.userId&&(t.userId=o.a.userId),t.token=o.a.token,delete t.needAuth}return e},function(e){return Promise.reject(e)}),u.interceptors.response.use(function(e){return 0===e.data.code?Promise.resolve(e.data):-5!==e.data.code?Promise.reject(new Error(e.data.msg)):(Object(c.i)(e.data.msg),void o.a.logout())},function(e){return Promise.reject(e)});var m=u,p={getDepartmentList:function(e){return m.get("/department/list",{params:e})}},d={getCode:function(e){var t=e.phone;return m.get("/login/getCode",{params:{phone:t}})},checkCode:function(e){var t=e.phone,a=e.code;return m.get("/login/checkCode",{params:{phone:t,code:a}})},checkAdmin:function(e){var t=e.nodeId,a=e.userId;return r.a.post("//test.admin.duowan.com/open/checkRight2",{params:{nodeId:t,userId:a}})}},f={find:function(e){return Object.assign(e,{needAuth:!0}),m.get("/user/find",{params:e})},preview:function(e){return m.get("/user/preview",{params:e})},create:function(e){return Object.assign(e,{needAuth:!0}),m.post("/user/create",e)}},E="";E="3000"===window.location.port?"//localhost:1024/":window.location.host.match("test")?"//test-api-hr.duowan.com":"//api-hr.duowan.com";var h=r.a.create({baseURL:E,headers:{"Content-Type":"multipart/form-data"},transformRequest:[],transformResponse:[],withCredentials:!0});h.host=E,h.interceptors.request.use(),h.interceptors.response.use(function(e){return Promise.resolve(e.data)},function(e){return Promise.reject(e)});var b=h,v={upLoadImg:function(e){return r.a.post("//video.duowan.com/jsapi/imgUpload",e,{headers:{"Content-Type":"multipart/form-data"}})},upLoadFile:function(e){return console.log("params",e),r.a.post("https://ad.duowan.com/?r=test/otherUpload&hehe=1",e,{headers:{"Content-Type":"multipart/form-data"}})},upLoadResume:function(e){return b.post("/upload/resume",e)}};t.a={base:p,login:d,user:f,upload:v}}}]);
  2. //# sourceMappingURL=9.493e5585.chunk.js.map