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.
62 lines
26 KiB
62 lines
26 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[269],{"55Ip":
|
|
/*!***************************************************************!*\
|
|
!*** ./node_modules/react-router-dom/esm/react-router-dom.js ***!
|
|
\***************************************************************/
|
|
/*! exports provided: MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter, BrowserRouter, HashRouter, Link, NavLink */
|
|
/*! exports used: Link, NavLink */function(e,t,a){"use strict";a.d(t,"a",(function(){return p})),a.d(t,"b",(function(){return _}));var n=a(/*! react-router */"Ty5D"),r=a(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),i=a(/*! react */"q1tI"),o=a.n(i),c=a(/*! history */"YS25"),l=(a(/*! prop-types */"17x9"),a(/*! @babel/runtime/helpers/esm/extends */"wx14")),s=a(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),u=a(/*! tiny-invariant */"9R94");o.a.Component;o.a.Component;var m=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?Object(c.c)(e,null,null,t):e},f=function(e){return e},v=o.a.forwardRef;void 0===v&&(v=f);var h=v((function(e,t){var a=e.innerRef,n=e.navigate,r=e.onClick,i=Object(s.a)(e,["innerRef","navigate","onClick"]),c=i.target,u=Object(l.a)({},i,{onClick:function(e){try{r&&r(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return u.ref=f!==v&&t||a,o.a.createElement("a",u)}));var p=v((function(e,t){var a=e.component,r=void 0===a?h:a,i=e.replace,c=e.to,p=e.innerRef,g=Object(s.a)(e,["component","replace","to","innerRef"]);return o.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=e.history,n=d(m(c,e.location),e.location),s=n?a.createHref(n):"",h=Object(l.a)({},g,{href:s,navigate:function(){var t=m(c,e.location);(i?a.replace:a.push)(t)}});return f!==v?h.ref=t||p:h.innerRef=p,o.a.createElement(r,h)}))})),g=function(e){return e},b=o.a.forwardRef;void 0===b&&(b=g);var _=b((function(e,t){var a=e["aria-current"],r=void 0===a?"page":a,i=e.activeClassName,c=void 0===i?"active":i,f=e.activeStyle,v=e.className,h=e.exact,_=e.isActive,E=e.location,x=e.sensitive,y=e.strict,N=e.style,S=e.to,j=e.innerRef,I=Object(s.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=E||e.location,i=d(m(S,a),a),s=i.pathname,O=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),z=O?Object(n.f)(a.pathname,{path:O,exact:h,sensitive:x,strict:y}):null,C=!!(_?_(z,a):z),A=C?function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(v,c):v,w=C?Object(l.a)({},N,{},f):N,R=Object(l.a)({"aria-current":C&&r||null,className:A,style:w,to:i},I);return g!==b?R.ref=t||j:R.innerRef=j,o.a.createElement(p,R)}))}))},"5Lld":
|
|
/*!*********************************************************!*\
|
|
!*** ./src/pages/User/Detail/Banner/index.less?modules ***!
|
|
\*********************************************************/
|
|
/*! no static exports found */
|
|
/*! exports used: default */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={flex_box_center:"flex_box_center___3QNoF",flex_space_between:"flex_space_between___1V2h0",flex_box_vertical_center:"flex_box_vertical_center___2NIZD",flex_box_center_end:"flex_box_center_end___1daQk",flex_box_column:"flex_box_column___1OYLh",banner:"banner___2ShvM",wrap:"wrap___2LlrN",contentWrap:"contentWrap___aj24j",avatarWrap:"avatarWrap___1e9Ap",avatar:"avatar___3S91M",leftWrap:"leftWrap___9S3me",username:"username___2n4Ae",colorB8:"colorB8___iT6bs",color98EBFF:"color98EBFF___L0xDV",rightWrap:"rightWrap___3cIAT",countWrap:"countWrap___18atC",count:"count___1n5NP",grade:"grade___2Ucym",signed:"signed___1JBiI",bcFF8E02:"bcFF8E02___2seA2",bcCC:"bcCC___2Spe7",nav:"nav___2Z4mt",active:"active___1tNUz",search:"search___N__9i",active2:"active2___1gmg5"}},Y1PL:
|
|
/*!**********************************************************!*\
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
\**********************************************************/
|
|
/*! exports provided: ResizableTextArea, default */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t),a.d(t,"ResizableTextArea",(function(){return F}));var n=a("wx14"),r=a("1OyB"),i=a("vuIU"),o=a("Ji7U"),c=a("LK+K"),l=a("q1tI"),s=a("VTBJ"),u=a("rePB"),m=a("Zm9Q"),d=(a("Kwbf"),a("c+Xe")),f=a("m+aA"),v=a("bdgK"),h=new Map;var p=new v.default((function(e){e.forEach((function(e){var t,a=e.target;null===(t=h.get(a))||void 0===t||t.forEach((function(e){return e(a)}))}))}));var g=function(e){Object(o.a)(a,e);var t=Object(c.a)(a);function a(){return Object(r.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(l.Component),b=l.createContext(null);function _(e){var t=e.children,a=e.disabled,n=l.useRef(null),r=l.useRef(null),i=l.useContext(b),o=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=l.isValidElement(t)&&Object(d.c)(t),u=c?t.ref:null,m=l.useMemo((function(){return Object(d.a)(u,n)}),[u,n]),v=l.useRef(e);v.current=e;var _=l.useCallback((function(e){var t=v.current,a=t.onResize,n=t.data,r=e.getBoundingClientRect(),c=r.width,l=r.height,u=e.offsetWidth,m=e.offsetHeight,d=Math.floor(c),f=Math.floor(l);if(o.current.width!==d||o.current.height!==f||o.current.offsetWidth!==u||o.current.offsetHeight!==m){var h={width:d,height:f,offsetWidth:u,offsetHeight:m};o.current=h;var p=u===Math.round(c)?c:u,g=m===Math.round(l)?l:m,b=Object(s.a)(Object(s.a)({},h),{},{offsetWidth:p,offsetHeight:g});null==i||i(b,e,n),a&&Promise.resolve().then((function(){a(b,e)}))}}),[]);return l.useEffect((function(){var e,t,i=Object(f.a)(n.current)||Object(f.a)(r.current);return i&&!a&&(e=i,t=_,h.has(e)||(h.set(e,new Set),p.observe(e)),h.get(e).add(t)),function(){return function(e,t){h.has(e)&&(h.get(e).delete(t),h.get(e).size||(p.unobserve(e),h.delete(e)))}(i,_)}}),[n.current,a]),l.createElement(g,{ref:r},c?l.cloneElement(t,{ref:m}):t)}function E(e){var t=e.children;return Object(m.a)(t).map((function(t,a){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(a);return l.createElement(_,Object(n.a)({},e,{key:r}),t)}))}E.Collection=function(e){var t=e.children,a=e.onBatchResize,n=l.useRef(0),r=l.useRef([]),i=l.useContext(b),o=l.useCallback((function(e,t,o){n.current+=1;var c=n.current;r.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){c===n.current&&(null==a||a(r.current),r.current=[])})),null==i||i(e,t,o)}),[a,i]);return l.createElement(b.Provider,{value:o},t)};var x,y=E,N=a("bT9E"),S=a("TSYQ"),j=a.n(S),I="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",O=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],z={};function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&z[a])return z[a];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),c=O.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),l={sizingStyle:c,paddingSize:i,borderSize:o,boxSizing:r};return t&&a&&(z[a]=l),l}var A,w=a("Gytx"),R=a.n(w);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(A||(A={}));var F=function(e){Object(o.a)(a,e);var t=Object(c.a)(a);function a(e){var i;return Object(r.a)(this,a),(i=t.call(this,e)).nextFrameActionId=void 0,i.resizeFrameId=void 0,i.textArea=void 0,i.saveTextArea=function(e){i.textArea=e},i.handleResize=function(e){var t=i.state.resizeStatus,a=i.props,n=a.autoSize,r=a.onResize;t===A.NONE&&("function"==typeof r&&r(e),n&&i.resizeOnNextFrame())},i.resizeOnNextFrame=function(){cancelAnimationFrame(i.nextFrameActionId),i.nextFrameActionId=requestAnimationFrame(i.resizeTextarea)},i.resizeTextarea=function(){var e=i.props.autoSize;if(e&&i.textArea){var t=e.minRows,a=e.maxRows,n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;x||((x=document.createElement("textarea")).setAttribute("tab-index","-1"),x.setAttribute("aria-hidden","true"),document.body.appendChild(x)),e.getAttribute("wrap")?x.setAttribute("wrap",e.getAttribute("wrap")):x.removeAttribute("wrap");var r=C(e,t),i=r.paddingSize,o=r.borderSize,c=r.boxSizing,l=r.sizingStyle;x.setAttribute("style","".concat(l,";").concat(I)),x.value=e.value||e.placeholder||"";var s,u=Number.MIN_SAFE_INTEGER,m=Number.MAX_SAFE_INTEGER,d=x.scrollHeight;if("border-box"===c?d+=o:"content-box"===c&&(d-=i),null!==a||null!==n){x.value=" ";var f=x.scrollHeight-i;null!==a&&(u=f*a,"border-box"===c&&(u=u+i+o),d=Math.max(u,d)),null!==n&&(m=f*n,"border-box"===c&&(m=m+i+o),s=d>m?"":"hidden",d=Math.min(m,d))}return{height:d,minHeight:u,maxHeight:m,overflowY:s,resize:"none"}}(i.textArea,!1,t,a);i.setState({textareaStyles:n,resizeStatus:A.RESIZING},(function(){cancelAnimationFrame(i.resizeFrameId),i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:A.RESIZED},(function(){i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:A.NONE}),i.fixFirefoxAutoScroll()}))}))}))}))}},i.renderTextArea=function(){var e=i.props,t=e.prefixCls,a=void 0===t?"rc-textarea":t,r=e.autoSize,o=e.onResize,c=e.className,m=e.disabled,d=i.state,f=d.textareaStyles,v=d.resizeStatus,h=Object(N.a)(i.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),p=j()(a,c,Object(u.a)({},"".concat(a,"-disabled"),m));"value"in h&&(h.value=h.value||"");var g=Object(s.a)(Object(s.a)(Object(s.a)({},i.props.style),f),v===A.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(y,{onResize:i.handleResize,disabled:!(r||o)},l.createElement("textarea",Object(n.a)({},h,{className:p,style:g,ref:i.saveTextArea})))},i.state={textareaStyles:{},resizeStatus:A.NONE},i}return Object(i.a)(a,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&R()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(l.Component),k=function(e){Object(o.a)(a,e);var t=Object(c.a)(a);function a(e){var n;Object(r.a)(this,a),(n=t.call(this,e)).resizableTextArea=void 0,n.focus=function(){n.resizableTextArea.textArea.focus()},n.saveTextArea=function(e){n.resizableTextArea=e},n.handleChange=function(e){var t=n.props.onChange;n.setValue(e.target.value,(function(){n.resizableTextArea.resizeTextarea()})),t&&t(e)},n.handleKeyDown=function(e){var t=n.props,a=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&a&&a(e),r&&r(e)};var i=void 0===e.value||null===e.value?e.defaultValue:e.value;return n.state={value:i},n}return Object(i.a)(a,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(F,Object(n.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),a}(l.Component);t.default=k},bT9E:
|
|
/*!*****************************************!*\
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
\*****************************************/
|
|
/*! exports provided: default */
|
|
/*! exports used: default */function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function r(e,t){var a=Object(n.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete a[e]})),a}},"bp/9":
|
|
/*!****************************************************!*\
|
|
!*** ./src/pages/User/Detail/[id].tsx + 1 modules ***!
|
|
\****************************************************/
|
|
/*! exports provided: default */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/User/Detail/Banner/index.less?modules (<- Module is not an ECMAScript module) */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/mediator.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t);var n,r=a("PpiC"),i=a("q1tI"),o=a.n(i),c=a("9kvl"),l=(a("qVdP"),a("jsC+")),s=(a("5Dmo"),a("3S7+")),u=(a("lUTK"),a("BvKs")),m=a("9og8"),d=a("tJVT"),f=(a("5NDa"),a("5rEg")),v=a("WmNS"),h=a.n(v),p=a("Ty5D"),g=a("55Ip"),b=a("m3rI"),_=a("dhSg"),E=a("5Lld"),x=a.n(E),y=f.a.Search;!function(e){e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics",e.Teach="teach-group",e.CreateImg="experiment-img",e.Certificate="certificate",e.OtherResources="other-resources",e.UserPortrait="userPortrait",e.LearningPath="learningPath",e.virtualSpaces="virtual_spaces"}(n||(n={}));var N=[{name:"classrooms",placeholder:"请搜索课堂/课程名称"},{name:"shixuns",placeholder:"搜索实践项目"},{name:"paths",placeholder:"搜索实践课程"},{name:"videos",placeholder:"搜索视频"}],S=Object(c.a)((function(e){var t=e.user,a=e.userDetail,n=e.loading;return{user:t,userDetail:a,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,a,c,f,v,E,S,j,I,O,z,C,A,w,R,F,k,T,P,D,V,W,B,K,M,H,Z,L,G,U,q,J,Y=e.userDetail,Q=e.user,X=e.globalSetting,$=(e.loading,e.dispatch),ee=(Object(r.a)(e,["userDetail","user","globalSetting","loading","dispatch"]),Object(p.h)()),te=Object(i.useRef)(),ae=Object(i.useState)(),ne=Object(d.a)(ae,2),re=ne[0],ie=ne[1],oe=Object(i.useState)(),ce=Object(d.a)(oe,2),le=ce[0],se=ce[1],ue=Object(p.i)();Object(i.useEffect)((function(){var e,t;te.current=null===(e=ee.pathname.split("/"))||void 0===e?void 0:e[2];var a=null===(t=ee.pathname.split("/"))||void 0===t?void 0:t[3];ie(a||n.Classrooms),se(null)}),[ee.pathname]);var me=function(){var e=Object(m.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$({type:"userDetail/signed"});case 2:e.sent&&$({type:"userDetail/getHomepageInfo",payload:{username:te.current}});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=(null===(t=Q.userInfo)||void 0===t?void 0:t.login)===te.current,fe=(null===(a=ee.pathname.split("/"))||void 0===a?void 0:a[3])||"classrooms",ve=o.a.createElement(u.a,null,(null===(c=Q.userInfo)||void 0===c?void 0:c.login)===(null==ue?void 0:ue.username)&&(null===(f=Q.userInfo)||void 0===f?void 0:f.is_mirror_marker)&&o.a.createElement(u.a.Item,null,o.a.createElement("li",{className:"".concat(re===n.CreateImg?x.a.active2:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/experiment-img"),onClick:function(){return ie(n.CreateImg)},className:"c-grey-333"},"实验镜像"))),o.a.createElement(u.a.Item,null,o.a.createElement("li",{className:"".concat(re===n.Certificate?x.a.active2:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/certificate"),onClick:function(){return ie(n.Certificate)},className:"c-grey-333"},"证书管理"))),(null===(v=Q.userInfo)||void 0===v?void 0:v.login)===(null==ue?void 0:ue.username)&&o.a.createElement(u.a.Item,null,o.a.createElement("li",{className:"".concat(re===n.Teach?x.a.active2:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/teach-group"),onClick:function(){return ie(n.Teach)},className:"c-grey-333"},"教研团队"))),o.a.createElement(u.a.Item,null,o.a.createElement("li",{className:"".concat(re===n.OtherResources?x.a.active2:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/otherResources"),onClick:function(){return ie(n.OtherResources)},className:"c-grey-333"},"其他平台资源"))));return o.a.createElement("section",null,o.a.createElement("aside",{className:x.a.banner},o.a.createElement("aside",{className:x.a.wrap},o.a.createElement("div",{className:x.a.contentWrap},o.a.createElement("div",{className:x.a.leftWrap},o.a.createElement("p",{className:x.a.avatarWrap},(null===(E=Y.homepageInfo)||void 0===E?void 0:E.avatar_url)&&o.a.createElement("img",{className:x.a.avatar,alt:"头像",src:"".concat(b.a.IMG_SERVER,"/images/").concat(null===(S=Y.homepageInfo)||void 0===S?void 0:S.avatar_url)})),o.a.createElement("div",null,o.a.createElement("p",{className:"mb0 mt20"},o.a.createElement("span",{className:x.a.username},null===(j=Y.homepageInfo)||void 0===j?void 0:j.name)),o.a.createElement("p",{className:"mb0 mt15"},o.a.createElement(s.a,{placement:"bottom",title:null!==(I=Y.homepageInfo)&&void 0!==I&&I.professional_certification?"已职业认证":"未职业认证"},o.a.createElement("i",{className:null!==(O=Y.homepageInfo)&&void 0!==O&&O.professional_certification?"iconfont icon-shenfenzhenghaomaguizheng font18 mr20 ml2 ".concat(x.a.color98EBFF):"iconfont icon-shenfenzhenghaomaguizheng font18 mr20 ml2 ".concat(x.a.colorB8)})),o.a.createElement(s.a,{placement:"bottom",title:null!==(z=Y.homepageInfo)&&void 0!==z&&z.authentication?"已实名认证":"未实名认证"},o.a.createElement("i",{className:null!==(C=Y.homepageInfo)&&void 0!==C&&C.authentication?"iconfont icon-renzhengshangjia font18 ".concat(x.a.color98EBFF):"iconfont icon-renzhengshangjia font18 ".concat(x.a.colorB8)}))))),o.a.createElement("div",{className:x.a.rightWrap},o.a.createElement("div",{className:"mt20 ".concat(x.a.countWrap)},o.a.createElement("div",{className:x.a.count},o.a.createElement("span",null,de?"我":"TA","的经验值"),o.a.createElement("a",null,null===(A=Y.homepageInfo)||void 0===A?void 0:A.experience)),o.a.createElement("div",{className:"".concat(x.a.count," ").concat(x.a.grade)},o.a.createElement("span",null,de?"我":"TA","的金币"),o.a.createElement("a",null,null===(w=Y.homepageInfo)||void 0===w?void 0:w.grade))),o.a.createElement("span",{className:"mt35 ml60"},de?o.a.createElement(o.a.Fragment,null,null!==(R=Y.homepageInfo)&&void 0!==R&&R.attendance_signed?o.a.createElement("span",{className:"".concat(x.a.bcCC," ").concat(x.a.signed)},"已签到"):o.a.createElement("a",{className:"".concat(x.a.bcFF8E02," ").concat(x.a.signed),onClick:me},"签到")):o.a.createElement(g.a,{className:"".concat(x.a.bcFF8E02," ").concat(x.a.signed),to:"/messages/".concat(null===(F=Q.userInfo)||void 0===F?void 0:F.login,"/message_detail?target_ids=").concat(null===(k=Y.homepageInfo)||void 0===k?void 0:k.id)},"私信")))),o.a.createElement("div",{className:x.a.nav},!(null!==(T=((null===(P=X.setting)||void 0===P?void 0:P.navbar)||[]).find((function(e){return e.link==="/".concat(n.Classrooms)})))&&void 0!==T&&T.hidden)&&o.a.createElement("li",{className:"".concat(re===n.Classrooms?x.a.active:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/classrooms"),onClick:function(){return ie(n.Classrooms)}},"教学课堂")),!(null!==(D=((null===(V=X.setting)||void 0===V?void 0:V.navbar)||[]).find((function(e){return e.link==="/".concat(n.Shixuns)})))&&void 0!==D&&D.hidden)&&o.a.createElement("li",{className:"".concat(re===n.Shixuns?x.a.active:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/shixuns"),onClick:function(){return ie(n.Shixuns)}},"实践项目")),!(null!==(W=((null===(B=X.setting)||void 0===B?void 0:B.navbar)||[]).find((function(e){return e.link==="/".concat(n.Paths)})))&&void 0!==W&&W.hidden)&&o.a.createElement("li",{className:"".concat(re===n.Paths?x.a.active:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/paths"),onClick:function(){return ie(n.Paths)}},"实践课程")),(null===(K=Q.userInfo)||void 0===K?void 0:K.main_site)&&!(null!==(M=X.setting)&&void 0!==M&&M.is_local)&&o.a.createElement("li",{className:"".concat(re===n.Projects?x.a.active:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/projects"),onClick:function(){return ie(n.Projects)}},"开发项目")),(null===(H=Q.userInfo)||void 0===H?void 0:H.main_site)&&!(null!==(Z=X.setting)&&void 0!==Z&&Z.is_local)&&(de&&(null===(L=Q.userInfo)||void 0===L?void 0:L.is_teacher)||(null===(G=Q.userInfo)||void 0===G?void 0:G.admin))&&o.a.createElement("li",{className:"".concat(re===n.Videos?x.a.active:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/videos"),onClick:function(){return ie(n.Videos)}},"视频")),(null===(U=Q.userInfo)||void 0===U?void 0:U.main_site)&&de&&(null===(q=Q.userInfo)||void 0===q?void 0:q.is_teacher)&&o.a.createElement("li",{className:"".concat(re===n.Topics?x.a.active:"")},o.a.createElement(g.a,{to:"/users/".concat(te.current,"/topics/personal"),onClick:function(){return ie(n.Topics)}},"课堂资源")),o.a.createElement(l.a,{overlay:ve,placement:"bottomCenter"},o.a.createElement("li",{className:"font16"},"更多")),N.find((function(e){return e.name===fe}))&&o.a.createElement("div",{className:x.a.search},o.a.createElement(y,{placeholder:null===(J=N.find((function(e){return e.name===fe})))||void 0===J?void 0:J.placeholder,style:{width:200},allowClear:!0,value:le,onChange:function(e){return se(e.target.value)},onSearch:function(e){_.a.publish("user-detail-search",{currentTabName:fe,value:e})}}))))))}));t.default=Object(c.a)((function(e){var t=e.userDetail,a=e.loading;return{userDetail:t,globalSetting:e.globalSetting,loading:a.models.index}}))((function(e){e.userDetail,e.globalSetting,e.loading;var t=e.dispatch,a=Object(r.a)(e,["userDetail","globalSetting","loading","dispatch"]),n=Object(i.useRef)();return Object(i.useEffect)((function(){n.current=a.match.params.username,t({type:"userDetail/getHomepageInfo",payload:{username:n.current}})}),[a.match.params]),o.a.createElement("section",null,o.a.createElement(S,null),a.children)}))}}]); |