resume.js 7.1 KB

1
  1. require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesD/resume"],{"10e4":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a("2e9d"),n={data:function(){return{path:"",file_show:0,i:0,jianlishow:!1,jlid:"",show:!1,columns:[[]],certificate1:[],professional_skill:[],from:{avatar:"",name:"",birthday_text:"",personal_advantage:"",additional_info:"",experience:"",job_status_id:"",job_status_name:"",education_name:"",domicile_city:""},job_intention:{job_date:"",province_id:"",city_id:"",province:"",city:"",salary_type:"",salary:"",salary_month:"",category_field_id:"",category_field_name:"",category_industry_first:"",category_industry_id:"",category_industry_first_name:"",category_industry_name:"",category_job_first:"",category_job_second:"",category_job_id:"",category_job_first_name:"",category_job_second_name:"",category_job_name:"",is_pay:""},job_experience:{company_name:"",industry_id:"",department:"",job_name:"",underling_count:"",report_to:"",start_time:"",end_time:"",level_reason:"",work_content:""},project_experience:{name:"",company_name:"",role:"",start_time:"",end_time:"",description:""},education_experience:{name:"",is_recruit:"",education_id:"",education_name:"",major:"",start_time:"",end_time:""},language:{language_id:"",level_id:"",language_name:"",level_name:""},certificate:{certificate:"",certificate_date:""},file1:{createtime:"",file:"",id:"",resume_id:"",title:"",updatetime:"",user_id:""},file:{file:"",title:""},education_experience1:[],job_experience1:[],job_intention1:[],project_experience1:[],language1:[],joblist:[],path1:""}},onLoad:function(t){this.get_job_status(),this.i=t.i,e.getStorageSync("path1")&&(this.path1=e.getStorageSync("path1"))},onShow:function(){this.resumeDetail()},methods:{daoru:function(){var t=this;0==this.file_show?this.$u.toast("请先上传简历"):e.uploadFile({url:"https://hire.hdlkeji.com/api/common/upload",filePath:this.path1,name:"file",formData:{user:"test"},success:function(a){console.log("uploadImage success, res is:",a),e.hideLoading(),e.showToast({title:"上传成功",icon:"success",duration:1e3});var i=JSON.parse(a.data);t.path=i.data.fullurl,t.ocr(),t.jianlishow=!1},fail:function(t){console.log("uploadImage fail",t),e.hideLoading(),e.showModal({content:t.errMsg,showCancel:!1})}})},ocr:function(){var t=this;e.showLoading({mask:!0,title:"解析中请稍后"}),(0,i.ocr)({path:this.path}).then((function(a){t.education_experience1=a.data.data.education_experience,t.job_experience1=a.data.data.job_experience,t.project_experience1=a.data.data.project_experience,console.log("jianli",a),e.hideLoading()}))},touptate:function(){var e=this;(0,i.update)({additional_info:this.from.additional_info,source_type:"resume",source_id:this.jlid}).then((function(t){e.resumeDetail()}))},toupload:function(){var t=this;e.navigateTo({url:"/pagesD/upload",events:{up:function(e){t.path1=e,t.resumeDetail()}}})},open:function(){},close:function(){this.jianlishow=!1},preview:function(){e.navigateTo({url:"/pagesD/preview"})},tocertificate:function(){e.navigateTo({url:"/pagesD/certificate"})},tolanguage:function(t,a){e.navigateTo({url:"/pagesD/language?type="+t+"&id="+a})},toteach:function(t,a){e.navigateTo({url:"/pagesD/teach?type="+t+"&id="+a})},toproject:function(t,a){e.navigateTo({url:"/pagesD/project?type="+t+"&id="+a})},enter:function(e){this.from.job_status_name=e.value[0].name,this.from.job_status_id=e.value[0].id,this.show=!1},get_job_status:function(){var e=this;(0,i.get_job_status)().then((function(t){e.columns[0]=t.data}))},toadvantage:function(){var t=this;e.navigateTo({url:"/pagesD/advantage",events:{todcp:function(e){t.from.personal_advantage=e,(0,i.update)({personal_advantage:t.from.personal_advantage,source_type:"resume",source_id:t.jlid}).then((function(e){t.resumeDetail()}))}}})},toapply:function(t,a){e.navigateTo({url:"/pagesD/apply?type="+t+"&id="+a,events:{apply:function(e){console.log(e)}}})},towork:function(t,a){e.navigateTo({url:"/pagesD/work?key="+t+"&id="+a,events:{work:function(e){console.log(e)}}})},resumeDetail:function(){var e=this;(0,i.resumeDetail)().then((function(t){e.from.avatar=t.data.avatar,e.from.additional_info=t.data.additional_info,e.from.personal_advantage=t.data.personal_advantage,e.jlid=t.data.id,e.from.name=t.data.name,e.from.birthday_text=t.data.birthday_text,e.from.experience=t.data.experience,e.from.education_name=t.data.education_name,e.from.domicile_city=t.data.domicile_city,e.education_experience1=t.data.education_experience,e.job_experience1=t.data.job_experience,e.job_intention1=t.data.job_intention,e.language1=t.data.language,e.project_experience1=t.data.project_experience,e.from.job_status_name=t.data.job_status_name,e.from.job_status_id=t.data.job_status_id,e.certificate.certificate=t.data.certificate.certificate,e.certificate.certificate_date=t.data.certificate.certificate_date,e.certificate1=t.data.certificate,0!=t.data.certificate.length&&(e.professional_skill=t.data.certificate[0].professional_skill.split("、")),null==t.data.file?e.file_show=0:(e.file_show=1,e.file1=t.data.file,e.file.id=t.data.file.id,e.file.title=t.data.file.title)}))},onchange:function(){e.navigateTo({url:"/pagesD/personal-infor?id="+this.jlid})}}};t.default=n}).call(this,a("543d")["default"])},"2c29":function(e,t,a){"use strict";a.r(t);var i=a("e84f"),n=a("eae8");for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("ebf2");var r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},d761:function(e,t,a){},dde0:function(e,t,a){"use strict";(function(e,t){var i=a("4ea4");a("9f7d");i(a("66fd"));var n=i(a("2c29"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(n.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},e84f:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return i}));var i={uIcon:function(){return Promise.all([a.e("common/vendor"),a.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(a.bind(null,"3211"))},uPicker:function(){return Promise.all([a.e("common/vendor"),a.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(a.bind(null,"1aa1"))},uPopup:function(){return Promise.all([a.e("common/vendor"),a.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(a.bind(null,"88c7"))},uRadioGroup:function(){return Promise.all([a.e("common/vendor"),a.e("node-modules/uview-ui/components/u-radio-group/u-radio-group")]).then(a.bind(null,"a357"))},uRadio:function(){return Promise.all([a.e("common/vendor"),a.e("node-modules/uview-ui/components/u-radio/u-radio")]).then(a.bind(null,"09e6"))}},n=function(){var e=this,t=e.$createElement,a=(e._self._c,e.from.domicile_city.slice(0,-1));e._isMounted||(e.e0=function(t){e.show=!0},e.e1=function(t){e.jianlishow=!0},e.e2=function(t){e.show=!1}),e.$mp.data=Object.assign({},{$root:{g0:a}})},o=[]},eae8:function(e,t,a){"use strict";a.r(t);var i=a("10e4"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);t["default"]=n.a},ebf2:function(e,t,a){"use strict";var i=a("d761"),n=a.n(i);n.a}},[["dde0","common/runtime","common/vendor"]]]);