| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[126],{1162:function(e,t,n){"use strict";var r=n(825);n.n(r).a},1163:function(e,t,n){"use strict";var r=n(826);n.n(r).a},1164:function(e,t,n){"use strict";var r=n(827);n.n(r).a},1165:function(e,t,n){"use strict";var r=n(828);n.n(r).a},1166:function(e,t,n){"use strict";var r=n(829);n.n(r).a},1167:function(e,t,n){"use strict";var r=n(830);n.n(r).a},1168:function(e,t,n){"use strict";var r=n(831);n.n(r).a},1169:function(e,t,n){"use strict";var r=n(832);n.n(r).a},1170:function(e,t,n){"use strict";var r=n(833);n.n(r).a},1171:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDE0djE0SDB6Ii8+PGcgc3Ryb2tlPSIjODI4QzlBIj48cGF0aCBkPSJNNi45ODIgMi44NGMxLjY4NiAwIDMuMTMzLjUxMSA0LjIwNSAxLjIzOCAxLjE3Ny43OTggMS45MjggMS44NTcgMS45MjggMi43NiAwIC44MTItLjc5IDEuODU2LTEuOTk1IDIuNjQ5QTcuNDk4IDcuNDk4IDAgMDE3IDEwLjY5MmE3LjY3NiA3LjY3NiAwIDAxLTQuMTgzLTEuMjIxQzEuNjQgOC43MDEuODUgNy42OTEuODUgNi44MzhjMC0uODYyLjgwMi0xLjkyNiAxLjk5Ni0yLjczNmE3LjQwNCA3LjQwNCAwIDAxNC4xMzYtMS4yNjF6Ii8+PHBhdGggZD0iTTYuOTgyIDQuNzM5Yy0xLjEyNCAwLTIuMDM1LjkzOC0yLjAzNSAyLjA5NiAwIDEuMTU3LjkxMSAyLjA5NSAyLjAzNSAyLjA5NXMyLjAzNS0uOTM4IDIuMDM1LTIuMDk1YzAtMS4xNTgtLjkxLTIuMDk2LTIuMDM1LTIuMDk2Ii8+PC9nPjwvZz48L3N2Zz4="},1172:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjYzNiA3LjA5M0ExNy42MyAxNy42MyAwIDAxOS43IDEwLjQ3OWMtLjg4OC44LTEuODE2IDEuNDg2LTIuNzQ3IDIuMDQ4YTE4LjE0NyAxOC4xNDcgMCAwMS0yLjc0Ni0yLjA0OCAxNy43MjQgMTcuNzI0IDAgMDEtMi44MzktMy4yMzguMTM0LjEzNCAwIDAxLS4wMjItLjA1IDMuNDM2IDMuNDM2IDAgMTE1LjYwNi0zLjk3NCAzLjQzNiAzLjQzNiAwIDAxNS43MDMgMy44MzEuMTE5LjExOSAwIDAxLS4wMTguMDQ1eiIgc3Ryb2tlPSIjODI4QzlBIiBzdHJva2Utd2lkdGg9IjEuMDUiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+"},1173:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLS4wMDEpIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDBoMTZ2MTZIMHoiLz48cmVjdCBmaWxsPSIjODA4RDlBIiB4PSI1LjY2NyIgeT0iMSIgd2lkdGg9IjQuNjY3IiBoZWlnaHQ9IjEuMiIgcng9Ii42Ii8+PHBhdGggZD0iTTEuOTEgMy42NjdoMTIuMTU3YS42LjYgMCAwMTAgMS4xOThMMS45MDkgNC44MmEuNTc4LjU3OCAwIDAxMC0xLjE1NHoiIGZpbGw9IiM4MDhEOUEiLz48cGF0aCBkPSJNMy45MzMgNi42MzN2Ni44YzAgLjE4NC4xNS4zMzQuMzM0LjMzNGg3LjQ2NmMuMTg0IDAgLjMzNC0uMTUuMzM0LS4zMzR2LTYuOGEuNi42IDAgMTExLjIgMHY3YzAgLjczNy0uNTk3IDEuMzM0LTEuMzM0IDEuMzM0SDQuMDY3YTEuMzMzIDEuMzMzIDAgMDEtMS4zMzQtMS4zMzR2LTdhLjYuNiAwIDExMS4yIDB6IiBmaWxsPSIjODA4RDlBIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNi40NjIgNy42NjdhLjYuNiAwIDAxLjYuNlYxMS40YS42LjYgMCAwMS0xLjIgMFY4LjI2N2EuNi42IDAgMDEuNi0uNnpNOS40NjIgNy42NjdhLjYuNiAwIDAxLjYuNlYxMS40YS42LjYgMCAwMS0xLjIgMFY4LjI2N2EuNi42IDAgMDEuNi0uNnoiIGZpbGw9IiM4MDhEOUEiLz48L2c+PC9zdmc+"},1174:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJwcmVmaXhfX2EiIGQ9Ik0wIDBoMzZ2MzZIMHoiLz48bWFzayBpZD0icHJlZml4X19iIiBtYXNrQ29udGVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgbWFza1VuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeD0iMCIgeT0iMCIgd2lkdGg9IjM2IiBoZWlnaHQ9IjM2IiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2EiLz48L21hc2s+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHVzZSBzdHJva2U9IiNDRUQzRDkiIG1hc2s9InVybCgjcHJlZml4X19iKSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtZGFzaGFycmF5PSIyIiB4bGluazpocmVmPSIjcHJlZml4X19hIi8+PHBhdGggZD0iTTE4IDhhMSAxIDAgMDExIDF2OGg4YTEgMSAwIDAxMCAyaC04djhhMSAxIDAgMDEtMiAwdi04SDlhMSAxIDAgMDEwLTJoOFY5YTEgMSAwIDAxMS0xeiIgZmlsbD0iIzgyOEM5OSIvPjwvZz48L3N2Zz4="},1175:function(e,t,n){"use strict";var r=n(834);n.n(r).a},1176:function(e,t,n){"use strict";var r=n(835);n.n(r).a},1362:function(e,t,n){"use strict";n.r(t);var r=n(11),o=(n(392),n(35),n(8)),c=n(1020),l={data:function(){return{userInfo:{}}},created:function(){this.checkIsVerify(),this.cnzz("签约流程","实名认证","访问")},computed:{canNext:function(){return"2"==this.userInfo.realname_verify_status}},methods:{checkIsVerify:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getUserInfo();case 2:e.userInfo=t.sent;case 3:case"end":return t.stop()}}),t)})))()},nextStep:function(){if(!this.canNext)return this.cnzz("签约流程","实名认证(下一步)","未认证"),this.$message.error("请先完成实名认证哦"),!1;this.$emit("next"),this.cnzz("签约流程","实名认证(下一步)","已认证")}}},d=(n(1162),n(10)),m=Object(d.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sign-new-cert"},[n("div",{staticClass:"sign-new-tips"},[e._v("完成签约流程即可接单!")]),e._v(" "),n("div",{staticClass:"sign-cert-main"},[n("a",{staticClass:"sign-cert-btn",attrs:{href:"/frontend/name_cert?from=sign"},on:{click:function(t){return e.cnzz("签约流程","实名认证","去认证")}}},[e._v("去认证")])]),e._v(" "),n("div",{staticClass:"sign-new-next"},[n("div",{staticClass:"sign-new-next-btn",class:{disable:!e.canNext},on:{click:e.nextStep}},[e._v("\n 下一步\n ")])])])}),[],!1,null,null,null).exports,f=(n(31),n(22),n(21),n(17),n(28),n(14));function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var _=[{value:"2",label:"求职"},{value:"4",label:"自由职业"},{value:"5",label:"正常工作"}],k={data:function(){var e=this;return{userType:0,rules:{nickname:[{required:!0,message:"请完善昵称信息",trigger:"blur"},{max:50,message:"昵称不得超过50字符",trigger:"blur"},{validator:function(t,n,r){console.log(e.regPhone),e.regPhone.test(n)?r(new Error("请不要使用手机号作为昵称")):r()},trigger:"blur"},{validator:function(t,n,r){e.regSpecialChar.test(n)?r(new Error("昵称不得使用特殊字符")):r()},trigger:"blur"}],type:[{required:!0,message:"请设置当前工作状态",trigger:"change"}],direction_op:[{required:!0,validator:function(t,n,r){e.form.direction_op&&e.form.occupation_op?r():r(new Error("请设置职业方向信息"))},trigger:"change"}],city_op_id:[{required:!0,validator:function(t,n,r){e.form.city_op_id&&e.form.occupation_op?r():r(new Error("请设置所在地区信息"))},trigger:"change"}],work_price:[{required:!0,message:"请设置日薪",trigger:"blur"},{validator:function(e,t,n){t<300||t>2e3?n(new Error("日薪只允许设置300--2000范围内的正整数")):n()},trigger:"blur"}]},userInfo:{},form:{nickname:"",type:"",work_price:300,occupation_op:"",direction_op:"",address:["",""],region:"",workday:!0,weekend:!1,workdayStart:"",workdayEnd:"",weekendStart:"",weekendEnd:"",dailyRate:"",workdayTime:"",province_op_id:"",city_op_id:""},editing:!1,types:_,directions:[],regions:[],provinces:[],cities:[]}},computed:h(h({},Object(f.c)(["regPhone","regSpecialChar"])),{},{subDirections:function(){var e=this.form.occupation_op,t=null;return this.directions.map((function(n){n.occupation_id===e&&(t=n)})),t?t.children:[]},typeShow:function(){for(var e=this.types,t=this.form.type,n="-",i=0,r=e.length;i<r;i++)e[i].value==t&&(n="".concat(e[i].label));return n},occupationShow:function(){for(var e=this.directions,t="-",i=0,n=e.length;i<n;i++)if(e[i].occupation_id==this.form.occupation_op)for(var r=e[i].children,o=0,c=r.length;o<c;o++)r[o].direction_id==this.form.direction_op&&(t="".concat(e[i].occupation_name," - ").concat(r[o].direction_name));return t},provinceShow:function(){for(var e=this.directions,t="-",i=0,n=e.length;i<n;i++)e[i].occupation_id==this.type&&(t="".concat(e[i].occupation_name));return t},canNext:function(){var e=this.form,t=e.nickname,n=e.occupation_op,r=e.direction_op,o=e.city_op_id,c=e.city_op,l=e.work_price;return""!==t&&""!==n&&""!==r&&""!==l&&""!==o&&""!==c}}),watch:{"form.occupation_op":function(){this.form.occupation_op!==this.userInfo.occupation_op&&(this.form.direction_op="")}},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getUserInfo();case 2:e.userInfo=t.sent,n=e.userInfo,console.log(n),e.form.nickname=n.nickname,e.form.type=n.type&&"0"!==n.type?n.type:"",e.form.occupation_op=n.occupation_op&&"0"!==n.occupation_op?n.occupation_op:"",e.form.direction_op=n.direction_op&&"0"!==n.direction_op?n.direction_op:"",e.form.work_price=n.work_price,e.form.province_op_id=n.province_op_id&&"0"!==n.province_op_id?n.province_op_id:"",e.form.city_op_id=n.city_op_id&&"0"!==n.city_op_id?n.city_op_id:"",(r=n.work_time_op)&&(r.weekend?(e.form.weekend=!0,e.form.weekendStart=r.weekend[0],e.form.weekendEnd=r.weekend[1]):e.form.weekend=!1,r.workday?(e.form.workday=!0,e.form.workdayStart=r.workday[0],e.form.workdayEnd=r.workday[1]):e.form.workday=!1),e.getDirection(),e.getProvinces(),e.form.province_op_id=e.form.province_op_id?e.form.province_op_id:"",e.form.province_op_id&&e.getCities(e.form.province_op_id,!0);case 18:case"end":return t.stop()}}),t)})))()},created:function(){this.cnzz("签约流程","基本信息","访问")},methods:{nextStep:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.canNext){t.next=3;break}return e.cnzz("签约流程","基本信息(下一步)","失败"),t.abrupt("return");case 3:return e.cnzz("签约流程","基本信息(下一步)","成功"),t.next=6,e.onSubmit();case 6:case"end":return t.stop()}}),t)})))()},onSubmit:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.form.validate(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n){var form,r,data,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return",!1);case 2:return form=e.form,r={},form.weekend&&(r.weekend=[form.weekendStart,form.weekendEnd]),form.workday&&(r.workday=[form.workdayStart,form.workdayEnd]),data={work_time_op:JSON.stringify(r),province_op_id:e.form.province_op_id,city_op_id:e.form.city_op_id,work_price:form.work_price,nickname:form.nickname,type:form.type,occupation_op:form.occupation_op,direction_op:form.direction_op},t.next=9,e.$axios.$post("/api/user/update_info",data);case 9:if(1!==(o=t.sent).status){t.next=16;break}e.$message.success("保存成功!"),e.editing=!1,e.$emit("next"),t.next=18;break;case 16:return e.aliyunLog("签约流程","基本信息(下一步)","服务器FAIL","",JSON.stringify(data),JSON.stringify(o)),t.abrupt("return",!1);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},getDirection:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/direction/get_all_data");case 2:n=t.sent,e.directions=n.data||[];case 4:case"end":return t.stop()}}),t)})))()},getProvinces:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/geo/get_province_list");case 2:n=t.sent,e.provinces=n.data||[];case 4:case"end":return t.stop()}}),t)})))()},getCities:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t||(n.form.city_op_id=""),r.next=3,n.$axios.$post("/api/geo/get_city_list_by_province",{prov_id:e});case 3:o=r.sent,n.cities=o.data||[],n.form.city_op=o.data[0].id;case 6:case"end":return r.stop()}}),r)})))()},onCancel:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.nickname=e.userInfo.nickname,e.form.type=e.userInfo.type,e.form.occupation_op=e.userInfo.occupation_op,e.form.direction_op=e.userInfo.direction_op,e.form.work_price=e.userInfo.work_price,(n=e.userInfo.work_time_op).weekend?(e.form.weekend=!0,e.form.weekendStart=n.weekend[0],e.form.weekendEnd=n.weekend[1]):e.form.weekend=!1,n.workday?(e.form.workday=!0,e.form.workdayStart=n.workday[0],e.form.workdayEnd=n.workday[1]):e.form.workday=!1;case 8:case"end":return t.stop()}}),t)})))()},changeUserType:function(e){1===e&&this.$router.push("/otherpage/companyComplete/add")}}},w=(n(1163),Object(d.a)(k,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sign-new-info"},[n("div",{staticClass:"sign-new-tips"},[e._v("\n 基本信息能让客栈和客户迅速了解你!信息完善将会优先派单!\n ")]),e._v(" "),n("el-radio-group",{staticClass:"user-types",on:{change:e.changeUserType},model:{value:e.userType,callback:function(t){e.userType=t},expression:"userType"}},[n("el-radio",{staticClass:"type",class:e.userType?"":"active",attrs:{label:0}},[e._v("个人开发者\n "),n("div",{staticClass:"info"},[e._v("\n 为个人开发者提供一对一专属客户服务。可承接远程兼职、驻场兼职、技能服务等业务。\n ")])]),e._v(" "),n("el-radio",{staticClass:"type",class:e.userType?"active":"",attrs:{label:1}},[e._v("企业、团队开发者\n "),n("div",{staticClass:"info"},[e._v("\n 给企业、团队开发者提供更强大的业务服务与管理能力,可对接整包开发业务,人力外包业务等。\n ")])])],1),e._v(" "),n("div",{staticClass:"edit"},[n("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"100px","label-position":"left"}},[n("el-form-item",{attrs:{label:"昵称",prop:"nickname"}},[n("el-input",{staticStyle:{width:"340px"},attrs:{maxlength:"50"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"工作状态",prop:"type"}},[n("el-select",{staticStyle:{width:"340px"},attrs:{placeholder:"请选择"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.types,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"职业方向",prop:"direction_op"}},[n("el-select",{staticStyle:{width:"340px"},attrs:{placeholder:"请选择"},model:{value:e.form.occupation_op,callback:function(t){e.$set(e.form,"occupation_op",t)},expression:"form.occupation_op"}},e._l(e.directions,(function(e){return n("el-option",{key:e.occupation_id,attrs:{label:e.occupation_name,value:e.occupation_id}})})),1),e._v(" "),n("el-select",{staticStyle:{width:"340px"},attrs:{placeholder:"请选择"},model:{value:e.form.direction_op,callback:function(t){e.$set(e.form,"direction_op",t)},expression:"form.direction_op"}},e._l(e.subDirections,(function(e){return n("el-option",{key:e.direction_id,attrs:{label:e.direction_name,value:e.direction_id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"所在地区",prop:"city_op_id"}},[n("el-select",{staticStyle:{width:"340px"},attrs:{placeholder:"请选择"},on:{change:e.getCities},model:{value:e.form.province_op_id,callback:function(t){e.$set(e.form,"province_op_id",t)},expression:"form.province_op_id"}},e._l(e.provinces,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),n("el-select",{staticStyle:{width:"340px"},attrs:{placeholder:"请选择"},model:{value:e.form.city_op_id,callback:function(t){e.$set(e.form,"city_op_id",t)},expression:"form.city_op_id"}},e._l(e.cities,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"可接受日薪",prop:"work_price"}},[n("el-input-number",{style:{width:"340px",marginRight:"10px"},attrs:{min:300,max:2e3,"controls-position":"right"},model:{value:e.form.work_price,callback:function(t){e.$set(e.form,"work_price",t)},expression:"form.work_price"}}),e._v("元/天(8小时-远程)\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"可工作时间",prop:"workday"}},[n("div",{staticClass:"times"},[n("el-checkbox",{attrs:{label:"工作日"},model:{value:e.form.workday,callback:function(t){e.$set(e.form,"workday",t)},expression:"form.workday"}}),e._v(" "),n("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:30",end:"24:00"},placeholder:"开始时间"},model:{value:e.form.workdayStart,callback:function(t){e.$set(e.form,"workdayStart",t)},expression:"form.workdayStart"}}),e._v(" "),n("span",{staticClass:"to"},[e._v("至")]),e._v(" "),n("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:30",end:"24:00"},placeholder:"结束时间"},model:{value:e.form.workdayEnd,callback:function(t){e.$set(e.form,"workdayEnd",t)},expression:"form.workdayEnd"}})],1),e._v(" "),n("div",{staticClass:"times"},[n("el-checkbox",{attrs:{label:"周末"},model:{value:e.form.weekend,callback:function(t){e.$set(e.form,"weekend",t)},expression:"form.weekend"}}),e._v(" "),n("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:30",end:"24:00"},placeholder:"开始时间"},model:{value:e.form.weekendStart,callback:function(t){e.$set(e.form,"weekendStart",t)},expression:"form.weekendStart"}}),e._v(" "),n("span",{staticClass:"to"},[e._v("至")]),e._v(" "),n("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:30",end:"24:00"},placeholder:"结束时间"},model:{value:e.form.weekendEnd,callback:function(t){e.$set(e.form,"weekendEnd",t)},expression:"form.weekendEnd"}})],1)])],1)],1),e._v(" "),n("div",{staticClass:"sign-new-next"},[n("div",{staticClass:"sign-new-next-btn",class:{disable:!e.canNext},on:{click:e.nextStep}},[e._v("\n 下一步\n ")])])],1)}),[],!1,null,"51c11beb",null).exports),y=(n(38),n(137)),x=(n(30),n(550)),j=n(669);function I(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function M(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?I(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):I(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var C={data:function(){return{editingModel:null,editingItem:[],rules:{name:""},education:[],current:null,originEducation:[],universities:[],loadingUniversity:!1,majors:[],loadingMajor:!1,educationBackgrounds:[],init:{diploma_photo:"",diploma_url:"",start_time:"",end_time:"",date:[],university:"",major:"",education_background:"",description:""}}},components:{uploader:x.a,dateRange:j.a},computed:M({},Object(f.c)(["userinfo"])),watch:{education:function(e){this.$emit("educationChange",e)}},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getData(),e.getEducationBackground();case 2:case"end":return t.stop()}}),t)})))()},methods:{onSubmit:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("submit!",t.education),t.education.length>10&&t.$message.error("最多可添加10项工作经历!"),data=t.education.map((function(e){var t={diploma_photo:e.diploma_photo,diploma_url:e.diploma_url,start_time:e.date[0],end_time:e.date[1],university:e.university,major:e.major,education_background:e.education_background,description:e.description};return e.id&&(t.id=e.id),M(M({},e),t)})),e.next=5,t.$axios.$post("/api/user_education/save_all",{data:JSON.stringify(data)});case 5:if(1!==e.sent.status){e.next=12;break}return t.$message.success("保存成功!"),t.getData(),e.abrupt("return",!0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})))()},getData:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,data,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user_education/list");case 2:n=t.sent,data=n.data||[],r=data.map((function(e){return M(M({},e),{},{date:[e.start_time||"",e.end_time||""]})})),console.log("education",r),e.education=r;case 7:case"end":return t.stop()}}),t)})))()},getEducationBackground:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/simple_data/select_education_background");case 2:n=t.sent,data=n.data||[],e.educationBackgrounds=data.map((function(e){return{value:e.id,label:e.name}}));case 5:case"end":return t.stop()}}),t)})))()},fetchUniversity:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,data;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.education[t].university=e,n.loadingUniversity=!0,r.next=4,n.$axios.$post("/api/simple_data/select_university",{keyword:e});case 4:o=r.sent,n.loadingUniversity=!1,data=o.data||[],n.universities=data.map((function(e){return{value:e.id,label:e.name}}));case 8:case"end":return r.stop()}}),r)})))()},fetchMajor:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.education[t].major=e,n.loadingMajor=!0,r.next=4,n.$axios.$post("/api/simple_data/select_major",{keyword:e});case 4:o=r.sent,n.loadingMajor=!1,c=o.data||[],n.majors=c.map((function(e){return{value:e.id,label:e.name}}));case 8:case"end":return r.stop()}}),r)})))()},handleRankClose:function(){this.rankForm={first:""}},handleRank:function(){this.rankDialog=!1},handleAdd:function(){if(this.userinfo&&"0"===this.userinfo.realname_verify_status)this.$message.error("请先进行实名认证");else if(this.editingItem.length>0&&!this.education[this.editingItem[0]].id)this.$message.error("请先保存现有修改");else{var e=JSON.parse(JSON.stringify(this.init));this.education.push(e),this.editingModel=e,this.editingItem=[this.education.length-1]}},handleImageUrl:function(e,t){this.education[e].diploma_photo=t},handleDelete:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.editingItem=[],t.education.splice(e,1),t.editingModel=null,n.next=5,t.onSubmit();case 5:case"end":return n.stop()}}),n)})))()},handleCancel:function(e,t){t.id?this.education.splice(e,1,this.editingModel):this.education.splice(e,1),this.editingItem=[],this.editingModel=null},handleConfirm:function(e,t){(this.cnzz("签约","签约页面+教育经历保存",""),t.date)?t.date&&t.date[0]&&t.date[1]&&t.date[0]>t.date[1]?this.$message.error("请设置开始时间小于结束时间!"):t.university&&t.major&&t.education_background?t.description.length>140?this.$message.error("教育经历不得多于140个字符"):this.onSubmit()&&(this.editingItem=[]):this.$message.error("请设置学校名称/专业/学历!"):this.$message.error("请设置开始时间/结束时间!")},editItem:function(e){if(this.userinfo&&"0"===this.userinfo.realname_verify_status)this.$message.error("请先进行实名认证");else{this.editingItem=[e];var t=this.education.slice(e,e+1)[0];this.editingModel=JSON.parse(JSON.stringify(t))}}}},O=(n(1164),Object(d.a)(C,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"education",attrs:{id:"education"}},[r("header",{staticClass:"sign-new-header"},[r("div",{staticClass:"sign-new-header-title"},[e._v("教育经历")]),e._v(" "),r("span",[r("el-button",{attrs:{type:"text",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("添加")])],1)]),e._v(" "),e.education.length>0?r("div",[e._l(e.education,(function(t,o){return[e.editingItem.indexOf(o)<0?r("div",{key:t.university,staticClass:"show"},[r("h4",[r("span",[e._v(e._s(t.start_time+" - "+(t.end_time||"至今")+" "+t.university+" "+t.major))]),e._v(" "),r("img",{staticClass:"sign-edit-icon",attrs:{src:n(666)},on:{click:function(t){return e.editItem(o)}}})])]):r("div",{key:"education"+o,staticClass:"edit"},[r("el-form",{ref:"form",refInFor:!0,attrs:{rules:e.rules,model:t,"label-width":"147px"}},[r("div",{staticClass:"header"},[r("date-range",{staticClass:"range",model:{value:t.date,callback:function(n){e.$set(t,"date",n)},expression:"item.date"}}),e._v(" "),r("el-select",{attrs:{"allow-create":"",filterable:"",remote:"","default-first-option":"",placeholder:"学校名称","remote-method":function(t){return e.fetchUniversity(t,o)},loading:e.loadingUniversity},model:{value:t.university,callback:function(n){e.$set(t,"university",n)},expression:"item.university"}},e._l(e.universities,(function(e){return r("el-option",{key:e.label,attrs:{label:e.label,value:e.label}})})),1),e._v(" "),r("el-select",{staticClass:"small",attrs:{"allow-create":"",filterable:"",remote:"","default-first-option":"",placeholder:"选择专业","remote-method":function(t){return e.fetchMajor(t,o)},loading:e.loadingMajor},model:{value:t.major,callback:function(n){e.$set(t,"major",n)},expression:"item.major"}},e._l(e.majors,(function(e){return r("el-option",{key:e.label,attrs:{label:e.label,value:e.label}})})),1),e._v(" "),r("el-select",{staticClass:"small",attrs:{placeholder:"学历"},model:{value:t.education_background,callback:function(n){e.$set(t,"education_background",n)},expression:"item.education_background"}},e._l(e.educationBackgrounds,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1)],1),e._v(" "),r("div",{staticClass:"content"},[r("el-input",{attrs:{type:"textarea",rows:7,maxlength:"140","show-word-limit":"",placeholder:"经历简介(选填)"},model:{value:t.description,callback:function(n){e.$set(t,"description",n)},expression:"item.description"}})],1),e._v(" "),r("footer",{staticClass:"sign-new-form-footer"},[r("div",{staticClass:"sign-new-form-tips"}),e._v(" "),r("div",{staticClass:"sign-new-btn-area"},[r("span",{staticClass:"opts"},[r("el-button",{attrs:{type:"danger"},on:{click:function(n){return e.handleDelete(o,t)}}},[e._v("删除")]),e._v(" "),r("el-button",{attrs:{type:"info"},on:{click:function(n){return e.handleCancel(o,t)}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(n){return e.handleConfirm(o,t)}}},[e._v("保存")])],1)])])])],1)]}))],2):r("div",{staticClass:"empty"},[e._v("点击右上角“添加”按钮添加教育经历")])])}),[],!1,null,"0e0cd1bc",null).exports),D=n(1021),S={props:["idx","item","handleDelete","handleCancel","handleConfirm"],components:{uploader:x.a,dateRange:j.a},data:function(){return{rules:{name:[{required:!0,message:"作品名称不得为空",trigger:"blur"},{max:50,message:"作品名称不得超过50字符",trigger:"blur"},{validator:function(e,t,n){/[&¥%\/\*]+/.test(t)?n(new Error("作品名称不包含特殊字符")):n()},trigger:"blur"}],description:[{required:!0,message:"作品简介不得为空",trigger:"blur"},{min:40,message:"作品简介不得低于40字符",trigger:"blur"}],industry_id:[{required:!0,message:"行业类型不得为空",trigger:"change"}],function_ops:[{required:!0,message:"关键功能不得为空",trigger:"change"}],duty:[{required:!0,message:"作品职责不得为空",trigger:"blur"},{min:15,message:"作品职责不得低于15字符",trigger:"blur"},{max:200,message:"作品职责不得高于200字符",trigger:"blur"}]},companys:[],company_scale:"",companySize:[{value:"1",label:"0-19人"},{value:"2",label:"20-99人"},{value:"3",label:"100-499人"},{value:"4",label:"500-2000人"},{value:"5",label:"2000人以上"}],loadingCompany:!1,titles:[],loadingTitle:!1}},computed:{},mounted:function(){return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},methods:{handleSubmit:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$refs.form.validate(function(){var n=Object(o.a)(regeneratorRuntime.mark((function n(r){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}console.log("submit!",t.item),t.item,t.onSubmit(t.item,e),n.next=8;break;case 6:return console.log("error submit!!"),n.abrupt("return",!1);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},fetchCompany:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,data;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.item.company=e,t.loadingCompany=!0,n.next=4,t.$axios.$post("/api/simple_data/select_company",{keyword:e});case 4:r=n.sent,t.loadingCompany=!1,data=r.data||[],t.companys=data.map((function(e){return{value:e.id,label:e.name}}));case 8:case"end":return n.stop()}}),n)})))()},fetchTitle:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,data;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.item.title=e,t.loadingTitle=!0,n.next=4,t.$axios.$post("/api/simple_data/select_title",{keyword:e});case 4:r=n.sent,t.loadingTitle=!1,data=r.data||[],t.titles=data.map((function(e){return{value:e.id,label:e.name}}));case 8:case"end":return n.stop()}}),n)})))()},handleImageUrl:function(e,t){this.item.work_certify_img=t}}},E=(n(1165),Object(d.a)(S,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sign-new-work-experience-form"},[n("el-form",{ref:"form",attrs:{rules:e.rules,model:e.item,"label-width":"147px"}},[n("div",{staticClass:"header"},[n("date-range",{staticClass:"range",model:{value:e.item.date,callback:function(t){e.$set(e.item,"date",t)},expression:"item.date"}}),e._v(" "),n("el-select",{attrs:{"allow-create":"",filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入公司名称","remote-method":e.fetchCompany,loading:e.loadingCompany},model:{value:e.item.company,callback:function(t){e.$set(e.item,"company",t)},expression:"item.company"}},e._l(e.companys,(function(e){return n("el-option",{key:e.label,attrs:{label:e.label,value:e.label}})})),1),e._v(" "),n("el-select",{attrs:{placeholder:"公司规模"},model:{value:e.item.company_scale,callback:function(t){e.$set(e.item,"company_scale",t)},expression:"item.company_scale"}},e._l(e.companySize,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),n("el-select",{attrs:{"allow-create":"",filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入职位","remote-method":e.fetchTitle,loading:e.loadingTitle},model:{value:e.item.title,callback:function(t){e.$set(e.item,"title",t)},expression:"item.title"}},e._l(e.titles,(function(e){return n("el-option",{key:e.label,attrs:{label:e.label,value:e.label}})})),1)],1),e._v(" "),n("div",{staticClass:"content"},[n("el-input",{attrs:{type:"textarea",rows:7,maxlength:"5000",minlength:"40",placeholder:"可简要描述公司主要业务,我的职责和工作内容,字数要求:40-5000字符","show-word-limit":""},model:{value:e.item.description,callback:function(t){e.$set(e.item,"description",t)},expression:"item.description"}})],1),e._v(" "),n("footer",{staticClass:"sign-new-form-footer"},[n("div",{staticClass:"sign-new-form-tips"}),e._v(" "),n("div",{staticClass:"sign-new-btn-area"},[n("span",{staticClass:"opts"},[n("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.handleDelete(e.item,e.idx)}}},[e._v("删除")]),e._v(" "),n("el-button",{attrs:{type:"info"},on:{click:function(t){return e.handleCancel(e.item,e.idx)}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(e.item,e.idx)}}},[e._v("保存")])],1)])])])],1)}),[],!1,null,"3bb8b142",null).exports);function N(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function z(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?N(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):N(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var $={data:function(){return{editingItem:[],rules:{},init:{work_certify_img:"",start_time:"",date:[],end_time:"",company:"",title:"",is_main:0,description:""},experience:[],originExperience:[],current:null,rankDialog:!1,rankForm:{first:""}}},components:{experienceForm:D.a,stepExperienceForm:E},computed:z({},Object(f.c)(["userinfo"])),watch:{experience:function(e){this.$emit("workExperienceChange",e)}},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getData();case 1:case"end":return t.stop()}}),t)})))()},methods:{onSubmit:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("submit!",e.originExperience),e.originExperience.length>10&&e.$message.error("最多可添加10项工作经历!"),t.next=4,e.$axios.$post("/api/user_experience/save_all",{data:JSON.stringify(e.originExperience)});case 4:1===(n=t.sent).status?(e.$message.success("保存成功!"),e.getData()):(2===n.status&&n.info.indexOf("管理员审核"),e.getData());case 6:case"end":return t.stop()}}),t)})))()},getData:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,data,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user_experience/get_my_list");case 2:n=t.sent,data=n.data||[],r=data.map((function(t,n){return"1"==t.is_main&&(e.rankForm.first=t.id),z(z({},t),{},{date:[t.start_time,t.end_time]})})),e.experience=r,e.originExperience=data;case 7:case"end":return t.stop()}}),t)})))()},handleRankClose:function(){this.rankDialog=!1},handleRank:function(){var e=this,t=0;this.experience.map((function(n,r){return n.id==e.rankForm.first&&(t=r),n})),this.originExperience.forEach((function(e,n){e.is_main=t===n?1:0})),this.onSubmit(),this.rankDialog=!1},handleAdd:function(){if(this.userinfo&&"0"===this.userinfo.realname_verify_status)this.$message.error("请先进行实名认证");else if(this.editingItem.length>0&&!this.experience[this.editingItem[0]].id)this.$message.error("请先保存现有修改");else{var e=JSON.parse(JSON.stringify(this.init));this.experience.push(e),this.editingItem=[this.experience.length-1]}},handleDelete:function(e,t){this.experience.splice(t,1),this.originExperience.splice(t,1),this.editingItem=[],this.onSubmit()},handleCancel:function(e,t){var n=this.originExperience.slice(t,t+1)[0];if(n){var r=JSON.parse(JSON.stringify(n));r.date=[n.start_time,n.end_time],this.editingItem=[],e.id?this.experience.splice(t,1,r):this.experience.splice(t,1)}else this.editingItem=[],this.experience.splice(t,1)},handleConfirm:function(e,t){this.cnzz("签约","签约页面+工作经历保存","");var n=this.originExperience.slice(t,t+1)[0],r=JSON.parse(JSON.stringify(e));delete r.date,JSON.stringify(r)!=JSON.stringify(n)?(console.log(e.date),e.date?e.date&&e.date[0]&&e.date[1]&&e.date[0]>e.date[1]?this.$message.error("请设置开始时间小于结束时间!"):e.company&&e.title?!e.description||e.description.length<40?this.$message.error("经历描述不少于40字符!"):(this.editingItem=[],e.start_time=e.date[0],e.end_time=e.date[1],this.originExperience.splice(t,1,e),this.onSubmit()):this.$message.error("请设置公司名称/职位!"):this.$message.error("请设置开始时间/结束时间!")):this.$message.error("请修改后保存!")},editItem:function(e,t){this.rankDialog=!1,this.editingItem=[t]},showRankDialog:function(){if(this.experience.length<1)return this.$message.error("请先添加工作经历"),!1;this.rankDialog=!0}}},L=(n(1166),Object(d.a)($,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"info",attrs:{id:"workexp"}},[r("header",{staticClass:"sign-new-header"},[r("div",{staticClass:"sign-new-header-title"},[e._v("工作经历")]),e._v(" "),r("span",[e.experience.length>0?r("el-button",{attrs:{type:"text"},on:{click:e.showRankDialog}},[e._v("设置优先展示")]):e._e(),e._v(" "),r("el-dialog",{attrs:{title:"设置优先展示工作经历",visible:e.rankDialog,"before-close":e.handleRankClose},on:{"update:visible":function(t){e.rankDialog=t}}},[r("el-form",{ref:"form",staticClass:"first-form",attrs:{model:e.rankForm}},[r("el-radio-group",{model:{value:e.rankForm.first,callback:function(t){e.$set(e.rankForm,"first",t)},expression:"rankForm.first"}},[e._l(e.experience,(function(t,n){return[r("el-radio",{key:t.id,attrs:{label:t.id,value:t.id}},[r("div",{staticClass:"first-radio"},[r("span",{staticClass:"des"},[r("span",[e._v(e._s(t.company))]),e._v(" "),r("span",[e._v(e._s(t.title))])]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.editItem(t,n)}}},[e._v("编辑")])],1)])]}))],2)],1),e._v(" "),r("div",{staticClass:"first-tips"},[r("h6",[e._v("温馨提示")]),e._v(" "),r("p",[e._v('\n 1.\n 只有上传过工作证明且通过认证的工作经历,才可选择设置为"优先展示工作经历"\n '),r("br"),e._v('2. 修改公司,\n 职位信息,"保存"成功后,客栈将在一个工作日内完成审核,审核通过后,即可生效\n ')])]),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.rankDialog=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleRank}},[e._v("确 定")])],1)],1),e._v(" "),r("el-button",{attrs:{type:"text",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("添加")])],1)]),e._v(" "),e.experience.length>0?r("div",[e._l(e.experience,(function(t,o){return[e.editingItem.indexOf(o)<0?r("div",{key:t.id,staticClass:"show"},[r("h4",[r("span",[e._v(e._s(t.start_time+" - "+(t.end_time||"至今")+" "+t.company+" "+t.title))]),e._v(" "),"1"==t.is_main?r("span",{staticClass:"first"},[e._v("优先展示")]):e._e(),e._v(" "),1==t.isAuth?r("span",{staticClass:"verify"},[e._v("已认证")]):e._e(),e._v(" "),r("img",{staticClass:"sign-edit-icon",attrs:{src:n(666)},on:{click:function(n){return e.editItem(t,o)}}})]),e._v(" "),r("p",[e._v(e._s(t.description))])]):r("stepExperienceForm",{key:"experience"+o,attrs:{idx:o,item:t,handleCancel:e.handleCancel,handleConfirm:e.handleConfirm,handleDelete:e.handleDelete}})]}))],2):r("div",{staticClass:"empty"},[e._v("点击右上角“添加”按钮添加工作经历")])])}),[],!1,null,"2fcc6ceb",null).exports),R=(n(95),n(575),{data:function(){return{editingItem:[],rules:{},init:{skill_name:"123",skill_level:"",skill_id:""},skills:[],originSkills:[],current:null,skillList:[],loadingSkill:!1}},components:{uploader:x.a},computed:{},watch:{skills:function(e){this.$emit("skillsChange",e)}},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getData(),e.fetchSkill();case 2:case"end":return t.stop()}}),t)})))()},methods:{getData:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user_skills/list_by_user");case 2:n=t.sent,e.skills=n.data||[];case 4:case"end":return t.stop()}}),t)})))()},onSubmit:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,data;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.cnzz("签约","签约页面+技能保存",""),console.log("submit!",e),e.skill_name){r.next=5;break}return n.$message.error("请填写技能名称!"),r.abrupt("return");case 5:if(e.skill_level){r.next=8;break}return n.$message.error("请选择技能自评!"),r.abrupt("return");case 8:return e.skill_name.indexOf(",")>-1&&(o=e.skill_name.split(","),console.log(o),e.skill_name=o[o.length-1],console.log("--------------",e.skill_name)),e.skill_name instanceof Array&&e.skill_name.length>0&&(e.skill_name=e.skill_name[e.skill_name.length-1]),data={skill_level:e.skill_level,skill_name:e.skill_name},e.skill_id&&(data.skill_id=e.skill_id),e.id&&(data.id=e.id),r.next=15,n.$axios.$post("/api/user_skills/save",data);case 15:1===r.sent.status&&(n.$message.success("保存成功!"),n.init={skill_name:"",skill_level:"",skill_id:""},n.editingItem=[],n.originSkills.splice(t,1,e));case 17:case"end":return r.stop()}}),r)})))()},fetchSkill:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,data;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loadingSkill=!0,n.next=3,t.$axios.$post("api/userSkills/getSkillList",{keyword:e});case 3:r=n.sent,t.loadingSkill=!1,data=r.data||[],t.skillList=data.map((function(e){var t=[];return e.child&&e.child.length>0&&(t=e.child.map((function(e){return{label:e.skill_name,value:e.skill_name}}))),{value:e.occupation_name,label:e.occupation_name,children:t}}));case 7:case"end":return n.stop()}}),n)})))()},handleAdd:function(){this.editingItem.length>0&&!this.skills[this.editingItem[0]].id?this.$message.error("请先保存现有修改"):(this.skills.push(this.init),this.editingItem=[this.skills.length-1])},handleDelete:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:c=function(){n.$message({type:"success",message:"删除成功!"}),n.skills.splice(t,1),n.editingItem=[]},n.$confirm("确认删除该技能?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.id){t.next=7;break}return t.next=3,n.$axios.$post("/api/user_skills/delete",{id:e.id});case 3:1===t.sent.status&&(c(),n.getData()),t.next=8;break;case 7:c();case 8:case"end":return t.stop()}}),t)})))).catch((function(e){console.log(e),n.$message({type:"info",message:"已取消删除"})}));case 2:case"end":return r.stop()}}),r)})))()},handleCancel:function(e,t){this.editingItem=[],e.skill_id||this.skills.splice(t,1)},editItem:function(e){console.log("editItem:"+e),this.editingItem=[e]}}}),A=(n(1167),n(1168),Object(d.a)(R,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sign-new-skills",attrs:{id:"skill"}},[r("header",{staticClass:"sign-new-header"},[r("div",{staticClass:"sign-new-header-title"},[e._v("技能")]),e._v(" "),r("span",[r("el-button",{attrs:{type:"text",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("添加")])],1)]),e._v(" "),e.skills.length>0?r("div",[e._l(e.skills,(function(t,o){return[e.editingItem.indexOf(o)<0?r("div",{key:t.skill_name,staticClass:"show"},[r("h4",[r("span",[e._v(e._s("技能名称: "+t.skill_name+" 经验自评:"+t.skill_level+"分 "))]),e._v(" "),r("img",{staticClass:"sign-edit-icon",attrs:{src:n(666)},on:{click:function(t){return e.editItem(o)}}})])]):r("div",{key:"skill_"+t.skill_id,staticClass:"edit"},[r("el-form",{ref:"form",refInFor:!0,attrs:{rules:e.rules,model:t,"label-width":"80px","label-position":"left"}},[r("div",{staticClass:"header"},[r("el-form-item",{attrs:{label:"技能名称:",prop:"skill_name"}},[r("el-cascader",{attrs:{"show-all-levels":!1,placeholder:t.skill_name||"请选择单个技能",options:e.skillList,props:{expandTrigger:"hover",emitPath:"false"}},model:{value:t.skill_name,callback:function(n){e.$set(t,"skill_name",n)},expression:"item.skill_name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"经验自评:",prop:"skill_level"}},[r("el-select",{style:{width:"130px"},attrs:{placeholder:"选择分数"},model:{value:t.skill_level,callback:function(n){e.$set(t,"skill_level",n)},expression:"item.skill_level"}},e._l(5,(function(e){return r("el-option",{key:e,attrs:{label:e+"分",value:e}})})),1)],1),e._v(" "),r("span",{staticClass:"tips"},[e._v("1分为新入门,5分为满分")])],1)]),e._v(" "),r("div",{staticClass:"sign-new-skill-btn"},[r("span",{staticClass:"opts"},[r("el-button",{attrs:{type:"danger"},on:{click:function(n){return e.handleDelete(t,o)}}},[e._v("删除")]),e._v(" "),r("el-button",{attrs:{type:"info"},on:{click:function(n){return e.handleCancel(t,o)}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(n){return e.onSubmit(t,o)}}},[e._v("保存")])],1)])],1)]}))],2):r("div",{staticClass:"empty"},[e._v("点击右上角“添加”按钮添加技能")])])}),[],!1,null,"2563583a",null).exports);function T(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var P={data:function(){return{editing:!1,content:"",placeholder:"我是程序员客栈的【昵称】,一名【二级方向】;\n我毕业于【大学名称】,担任过【公司1】的【职位】,担任过【公司2】的【职位】;\n负责过【项目1名称】,【项目2名称】,【项目3名称】的开发;\n熟练使用【技术栈1】,【技术栈2】,【技术栈3】,【技术栈4】,【技术栈5】;\n如果我能帮上您的忙,请点击“立即预约”或“发布需求”!",editContent:""}},components:{editor:n(551).a},watch:{content:function(e){this.$emit("profileChange",e)}},computed:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?T(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):T(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},Object(f.c)(["userinfo"])),mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user/get_resume");case 2:n=t.sent,e.content=n.data?n.data.personaldetails:"";case 4:case"end":return t.stop()}}),t)})))()},methods:{handleEdit:function(){this.userinfo&&"0"===this.userinfo.realname_verify_status?this.$message.error("请先进行实名认证"):(this.editing=!0,this.editContent=this.content)},handleChange:function(e){this.content=e},cancelEdit:function(){this.content=this.editContent,this.editing=!1},onSubmit:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.cnzz("签约","签约页面+个人介绍保存",""),n={personaldetails:e.content||""},t.next=4,e.$axios.$post("/api/user/update_resume",n);case 4:1===(r=t.sent).status?(e.$message.success("保存成功!"),e.editing=!1):e.$message.error(r.info);case 6:case"end":return t.stop()}}),t)})))()},useTemplate:function(){this.content=this.placeholder}}},Z=(n(1169),{components:{stepEducation:O,stepWorkExperienceVue:L,stepSkills:A,stepProfile:Object(d.a)(P,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sign-new-profile",attrs:{id:"profile"}},[n("header",{staticClass:"sign-new-header"},[n("div",{staticClass:"sign-new-header-title"},[e._v("个人介绍(选填)")]),e._v(" "),e.editing?n("div",{staticClass:"opts"},[n("el-button",{staticClass:"sign-new-profile-btn",attrs:{type:"primary"},on:{click:e.useTemplate}},[e._v("使用模板")]),e._v(" "),n("el-button",{staticClass:"sign-new-profile-btn",attrs:{type:"info"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),n("el-button",{staticClass:"sign-new-profile-btn",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1):n("div",{staticClass:"opts"},[n("el-button",{staticClass:"sign-new-profile-btn",attrs:{type:"primary"},on:{click:e.handleEdit}},[e._v("编辑")])],1)]),e._v(" "),n("div",{staticClass:"sign-new-profile-main"},[e.content||e.editing?e.editing?n("div",{staticClass:"edit"},[n("editor",{attrs:{hideImage:!0,content:e.content,placeholder:e.placeholder},on:{change:e.handleChange}})],1):n("div",{staticClass:"show ql-snow ql-editor",domProps:{innerHTML:e._s(e.content)}}):n("div",{staticClass:"empty"},[e._v("\n 点击右上角“编辑”按钮添加个人介绍\n ")])])])}),[],!1,null,null,null).exports},data:function(){return{education:[],workExperience:[],skills:[],profile:""}},computed:{canFinish:function(){return this.education.length>0&&this.workExperience.length>0&&this.skills.length>0}},mounted:function(){this.cnzz("签约流程","最后一步","访问")},methods:{educationChange:function(e){this.education=Object(y.a)(e)},workExperienceChange:function(e){this.workExperience=Object(y.a)(e)},skillsChange:function(e){this.skills=Object(y.a)(e)},profileChange:function(e){this.profile=e},nextStep:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.canFinish){t.next=3;break}return e.cnzz("签约流程","完成签约","资料未完善"),t.abrupt("return");case 3:return e.cnzz("签约流程","完成签约","提交"),n=e,t.next=7,e.$axios.$post("/api/user/sign",{});case 7:1===t.sent.status&&(e.cnzz("签约流程","完成签约","提交成功"),e.$alert("签约提交成功,等待后台审核","",{type:"success",callback:function(){n.$router.replace({path:"/frontend/developer"})}}));case 9:case"end":return t.stop()}}),t)})))()}}}),G=(n(1170),Object(d.a)(Z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sign-new-experience"},[e._m(0),e._v(" "),n("div",{staticClass:"sign-experience-main"},[n("div",{staticClass:"sign-experience-item"},[n("stepEducation",{on:{educationChange:e.educationChange}})],1),e._v(" "),n("div",{staticClass:"sign-experience-item"},[n("stepWorkExperienceVue",{on:{workExperienceChange:e.workExperienceChange}})],1),e._v(" "),n("div",{staticClass:"sign-experience-item"},[n("stepSkills",{on:{skillsChange:e.skillsChange}})],1),e._v(" "),n("div",{staticClass:"sign-experience-item"},[n("stepProfile",{on:{profileChange:e.profileChange}})],1)]),e._v(" "),n("div",{staticClass:"sign-new-next"},[n("div",{staticClass:"sign-new-next-btn",class:{disable:!e.canFinish},on:{click:e.nextStep}},[e._v("\n 完成签约\n ")])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"sign-new-tips"},[this._v("\n 完善经历和技能信息,尤其"),t("b",[this._v("技能")]),this._v("信息将直接用于"),t("b",[this._v("派单匹配")]),this._v(",确保准确,完善\n ")])}],!1,null,null,null).exports);n(244);function Y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function B(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Y(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var J,F={data:function(){return{editingItem:[],init:{name:"",industry_id:"",function_ops:"",duty:"",description:"",url:"",image_list:[]},works:[],current:null,originWorks:[],industries:[],functions:[]}},components:{workForm:n(1022).a},computed:B(B({},Object(f.c)(["userinfo"])),{},{canNext:function(){return this.works.length>=3}}),watch:{},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getIndustry();case 2:e.getFunction(),e.getData();case 4:case"end":return t.stop()}}),t)})))()},created:function(){this.cnzz("签约流程","作品页面","访问")},methods:{nextStep:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.canNext){t.next=3;break}return e.cnzz("签约流程","作品页面(下一步)","失败"),t.abrupt("return");case 3:e.cnzz("签约流程","作品页面(下一步)","成功"),e.$emit("next");case 5:case"end":return t.stop()}}),t)})))()},onSubmit:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=B(B({},e),{},{function_ops:e.function_ops.join(","),industry_id:parseInt(e.industry_id[1]),image_list:e.image_list.map((function(e){return e.url})).join(",")}),t.next=3,n.$axios.$post("/api/user_works/save",r);case 3:1===t.sent.status&&(n.$message.success("保存成功!"),n.init={name:"",industry_id:"",function_ops:"",duty:"",description:"",url:"",image_list:[]},n.editingItem=[],n.getData());case 5:case"end":return t.stop()}}),t)})))()},getData:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user_works/get_list");case 2:n=t.sent,data=n.data?n.data:[],e.works=data.map((function(t){var n,r=t.image_list?t.image_list.split(",").map((function(e){return{name:e,url:e}})):[];return e.industries.map((function(e){return e.children.map((function(r){r.value==t.industry_id&&(n=[e.value,r.value])}))})),console.log(n),B(B({},t),{},{industry_id:n,function_ops:t.function_ops?t.function_ops.split(","):[],image_list:r})}));case 5:case"end":return t.stop()}}),t)})))()},getIndustry:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user_works/get_industry");case 2:return n=t.sent,data=n.data?n.data:[],e.industries=data.map((function(e){return{label:e.name,value:e.id,children:e.child.map((function(e){return{label:e.name,value:e.id}}))}})),t.abrupt("return",e.industries);case 6:case"end":return t.stop()}}),t)})))()},getFunction:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user_works/get_function");case 2:n=t.sent,data=n.data?n.data:[],e.functions=data.map((function(e){return{label:e.outsourcefunc_name,value:e.outsourcefunc_id}}));case 5:case"end":return t.stop()}}),t)})))()},fetchWork:function(e){return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},handleAdd:function(){this.cnzz("签约流程","作品页面","添加作品"),this.userinfo&&"0"===this.userinfo.realname_verify_status?this.$message.error("请先进行实名认证"):this.editingItem.length>0&&!this.works[this.editingItem[0]].id?this.$message.error("请先保存现有修改"):5!=this.works.length?window.location.href="/web/works_create?from=sign":this.$message.error("最多填写5个作品")},handleDelete:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:c=function(){n.$message({type:"success",message:"删除成功!"}),n.works.splice(t,1),n.editingItem=[]},n.$confirm("确认删除该作品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.wid){t.next=7;break}return t.next=3,n.$axios.$post("/api/user_works/delete",{id:e.wid});case 3:1===t.sent.status&&(c(),n.getData()),t.next=8;break;case 7:c();case 8:case"end":return t.stop()}}),t)})))).catch((function(e){console.log(e),n.$message({type:"info",message:"已取消删除"})}));case 2:case"end":return r.stop()}}),r)})))()},handleCancel:function(e,t){this.editingItem=[],e.wid||this.works.splice(t,1)},editItem:function(e){window.location.href="/web/works_create/"+this.works[e].wid+"&from=sign"}}},H=(n(1175),Object(d.a)(F,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sign-new-project"},[e._m(0),e._v(" "),r("div",{staticClass:"sign-project-main"},[e._m(1),e._v(" "),r("section",{staticClass:"sign-new-works-list"},[r("div",[e._l(e.works,(function(t,o){return[e.editingItem.indexOf(o)<0?r("div",{key:"works_"+o,staticClass:"show"},[e.works[o].image_list&&e.works[o].image_list[0]?r("span",{staticClass:"image",style:{"background-image":"url('"+e.works[o].image_list[0].url+"')"}}):e._e(),e._v(" "),r("div",{staticClass:"des"},[r("div",{staticClass:"des-title"},[r("div",{staticClass:"des-title-name text-line-1"},[e._v(e._s(t.name))]),e._v(" "),r("div",{staticClass:"des-title-time"},[e._v(e._s(t.update_time_name))])]),e._v(" "),r("div",{staticClass:"des-content text-line-3"},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),r("div",{staticClass:"des-state"},[r("div",{staticClass:"des-state-item fl"},[r("img",{staticClass:"des-state-icon",attrs:{src:n(1171)}}),e._v(" "),r("span",[e._v(e._s(t.browse))])]),e._v(" "),r("div",{staticClass:"des-state-item fl"},[r("img",{staticClass:"des-state-icon",attrs:{src:n(1172)}}),e._v(" "),r("span",[e._v(e._s(t.hit))])]),e._v(" "),r("div",{staticClass:"des-state-item fr",on:{click:function(n){return e.handleDelete(t,o)}}},[r("img",{staticClass:"des-state-icon",attrs:{src:n(1173)}})]),e._v(" "),r("div",{staticClass:"des-state-item fr",on:{click:function(t){return e.editItem(o)}}},[r("img",{staticClass:"des-state-icon",attrs:{src:n(666)}})])])])]):r("work-form",{key:"works_edit_"+o,attrs:{idx:o,work:e.works[o],industries:e.industries,functions:e.functions,handleCancel:e.handleCancel,onSubmit:e.onSubmit,handleDelete:e.handleDelete}})]})),e._v(" "),r("div",{staticClass:"sign-new-project-add",on:{click:e.handleAdd}},[r("img",{staticClass:"sign-new-project-add-icon",attrs:{src:n(1174)}}),e._v(" "),r("div",{staticClass:"sign-new-project-add-tips"},[e._v("添加作品")])])],2)])]),e._v(" "),r("div",{staticClass:"sign-new-next"},[r("div",{staticClass:"sign-new-next-btn",class:{disable:!e.canNext},on:{click:e.nextStep}},[e._v("\n 下一步\n ")])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"sign-new-tips"},[this._v("\n 项目是最重要的信息;据客栈统计,"),t("b",[this._v("83%")]),this._v("的客户特别倾向有类似项目经历,且信息完善的开发者!\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("header",{staticClass:"sign-new-header"},[t("div",{staticClass:"sign-new-header-title"},[this._v("作品(3-5个项目)")])])}],!1,null,null,null).exports),Q=(J={head:{title:"申请签约 - 程序员客栈"},components:{showToast:c.a,stepCert:m,stepInfo:w,stepExperienceVue:G,stepProject:H},data:function(){return{sign:null,isShowToast:!1,userInfo:{},target:0,curStep:0,curStep_show:!1,stepState:{1:{progress:40},2:{progress:70},3:{progress:90},4:{progress:100}}}},created:function(){return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setFrom(),t.next=3,e.needLogin();case 3:if(e.userInfo=t.sent,2!=e.userInfo.user_type){t.next=11;break}if(2==e.userInfo.realname_verify_status){t.next=9;break}e.$router.push("/frontend/name_cert?from=sign"),t.next=11;break;case 9:return location.href="/business/add",t.abrupt("return");case 11:2==e.userInfo.realname_verify_status&&1==e.curStep&&(e.curStep=2);case 12:case"end":return t.stop()}}),t)})))()},methods:{nextStep:function(){4!==this.curStep&&this.$router.push({path:"/sign/new_v2",query:{step:this.curStep+1}})},signNow:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$post("/api/user/sign");case 2:1===(n=t.sent).status?(e.$message.success(n.info),e.isShowToast=!0):-11===n.status||n.status;case 4:case"end":return t.stop()}}),t)})))()},setFrom:function(){var e="";switch(this.$route.query.from||this.$route.params.from){case"wo_intro":e=document.getElementById("profile");break;case"wo_workexp":e=document.getElementById("workexp");break;case"wo_edu":e=document.getElementById("education");break;case"wo_skill":e=document.getElementById("skill");break;case"works":e=document.getElementById("works")}e&&setTimeout((function(){e.scrollIntoView()}),600)},jumpToCredit:function(){location.href="/credit/pages"},onToastClose:function(){this.isShowToast=!1,window.location.reload()}},watchQuery:!0},Object(r.a)(J,"watchQuery",["step"]),Object(r.a)(J,"asyncData",(function(e){e.params;var t=e.query,n=Number(t.step);return isNaN(n)&&(n=1),{curStep:n}})),J),W=(n(1176),Object(d.a)(Q,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sign-new"},[n("h6",{staticClass:"sign-new-title"},[e._v("签约成为远程工作者")]),e._v(" "),n("div",{staticClass:"sign-new-main"},[n("div",{staticClass:"sign-progress"},[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":30,percentage:e.stepState[e.curStep].progress,color:"#45C47A"}})],1),e._v(" "),n("div",{staticClass:"sign-new-container"},[1===e.curStep?n("stepCert",{on:{next:e.nextStep}}):e._e(),e._v(" "),2===e.curStep?n("stepInfo",{on:{next:e.nextStep}}):e._e(),e._v(" "),3===e.curStep?n("stepProject",{on:{next:e.nextStep}}):e._e(),e._v(" "),4===e.curStep?n("stepExperienceVue",{on:{next:e.nextStep}}):e._e()],1)])])}),[],!1,null,null,null));t.default=W.exports},666:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNLS4wMDEgMGgxNnYxNmgtMTZ6Ii8+PHBhdGggZD0iTTcuMTUgOC4wNjJMNi43MiA5LjE1YS4xNjcuMTY3IDAgMDAuMjIxLjIxNUw4IDguOTFsNi4wNzYtNi4xYS42MDEuNjAxIDAgMDAtLjg0Ny0uODQ5bC0uMDAxLjAwMS02LjA3NiA2LjF6IiBmaWxsPSIjMzA4RUZGIi8+PHBhdGggZD0iTTEuNTE0IDEzLjQ4NFYyLjUxNGExIDEgMCAwMTEtMWg1LjIwM2EuNi42IDAgMTEwIDEuMmgtNC42N2EuMzMzLjMzMyAwIDAwLS4zMzMuMzM0djkuOTAyYzAgLjE4NC4xNDkuMzM0LjMzMy4zMzRsOS45MDQtLjAxM2MuMTg0IDAgLjMzMy0uMTQ5LjMzMy0uMzMzVjguMjVhLjYuNiAwIDAxMS4yIDB2NS4yMmExIDEgMCAwMS0uOTk5IDFsLTEwLjk3LjAxNGExIDEgMCAwMS0xLjAwMS0xeiIgZmlsbD0iIzMwOEVGRiIvPjwvZz48L3N2Zz4="},825:function(e,t,n){},826:function(e,t,n){},827:function(e,t,n){},828:function(e,t,n){},829:function(e,t,n){},830:function(e,t,n){},831:function(e,t,n){},832:function(e,t,n){},833:function(e,t,n){},834:function(e,t,n){},835:function(e,t,n){}}]);
|