index-legacy.f53be176.js 20 KB

1
  1. !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function a(t,a,r){return(a=function(t){var a=function(t,a){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,a||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"===e(a)?a:String(a)}(a))in t?Object.defineProperty(t,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[a]=r,t}System.register(["./changeAvatar-legacy.1be81367.js","./index-legacy.88892f9c.js","./edit-legacy.c2dfe0c3.js","./upload-gray-legacy.1763eecb.js"],(function(e,r){"use strict";var o,n,i,s,c,p,l,m,d,u=document.createElement("style");return u.textContent=".space-person a:hover{text-decoration:underline}.space-person .form .change.el-button.is-disabled{opacity:1;color:var(--color-black);border:1px solid #EDEDED;background:#EDEDED}.space-person[data-v-65bf6317]{width:330px;color:var(--color-black)}.space-person .top .title[data-v-65bf6317]{font-size:14px;line-height:20px;margin-bottom:23px}.space-person .top .title b[data-v-65bf6317]{font-size:22px;line-height:30px;margin-bottom:8px;display:block}.top .member .edit-region[data-v-65bf6317]{position:relative}.space-person .top .member[data-v-65bf6317]{display:flex}.top .member .tip-btn[data-v-65bf6317]{position:absolute;top:0;left:46px;display:none}.top .member .edit-region:hover .tip-btn[data-v-65bf6317]{display:block}.space-person .top .member .tip-btn .el-button[data-v-65bf6317]{width:auto;height:32px;padding:0 10px;font-size:12px;color:var(--color-white);background:var(--color-black);border:1px solid var(--color-black);border-radius:6px}.space-person .top .member .el-button[data-v-65bf6317]{width:96px;height:35px;font-size:14px;color:var(--color-white);border:1px solid #34B70E;background:#34B70E;border-radius:6px;margin-right:30px}.space-person .top .member img[data-v-65bf6317]{width:36px;height:36px;cursor:pointer}.space-person .thumb[data-v-65bf6317]{display:flex;align-items:center;margin:65px 0 31px}.space-person .thumb img[data-v-65bf6317]{width:72px;height:72px;margin-right:19px;border-radius:50%}.space-person .thumb .el-button[data-v-65bf6317]{width:60px;height:29px;color:var(--color-black);font-size:14px;border:1px solid #F8F8FA;background:#F8F8FA;border-radius:15px}.space-person .form .reset[data-v-65bf6317],.space-person .form .change[data-v-65bf6317]{width:62px;height:35px;color:var(--color-black);font-size:14px;border:1px solid #EDEDED;background:#EDEDED;border-radius:19px;margin-left:0}.space-person .form .reset[data-v-65bf6317]:hover{background:#F0F0F2}.space-person .form .change[data-v-65bf6317]:hover{color:var(--color-white);background:#E52A1A}.space-person .form .change[data-v-65bf6317]{color:var(--color-white);background:var(--color-red)}.space-person .form .reset[data-v-65bf6317]{margin-right:25px}.space-person .form .el-form-item[data-v-65bf6317]{margin-bottom:21px}.space-person .form .el-form-item[data-v-65bf6317]:last-child{margin-bottom:0}.space-person .form .el-form-item.button[data-v-65bf6317]{margin-top:41px;text-align:right}.space-enterprise a:hover{text-decoration:underline}.space-enterprise .form .change.is-disabled{opacity:1;color:var(--color-black);border:1px solid #EDEDED;background:#EDEDED}.space-enterprise .picture .el-upload{width:100%}.space-enterprise[data-v-b4268024]{width:330px;color:var(--color-black)}.space-enterprise .region-type[data-v-b4268024]{height:35px;font-size:14px;color:var(--color-white);background:var(--color-blue);border:1px solid var(--color-blue);border-radius:6px;display:flex;align-items:center;justify-content:center}.space-enterprise .region-type.card[data-v-b4268024]{width:124px}.space-enterprise .region-type.member[data-v-b4268024]{width:152px;margin:81px 0 21px}.space-enterprise .top .title[data-v-b4268024]{font-size:14px;line-height:20px;margin-bottom:23px}.space-enterprise .top .title b[data-v-b4268024]{font-size:22px;line-height:30px;margin-bottom:8px;display:block}.space-enterprise .top .member[data-v-b4268024]{display:flex;align-items:center}.space-enterprise .top .member a[data-v-b4268024]{font-size:14px;line-height:20px}.space-enterprise .top .member .el-button[data-v-b4268024]{width:166px;height:35px;font-size:14px;color:var(--color-white);border:1px solid var(--color-blue);background:var(--color-blue);border-radius:6px;margin-right:30px}.space-enterprise .top .member img[data-v-b4268024]{width:36px;height:36px}.space-enterprise .picture[data-v-b4268024]{color:var(--color-black);font-size:14px;line-height:20px;margin:21px 0 37px}.space-enterprise .picture .content[data-v-b4268024]{height:212px;background:#ededed;border-radius:30px;display:flex;justify-content:center;flex-direction:column;text-align:center}.picture .content[data-v-b4268024]{position:relative;color:#707070;font-size:13px;line-height:19px;margin:9px 0 11px}.picture .content img.icon[data-v-b4268024]{width:35px;height:35px;margin:0 auto}.picture .content img.avatar[data-v-b4268024]{position:absolute;border-radius:30px}.space-enterprise .picture .upload-tip[data-v-b4268024]{color:#707070;text-align:center;font-size:13px;line-height:18px}.space-enterprise .thumb[data-v-b4268024]{font-size:14px;line-height:20px;margin-bottom:21px}.space-enterprise .thumb .content[data-v-b4268024]{display:flex;align-items:center;margin-top:9px}.space-enterprise .thumb .content img[data-v-b4268024]{width:72px;height:72px;border-radius:50%;margin-right:19px}.space-enterprise .thumb .content .el-button[data-v-b4268024]{width:60px;height:29px;color:var(--color-black);font-size:14px;border:1px solid #F8F8FA;background:#F8F8FA;border-radius:15px}.space-enterprise .thumb .content .el-button[data-v-b4268024]:hover{background:#F0F0F2}.space-enterprise .form .reset[data-v-b4268024],.space-enterprise .form .change[data-v-b4268024]{width:62px;height:35px;color:var(--color-black);font-size:14px;border:1px solid #EDEDED;background:#EDEDED;border-radius:19px;margin-left:0}.space-enterprise .form .reset[data-v-b4268024]{margin-right:25px}.space-enterprise .form .el-form-item[data-v-b4268024]{margin-bottom:21px}.space-enterprise .form .el-form-item[data-v-b4268024]:last-child{margin-bottom:0}.space-enterprise .form .el-form-item.button[data-v-b4268024]{margin-top:41px;text-align:right}.card .card-content[data-v-b4268024]{width:236px;margin-top:23px}.card-content .color-selection[data-v-b4268024]{color:#707070;font-size:12px;line-height:20px;text-align:center}.color-selection ul[data-v-b4268024]{display:flex;justify-content:center;margin-top:10px}.color-selection .color-item[data-v-b4268024]{width:26px;height:26px;border-radius:50%;margin-right:16px;cursor:pointer}.color-selection .color-item.blue[data-v-b4268024]{background:#C8D4E8}.color-selection .color-item.red[data-v-b4268024]{background:#E8C8D5}.color-selection .color-item.yellow[data-v-b4268024]{background:#E2D7BE}.color-selection .color-item.green[data-v-b4268024]{background:#C1DFDD;margin-right:0}.card-content .enterprise[data-v-b4268024]{width:236px;height:136px;padding:6px 6px 7px;background:var(--color-white);border-radius:12px;box-shadow:0 0 10px rgba(0,0,0,.2);margin:10px 0}.enterprise .enterprise-content[data-v-b4268024]{height:100%;color:var(--color-white);font-size:13px;line-height:16px;background:#C8D4E8;border-radius:10px;display:flex;flex-direction:column;justify-content:center;text-align:center}.enterprise .enterprise-content.blue[data-v-b4268024]{background:#C8D4E8}.enterprise .enterprise-content.red[data-v-b4268024]{background:#E8C8D5}.enterprise .enterprise-content.yellow[data-v-b4268024]{background:#E2D7BE}.enterprise .enterprise-content.green[data-v-b4268024]{background:#C1DFDD}.enterprise-content b[data-v-b4268024]{color:#707070;font-size:15px;line-height:27px;margin-top:26px}.form .card[data-v-b4268024]{margin:81px 0 41px}.me-space[data-v-9c28123c]{margin-left:249px}\n",document.head.appendChild(u),{setters:[function(e){o=e.C},function(e){n=e.n,i=e.k,s=e.a,c=e.l,p=e.m},function(e){l=e._},function(e){m=e.U,d=e._}],execute:function(){var r=n({name:"space-person",data:function(){return{showChangeAvatar:!1,form:{data:{name:"",introduce:"",nickname:""},rules:{name:[{required:!0,trigger:"blur"}],introduce:[{required:!0,trigger:"blur"}],nickname:[{required:!0,trigger:"blur"}]}}}},components:{ChangeAvatar:o},mounted:function(){i(this.userInfo,this.form.data)},computed:{userInfo:function(){return this.$store.state.userInfo},disabled:function(){var e=this.form.data,t=e.name,a=e.introduce,r=e.nickname;return!(t&&a&&r)}},methods:{toggleShowChangeAvatar:function(e){this.showChangeAvatar=e},doReset:function(){this.$refs.form.resetFields()},doSubmit:function(){var e=this,t=this.form.data,a=t.name,r=t.introduce,o=t.nickname,n=this.$t("common.failure");this.$refs.form.validate((function(t){t&&e.$axios.post("/api/users/up_user_info",{name:a,introduce:r,nickname:o}).then((function(t){var a=t.data,r=a.code,o=a.msg;0==r?(e.$message.success(o),e.$store.dispatch("syncUserinfo")):e.$message.error(o||n)}))}))}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"space-person"},[t("ChangeAvatar",{attrs:{display:e.showChangeAvatar},on:{toggleShowChangeAvatar:e.toggleShowChangeAvatar}}),t("div",{staticClass:"top"},[t("div",{staticClass:"title"},[t("b",[e._v(e._s(e.$t("me.menu.space")))]),e._v(" "+e._s(e.$t("me.space.tip"))+" ")]),t("div",{staticClass:"member"},[t("el-button",{attrs:{type:"primary",round:""}},[e._v(e._s(e.$t("me.space.level")))]),t("div",{staticClass:"edit-region"},[t("router-link",{attrs:{to:"/me/member/join"}},[t("img",{attrs:{src:l,alt:"edit"}})]),t("div",{staticClass:"tip-btn"},[t("el-button",{attrs:{type:"primary",round:""}},[e._v(e._s(e.$t("me.space.join")))])],1)],1)],1)]),t("div",{staticClass:"thumb"},[e.userInfo.avatar?t("img",{attrs:{src:e.userInfo.avatar,alt:"thumb"}}):t("img",{attrs:{src:s,alt:"thumb"}}),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){e.showChangeAvatar=!0}}},[e._v(e._s(e.$t("common.change")))])],1),t("div",{staticClass:"form"},[t("el-form",{ref:"form",attrs:{model:e.form.data,rules:e.form.rules}},[t("el-form-item",{staticClass:"name",attrs:{prop:"name",label:e.$t("me.space.name")}},[t("el-input",{attrs:{placeholder:"PARK BEOMSOO",clearable:""},model:{value:e.form.data.name,callback:function(t){e.$set(e.form.data,"name",t)},expression:"form.data.name"}})],1),t("el-form-item",{staticClass:"desc",attrs:{prop:"introduce",label:e.$t("me.space.desc")}},[t("el-input",{attrs:{placeholder:e.$t("me.space.makeup"),clearable:""},model:{value:e.form.data.introduce,callback:function(t){e.$set(e.form.data,"introduce",t)},expression:"form.data.introduce"}})],1),t("el-form-item",{staticClass:"nick",attrs:{prop:"nickname",label:e.$t("me.space.nick")}},[t("el-input",{attrs:{placeholder:"fashiney88@huabook.net",clearable:""},model:{value:e.form.data.nickname,callback:function(t){e.$set(e.form.data,"nickname",t)},expression:"form.data.nickname"}})],1),t("el-form-item",{staticClass:"button"},[t("el-button",{staticClass:"reset",attrs:{type:"primary",round:""},on:{click:e.doReset}},[e._v(e._s(e.$t("common.reset")))]),t("el-button",{staticClass:"change",attrs:{type:"primary",disabled:e.disabled,round:""},on:{click:e.doSubmit}},[e._v(e._s(e.$t("common.change")))])],1)],1)],1)],1)}),[],!1,null,"65bf6317",null,null).exports,u={name:"space-enterprise",data:function(){return{showChangeAvatar:!1,data:{tag:"avatar"},form:{data:{company_image:"",avatar:"",name:"",email:"",nickname:"",introduce:"",company_card_color:"blue",company_name:"",production_project:"",company_url:"",company_phone:"",other_contacts:""},rules:{name:[{required:!0,trigger:"blur"}],email:[{required:!0,trigger:"blur"},{pattern:c.email,trigger:"blur"}],nickname:[{required:!0,trigger:"blur"}],introduce:[{required:!0,trigger:"blur"}],company_name:[{required:!0,trigger:"blur"}],production_project:[{required:!0,trigger:"blur"}],company_url:[{required:!0,trigger:"blur"}],company_phone:[{required:!0,trigger:"blur"}],other_contacts:[{required:!0,trigger:"blur"}]}}}},mounted:function(){i(this.userInfo,this.form.data)},methods:{resetForm:function(){this.$refs.form.resetFields()},onSubmit:function(){var e=this,r=this.$t("common.failure");this.$refs.form.validate((function(o){o&&e.$axios.post("/api/users/up_user_info",function(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){a(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},e.form.data)).then((function(t){var a=t.data,o=a.code,n=a.msg;0==o?(e.$message.success(n),e.$store.dispatch("syncUserinfo")):e.$message.error(n||r)}))}))},toggleShowChangeAvatar:function(e){this.showChangeAvatar=e},changeColor:function(e){this.form.data.company_card_color=e},onAvatarUpload:function(e){this.form.data.avatar=e},onCompanyImageUpload:function(e){this.form.data.company_image=e}},components:{ChangeAvatar:o,Upload:m},computed:{disabled:function(){var e=this.form.data,t=e.company_image,a=e.avatar,r=e.name,o=e.email,n=e.nickname,i=e.introduce,s=e.company_card_color,c=e.company_name,p=e.production_project,l=e.company_url,m=e.company_phone,d=e.other_contacts;return!(t&&a&&r&&o&&n&&i&&s&&c&&p&&l&&m&&d)},userInfo:function(){return this.$store.state.userInfo}}},b=n(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"space-enterprise"},[t("ChangeAvatar",{attrs:{callback:e.onAvatarUpload,display:e.showChangeAvatar},on:{toggleShowChangeAvatar:e.toggleShowChangeAvatar}}),t("div",{staticClass:"top"},[t("div",{staticClass:"title"},[t("b",[e._v(e._s(e.$t("me.menu.space")))]),e._v(" "+e._s(e.$t("me.space.tip"))+" ")]),t("div",{staticClass:"member"},[t("el-button",{attrs:{type:"primary",round:""}},[e._v(e._s(e.$t("me.space.enterpriseMember"))+"MY ROOM")]),t("router-link",{attrs:{to:"/me/remain"}},[e._v(e._s(e.$t("me.space.remain"))+" >")])],1)]),t("div",{staticClass:"picture"},[t("div",{staticClass:"title"},[t("b",[e._v(e._s(e.$t("me.space.enterprisePic")))])]),t("Upload",{attrs:{data:e.data},on:{onupload:e.onCompanyImageUpload}},[t("div",{staticClass:"content"},[e.form.data&&e.form.data.company_image?t("img",{staticClass:"avatar",attrs:{src:e.form.data.company_image}}):e._e(),t("img",{staticClass:"icon",attrs:{src:d,alt:"upload icon"}}),t("br"),e._v(" "+e._s(e.$t("me.space.dragUpload"))+" ")])]),t("div",{staticClass:"upload-tip"},[e._v(e._s(e.$t("me.space.uploadTip")))])],1),t("div",{staticClass:"thumb"},[t("div",{staticClass:"title"},[t("b",[e._v(e._s(e.$t("me.space.enterpriseLogo")))])]),t("div",{staticClass:"content"},[e.form.data.avatar?t("img",{attrs:{src:e.form.data.avatar,alt:"thumb"}}):t("img",{attrs:{src:s,alt:"thumb"}}),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){e.showChangeAvatar=!0}}},[e._v(e._s(e.$t("common.change")))])],1)]),t("div",{staticClass:"form"},[t("el-form",{ref:"form",attrs:{model:e.form.data,rules:e.form.rules}},[t("el-form-item",{staticClass:"name",attrs:{prop:"name",label:e.$t("me.space.name")}},[t("el-input",{attrs:{placeholder:"PARK BEOMSOO",clearable:""},model:{value:e.form.data.name,callback:function(t){e.$set(e.form.data,"name",t)},expression:"form.data.name"}})],1),t("el-form-item",{staticClass:"email",attrs:{prop:"email",label:e.$t("me.space.email")}},[t("el-input",{attrs:{placeholder:"name@qq.com",clearable:""},model:{value:e.form.data.email,callback:function(t){e.$set(e.form.data,"email",t)},expression:"form.data.email"}})],1),t("el-form-item",{staticClass:"nick",attrs:{prop:"nickname",label:e.$t("me.space.enterpriseNick")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.nickname,callback:function(t){e.$set(e.form.data,"nickname",t)},expression:"form.data.nickname"}})],1),t("el-form-item",{staticClass:"siteDesc",attrs:{prop:"introduce",label:e.$t("me.space.siteDesc")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.introduce,callback:function(t){e.$set(e.form.data,"introduce",t)},expression:"form.data.introduce"}})],1),t("div",{staticClass:"card"},[t("div",{staticClass:"region-type card"},[e._v(e._s(e.$t("me.space.card")))]),t("div",{staticClass:"card-content"},[e._v(" 명함 "),t("div",{staticClass:"enterprise"},[t("div",{class:["enterprise-content",e.form.data.company_card_color]},[e._v(" "+e._s(e.form.data.production_project)+" "),t("br"),t("b",[e._v(e._s(e.form.data.company_name))])])]),t("div",{staticClass:"color-selection"},[e._v(" "+e._s(e.$t("me.space.cardTip"))+" "),t("br"),t("ul",[t("li",{staticClass:"color-item blue",on:{click:function(t){return e.changeColor("blue")}}}),t("li",{staticClass:"color-item red",on:{click:function(t){return e.changeColor("red")}}}),t("li",{staticClass:"color-item yellow",on:{click:function(t){return e.changeColor("yellow")}}}),t("li",{staticClass:"color-item green",on:{click:function(t){return e.changeColor("green")}}})])])])]),t("el-form-item",{staticClass:"companyName",attrs:{prop:"company_name",label:e.$t("me.space.enterpriseName")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.company_name,callback:function(t){e.$set(e.form.data,"company_name",t)},expression:"form.data.company_name"}})],1),t("el-form-item",{staticClass:"productName",attrs:{prop:"production_project",label:e.$t("me.space.productName")}},[t("el-input",{attrs:{placeholder:e.$t("me.space.productNameTip"),clearable:""},model:{value:e.form.data.production_project,callback:function(t){e.$set(e.form.data,"production_project",t)},expression:"form.data.production_project"}})],1),t("div",{staticClass:"region-type member"},[e._v(e._s(e.$t("me.space.contact")))]),t("el-form-item",{staticClass:"siteUrl",attrs:{prop:"company_url",label:e.$t("me.space.siteUrl")}},[t("el-input",{attrs:{placeholder:e.$t("me.space.productNameTip"),clearable:""},model:{value:e.form.data.company_url,callback:function(t){e.$set(e.form.data,"company_url",t)},expression:"form.data.company_url"}})],1),t("el-form-item",{staticClass:"enterprisePhone",attrs:{prop:"company_phone",label:e.$t("me.space.enterprisePhone")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.company_phone,callback:function(t){e.$set(e.form.data,"company_phone",t)},expression:"form.data.company_phone"}})],1),t("el-form-item",{staticClass:"otherContact",attrs:{prop:"other_contacts",label:e.$t("me.space.otherContact")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.other_contacts,callback:function(t){e.$set(e.form.data,"other_contacts",t)},expression:"form.data.other_contacts"}})],1),t("el-form-item",{staticClass:"button"},[t("el-button",{staticClass:"reset",attrs:{type:"primary",round:""},on:{click:e.resetForm}},[e._v(e._s(e.$t("common.reset")))]),t("el-button",{staticClass:"change",attrs:{type:"primary",disabled:e.disabled,round:""},on:{click:e.onSubmit}},[e._v(e._s(e.$t("common.change")))])],1)],1)],1)],1)}),[],!1,null,"b4268024",null,null).exports;e("default",n({name:"me-space",components:{PersonSpace:r,EnterpriseSpace:b},data:function(){return{userInfo:this.$store.state.userInfo}},computed:{memberType:function(){return this.$route.query.type||"person"},component:function(){var e,t=this.userInfo.member_type,o=void 0===t?p.person:t;return(a(e={},p.person,r),a(e,p.enterprise,b),e)[o]}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"me-space"},[t(e.component,{tag:"component",attrs:{data:e.userInfo}})],1)}),[],!1,null,"9c28123c",null,null).exports)}}}))}();