(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/user/resume/work"],{"442f":function(e,n,t){},"49f4":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{userInfo:{},show:!1,startTime:(new Date).getTime(),show2:!1,endTime:(new Date).getTime()}},onLoad:function(e){var n=this;e.id&&this.$http.get("/workExperience/details",{id:e.id}).then((function(e){n.userInfo=e.data}))},methods:{setStartTime:function(e){this.userInfo.startTime=this.formatTimestampToYearMonth(e.value),this.show=!1},setEndTime:function(e){this.userInfo.endTime=this.formatTimestampToYearMonth(e.value),this.show2=!1},formatTimestampToYearMonth:function(e){var n=new Date(e),t=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0");return"".concat(t,"-").concat(o)},submit:function(){if(!this.userInfo.orgName)return e.showToast({title:"请输入公司名称",icon:"none"});if(!this.userInfo.job)return e.showToast({title:"职位名称",icon:"none"});if(!this.userInfo.startTime)return e.showToast({title:"请输入入职时间",icon:"none"});if(!this.userInfo.endTime)return e.showToast({title:"请输入离职时间",icon:"none"});if(!this.userInfo.industryName)return e.showToast({title:"请输入所属行业",icon:"none"});if(!this.userInfo.money)return e.showToast({title:"请输入月薪",icon:"none"});if(!this.userInfo.descr)return e.showToast({title:"请输入工作描述",icon:"none"});var n=this.userInfo.id?"/workExperience/u":"/workExperience/c";this.$http.post(n,this.userInfo).then((function(n){e.showToast({title:"保存成功",icon:"none"}),setTimeout((function(){e.navigateBack()}),500)}))}}};n.default=t}).call(this,t("6861")["default"])},"83c5":function(e,n,t){"use strict";t.r(n);var o=t("bc44"),i=t("ec85");for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);t("ec32");var r=t("828b"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=s.exports},"91de":function(e,n,t){"use strict";(function(e){var n=t("47a9");t("9db3");n(t("3240"));var o=n(t("83c5"));my.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t("6861")["createPage"])},bc44:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return o}));var o={uForm:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-form/u-form")]).then(t.bind(null,"fa2a"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"a6fc"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-input/u-input")]).then(t.bind(null,"f8de"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"1eac"))},uDatetimePicker:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(t.bind(null,"a416"))},"u-Textarea":function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u--textarea/u--textarea")]).then(t.bind(null,"c7e8"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"110b"))}},i=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!0},e.e1=function(n){e.show2=!0},e.e2=function(n){e.show=!1},e.e3=function(n){e.show2=!1})},u=[]},ec32:function(e,n,t){"use strict";var o=t("442f"),i=t.n(o);i.a},ec85:function(e,n,t){"use strict";t.r(n);var o=t("49f4"),i=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=i.a}},[["91de","common/runtime","common/vendor"]]]);