You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
17 KiB
1 line
17 KiB
5 years ago
|
webpackJsonp([20],{4219:function(e,n,t){"use strict";var a=t(0),c=t.n(a),s=(t(5),t(4220)),o=function(e,n,t){return n&&r(e.prototype,n),t&&r(e,t),e};function r(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}var l=(function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(p,a.Component),o(p,[{key:"render",value:function(){var e=this.props,n=e.basicInfo,t=(e.current_user,window.location.pathname),a=-1!=t.indexOf("profile")||"/account"==t,o=-1!=t.indexOf("certification"),r=-1!=t.indexOf("secure"),i=-1!=t.indexOf("binding");return c.a.createElement("div",{className:"accountNav fl"},c.a.createElement("style",null,"\n .accountInfo { \n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n .accountInfo .name {\n color: #05101A;\n font-size: 24px;\n height: 36px;\n }\n .accountInfo .role {\n color: #666666;\n font-size: 14px;\n }\n .accountManagement .title {\n color: #05101A;\n font-size: 18px;\n font-weight: 400;\n padding: 10px 28px;\n margin-top: 6px;\n }\n .accountManagement .navItem {\n font-size: 16px;\n padding: 6px 0px;\n padding-left: 30px;\n border-left: 2px solid #fff;\n cursor: pointer;\n color:#4D4D4D;\n }\n .accountManagement .navItem i{\n margin-top: -4px;\n display: inline-block;\n margin-right: 7px;\n }\n .accountManagement .navItem i.status{\n margin-top: 1px;\n margin-right: 24px;\n }\n .accountManagement .navItem.active { \n border-left: 2px solid #4CACFF;\n background: #E6F3FF;\n }\n .accountManagement .navItem.active i:first-child{\n color:#4CACFF!important;\n }\n\n .color-green-light{\n color: #45E660!important;\n }\n "),n&&n.id&&c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"accountInfo"},c.a.createElement(s.a,Object.assign({src:n.avatar_url},this.props)),c.a.createElement("span",{className:"name"},n.name||""),c.a.createElement("span",{className:"role"},n.technical_title)),c.a.createElement("div",{className:"accountManagement"},c.a.createElement("div",{className:"title"},"账号管理"),c.a.createElement("ul",null,c.a.createElement("li",{className:"navItem "+(a?"active":""),onClick:this.toBasic},c.a.createElement("i",{className:"iconfont icon-jibenxinxi color-grey-9 font-16"}),"基本信息",1==n.base_info_completed?c.a.createElement("i",{className:"status fr iconfont icon-wancheng color-green-light font-16"}):c.a.createElement("i",{className:"status fr iconfont icon-tishi color-red font-16"})),c.a.createElement("li",{className:"navItem "+(o?"active":""),onClick:this.toCertification},c.a.createElement("i",{className:"iconfont icon-renzhengxinxi color-grey-9 font-16"}),"认证信息","certified"==n.professional_certification&&"certified"==n.authentication?c.a.createElement("i",{className:"status fr iconfont icon-wancheng color-green-light
|