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
30 KiB
1 line
30 KiB
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[198],{1416:function(t,e,n){"use strict";n(50);var a=n(29),o=n(8),s=n(7),i=n(10),r=n(9),c=n(11),l=n(0),u=n.n(l),d=(n(28),n(49)),p=n.n(d),m=function(t){function e(t){var n;return Object(o.a)(this,e),(n=Object(i.a)(this,Object(r.a)(e).call(this,t))).updatasmodals=function(){var t=n.props.updata;if(t&&!0===t.system_update){var e=localStorage.getItem("SystemUpdateEndTime");(null==e||p()(e)<p()(t.end_time))&&n.setState({system_updates:!0})}},n.setmodalSave=function(){var t=n.props.updata;localStorage.setItem("SystemUpdateEndTime",t.end_time),n.setState({system_updates:!1})},n.state={system_updates:!1},n}return Object(c.a)(e,t),Object(s.a)(e,[{key:"componentDidMount",value:function(){this.updatasmodals()}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var t=this,e=this.state.system_updates,n=this.props.updata;return u.a.createElement(a.a,{keyboard:!1,title:n&&n.subject,visible:e,closable:!1,footer:null,destroyOnClose:!0,centered:!0,width:"530px"},u.a.createElement("div",{className:"task-popup-content"},u.a.createElement("pre",{className:"break-word break-word-firefox"},n&&n.system_score),u.a.createElement("div",{className:"clearfix edu-txt-center mt20"},u.a.createElement("a",{className:"task-btn task-btn-orange pop_close",onClick:function(){return t.setmodalSave()}},"\u77e5\u9053\u5566"))))}}]),e}(l.Component);e.a=m},2334:function(t,e,n){"use strict";n.r(e);var a=n(8),o=n(7),s=n(10),i=n(9),r=n(11),c=n(0),l=n.n(c),u=n(15),d=n.n(u),p=n(14),m=n(66),h=n(1416),g=n(6),b=n.n(g),f=n(28),v=(n(259),n(167)),x=n(74),E=(n(984),n(265),n(264),function(t){function e(t){return Object(a.a)(this,e),Object(s.a)(this,Object(i.a)(e).call(this,t))}return Object(r.a)(e,t),Object(o.a)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.data,a=e.id,o=e.login,s=e.moduleName,i=e.current_user,r=this.props.is_current,c=this.props.match.params.username;s=this.props.location.pathname.split("/")[3],this.props.current_user&&this.props.current_user.user_id,this.props.current_user&&this.props.current_user.user_identity,this.props.data&&this.props.data.id;var u=!1,d=!1,p=!1;return this.props&&null!=this.props.mygetHelmetapi&&this.props.mygetHelmetapi.navbar.map((function(t,e){var n=RegExp(t.link);"/shixuns".match(n)&&!0===t.hidden&&(u=!0),"/paths".match(n)&&!0===t.hidden&&(d=!0),"/courses".match(n)&&!0===t.hidden&&(p=!0)})),l.a.createElement("div",{className:"bannerPanel mb60"},l.a.createElement("div",{className:"educontent"},l.a.createElement("div",{className:"clearfix color-white mb25"},l.a.createElement("p",{className:"myPhoto mr20 fl"},l.a.createElement("img",{alt:"\u5934\u50cf",src:n&&"".concat(Object(f.L)("images/"+n.avatar_url))})),l.a.createElement("div",{className:"fl"},l.a.createElement("p",{className:"clearfix mt20"},l.a.createElement("span",{className:"username task-hide",style:{maxWidth:"370px"}},n&&n.name)),l.a.createElement("p",{className:"mt15"},l.a.createElement(v.a,{placement:"bottom",title:n&&n.professional_certification?"\u5df2\u804c\u4e1a\u8ba4\u8bc1":"\u672a\u804c\u4e1a\u8ba4\u8bc1"},l.a.createElement("i",{className:n&&n.professional_certification?"iconfont icon-shenfenzhenghaomaguizheng font-18 user-colorgrey-blue mr20 ml2":"iconfont icon-shenfenzhenghaomaguizheng font-18 user-colorgrey-B8 mr20 ml2"})),l.a.createElement(v.a,{placement:"bottom",title:n&&n.authentication?"\u5df2\u5b9e\u540d\u8ba4\u8bc1":"\u672a\u5b9e\u540d\u8ba4\u8bc1"},l.a.createElement("i",{className:n&&n.authentication?"iconfont icon-renzhengshangjia font-18 user-colorgrey-blue":"iconfont icon-renzhengshangjia font-18 user-colorgrey-B8"})))),l.a.createElement("div",{className:"fr"},l.a.createElement("div",{class:"fl headtab mt20"},l.a.createElement("span",null,r?"\u6211":"TA","\u7684\u7ecf\u9a8c\u503c"),l.a.createElement("a",{style:{cursor:"default"}},n&&n.experience)),l.a.createElement("div",{class:"fl headtab mt20 pr leftTransform pl20"},l.a.createElement("span",null,r?"\u6211":"TA","\u7684\u91d1\u5e01"),l.a.createElement("a",{style:{cursor:"default"}},n&&n.grade)),r?l.a.createElement("span",{className:"fl mt35 ml60"},n&&n.attendance_signed?l.a.createElement("span",{className:"user_default_btn user_grey_btn font-18"},"\u5df2\u7b7e\u5230"):l.a.createElement("a",{herf:"javascript:void(0);",onClick:this.props.signFor,className:"user_default_btn user_yellow_btn fl font-18"},"\u7b7e\u5230")):l.a.createElement("span",{className:"fl mt35 ml60"},l.a.createElement(f.r,Object.assign({},this.props,this.state,{className:"user_default_btn user_yellow_btn fl font-18",to:"/messages/".concat(o,"/message_detail?target_ids=").concat(a)}),"\u79c1\u4fe1")))),l.a.createElement("div",{className:"userNav"},!0===p?"":l.a.createElement("li",{className:"".concat("courses"==s||null==s?"active":"")},l.a.createElement(x.b,{onClick:function(){return t.setState({moduleName:"courses"})},to:"/users/".concat(c,"/courses")},"\u6559\u5b66\u8bfe\u5802")),!0===u?"":l.a.createElement("li",{className:"".concat("shixuns"==s?"active":"")},l.a.createElement(x.b,{onClick:function(){return t.setState({moduleName:"shixuns"})},to:"/users/".concat(c,"/shixuns")},"\u5b9e\u8bad\u9879\u76ee")),!0===d?"":l.a.createElement("li",{className:"".concat("paths"==s?"active":"")},l.a.createElement(x.b,{onClick:function(){return t.setState({moduleName:"paths"})},to:"/users/".concat(c,"/paths")},"\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site?l.a.createElement("li",{className:"".concat("projects"==s?"active":"")},l.a.createElement(x.b,{onClick:function(){return t.setState({moduleName:"projects"})},to:"/users/".concat(c,"/projects")},"\u5f00\u53d1\u9879\u76ee")):"",this.props.user&&!0===this.props.user.main_site?(r&&i&&i.is_teacher||i&&i.admin)&&l.a.createElement("li",{className:"".concat("videos"==s?"active":"")},l.a.createElement(x.b,{onClick:function(){return t.setState({moduleName:"videos"})},to:"/users/".concat(c,"/videos")},"\u89c6\u9891")):"",this.props.user&&!0===this.props.user.main_site?r&&i&&i.is_teacher&&l.a.createElement("li",{className:"".concat("topics"==s?"active":"")},l.a.createElement(x.b,{onClick:function(){return t.setState({moduleName:"topics"})},to:"/users/".concat(c,"/topics/personal")},"\u9898\u5e93")):"")))}}]),e}(c.Component)),y=(n(131),n(39)),A=(n(103),n(47)),w=(n(63),n(21)),N=n(35),I=(n(278),function(t){function e(t){var n;return Object(a.a)(this,e),(n=Object(s.a)(this,Object(i.a)(e).call(this,t))).Cancel=function(){n.props.Cancel()},n.loginInputonChange=function(t){n.setState({login:t.target.value})},n.loginInputonChanges=function(t){n.setState({reason:t.target.value,Phonenumberisnotcoreason:void 0})},n.codesonChange=function(t){n.setState({codes:t.target.value,Phonenumberisnotcocodes:void 0})},n.openNotification=function(t){w.a.open({message:"\u63d0\u793a",description:t,onClick:function(){}})},n.getverificationcode=function(){if(!1===n.state.Phonenumberisnotcobool)return n.state.login.length,void n.setState({Phonenumberisnotco:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u6216\u90ae\u7bb1"});if(!0===n.state.getverificationcodes){n.setState({getverificationcodes:void 0});var t=setInterval((function(){n.setState((function(t){return{seconds:t.seconds-1}}),(function(){0==n.state.seconds&&(clearInterval(t),n.setState({getverificationcodes:!1,seconds:60}))}))}),1e3);n.SMSverification()}else{n.setState({getverificationcodes:void 0});var e=setInterval((function(){n.setState((function(t){return{seconds:t.seconds-1}}),(function(){0==n.state.seconds&&(clearInterval(e),n.setState({getverificationcodes:!1,seconds:60}))}))}),1e3);n.SMSverification()}},n.SMSverification=function(){var t=n.state.login;b.a.get("/accounts/get_verification_code.json",{params:{login:n.state.login,type:3,smscode:Object(f.fb)(t)}}).then((function(t){1===t.data.status?n.props.showNotification("\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536"):-2===t.data.status&&n.props.showNotification(t.data.message)})).catch((function(t){}))},n.postregistered=function(){if(!1===n.state.user_phone_binded){if(!1===n.state.Phonenumberisnotcobool){var t;return t=void 0===n.state.Phonenumberisnotco||null===n.state.Phonenumberisnotco||""===n.state.Phonenumberisnotco?"\u8bf7\u8f93\u5165\u624b\u673a\u53f7":n.state.Phonenumberisnotco,void n.setState({Phonenumberisnotco:t})}if(0===n.state.codes.length)return void n.setState({Phonenumberisnotcocodes:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"})}0!==n.state.reason.length?(Object(N.a)(n),b.a.post("/users/trial_apply.json",{phone:n.state.login,code:n.state.codes,reason:n.state.reason}).then((function(t){void 0!==t&&(!1===n.state.showTrial&&(window.location.href="/"),n.setState({isRenders:!1}),n.handleDialogClose())})).catch((function(t){}))):n.setState({Phonenumberisnotcoreason:"\u8bf7\u8f93\u5165\u63a8\u8350\u4eba\u4fe1\u606f\u6216\u7533\u8bf7\u7406\u7531"})},n.inputOnBlur=function(t){n.isCorrectname(t.target.value)},n.isCorrectname=function(t){if(0!==t.length){var e=void 0;if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(t))return e="\u624b\u673a\u53f7\u683c\u5f0f\u4e0d\u6b63\u786e",n.setState({Phonenumberisnotco:e,Phonenumberisnotcobool:!1}),/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t)?void n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0}):(e=-1!=t.indexOf("@")==1?"\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e":"\u624b\u673a\u53f7\u683c\u5f0f\u4e0d\u6b63\u786e",void n.setState({Phonenumberisnotco:e,Phonenumberisnotcobool:!1}));n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0})}else n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1})},n.Emailphonenumberverification=function(t){b.a.get("/accounts/valid_email_and_phone.json",{params:{login:t,type:2}}).then((function(t){})).catch((function(t){}))},n.state={props:t,login:"",Phonenumberisnotcocodes:void 0,codes:"",reason:"",Phonenumberisnotcoreason:void 0,isRenders:!1,seconds:60,getverificationcodes:!0,Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1,readonlyInput:!0,user_phone_binded:t.user_phone_binded,showTrial:!1,user:void 0,borredss:"bor-reds",borredssz:"bor-reds fl mr5"},n}return Object(r.a)(e,t),Object(o.a)(e,[{key:"componentWillReceiveProps",value:function(t){t.user!=this.props.user&&void 0!==t.user&&this.setState({user_phone_binded:t.user.user_phone_binded})}},{key:"componentDidMount",value:function(){var t=this;null!=this.props.isRenders&&this.setState({isRenders:this.props.isRenders}),null!=this.props.showTrial&&this.setState({showTrial:this.props.showTrial}),b.a.interceptors.response.use((function(e){return null!=e&&e&&407===e.data.status&&t.setState({isRenders:!0}),e}),(function(t){}))}},{key:"handleDialogClose",value:function(){!1===this.state.showTrial?(this.setState({isRenders:!1}),this.handleDialogClose(),window.location.href="/"):(this.setState({isRenders:!1}),this.handleDialogClose())}},{key:"render",value:function(){var t=this,e=this.state,n=e.login,a=e.codes,o=e.reason,s=e.isRenders,i=e.user_phone_binded,r=e.borredss,c=e.borredssz,u=e.Phonenumberisnotco,d=e.getverificationcodes,p=e.Phonenumberisnotcocodes,m=e.Phonenumberisnotcoreason,h=e.seconds;return l.a.createElement("div",{style:{ariaHidden:"true",dataBackdrop:"static"}},!1===s?"":l.a.createElement("div",{style:{"border-radius":"10px"}},l.a.createElement("style",null,'\n\t\t\t\t\t\t\t\t\t\t\t\t.dialogBox2{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 420px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#DialogIDysl{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/*z-index: 20000; \u5f71\u54cdnotification*/\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#DialogIDysl .dialogBox {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 560px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t.MuiPaper-elevation24-45{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbox-shadow:none !important;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t.MuiPaper-root-19{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/* background:none !important; */\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t.MuiDialog-paper-9{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toverflow-y:hidden !important;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#log_reg_content{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 0px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#log_reg_content{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth:405px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius:40px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbox-shadow:4px 8px 12px rgba(76,76,76,0.3);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t.log_nav li{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight:17px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size:18px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-family:NotoSansHans-Regular;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor:rgba(25,0,0,1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t.vertical-line{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmargin-left:10px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmargin-right:10px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#DialogIDysl div {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toverflow-y:visible !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbox-shadow:none !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius:10px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#wrapper{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 3px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tleft: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmargin-bottom: 17px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t.slidetounlock{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground:-webkit-gradient(linear,left top,right top,color-stop(0,#4d4d4d),color-stop(.4,#4d4d4d),color-stop(.5,#fff),color-stop(.6,#4d4d4d),color-stop(1,#4d4d4d));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-background-clip:text;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-text-fill-color:transparent;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-animation:slidetounlock 3s infinite;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-text-size-adjust:none\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t@-webkit-keyframes slidetounlock{0%{background-position:-200px 0} 100%{background-position:200px 0}}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\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GOjnH0D6DpK4IxNSVIHAfSDOAeLraJrjgJp/AwPbHMhejiQnwYRmUzNQ4VQgDQqXK0ia/0I17wJiPmQNTNBEAgMlQIWiQA2vgWw7QppBekGxsAjIiEUSBNnsBDWEAY9mEFgMMgBk00E0iZtA7AHEctDQ58MRuA6wlLgGFMoMpIG1QFeGwAIxGZo8GUhIysmwQGSAZgwHaEZhICIzOaBkJkqyM0CAAQDGx279Jf50AAAAAABJRU5ErkJggg==") no-repeat center;}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t#drag{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-color: #e8e8e8;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 340px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 34px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: 34px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#drag .handler{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tleft: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 32px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/*border: 1px solid #ccc;*/\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcursor: move;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t#drag .drag_bg{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-color: #7ac23c;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 34px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#drag .drag_text{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 340px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor:#9c9c9c;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tuser-select: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-o-user-select:none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-ms-user-select:none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#drag{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toverflow: hidden !important;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t#closeIcon{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: -30px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tright: -27px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tz-index: 100000;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t.bluebutton{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: #FFFFff!important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: #cbcbcb;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 45px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: 45px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tletter-spacing: 2px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t.ant-input {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-box-sizing: border-box;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlist-style: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 4px 11px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 38px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: 1.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: rgba(0, 0, 0, 0.65);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-color: #fff;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-image: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: 1px solid #d9d9d9;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-transition: all .3s;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-o-transition: all .3s;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransition: all .3s;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n '),l.a.createElement(A.a,{type:"text",name:"username",value:"namename",style:{height:"0",width:"0",border:"none",display:"none"}}),l.a.createElement(A.a,{type:"password",name:"password",id:"password",value:"123123123",style:{height:"0",width:"0",border:"none",display:"none"}}),l.a.createElement(Dialog,{open:!0,id:"DialogIDysl",disableEscapeKeyDown:!0,style:{display:0==s?"none":"","border-radius":"10px"}},l.a.createElement("div",{id:"closeIcon",onClick:function(){t.handleDialogClose()}},l.a.createElement("i",{className:"iconfont icon-shanchudiao"})),l.a.createElement("div",{className:"login_register_content",style:{"border-radius":"10px",width:"560px"}},l.a.createElement("div",{className:"login_register_content",style:!0===i?{width:"560px",height:"295px","border-radius":"15px",background:" #FFFFff","text-align":"center",left:" 0px","box-sizing":"border-box",padding:"10px"}:{width:"560px",height:"410px","border-radius":"10px",background:" #FFFFff","text-align":"center",left:" 0px","box-sizing":"border-box",padding:"10px"}},l.a.createElement("ul",{style:{"margin-top":"10px","margin-bottom":"10px"}},l.a.createElement("span",{style:{"text-align":"center!important",color:"#05101A","font-weight":"bold","font-size":"17px"}},"\u8bd5\u7528\u7533\u8bf7")),l.a.createElement("div",{className:"log_nav",style:{width:"100%","margin-top":"10px"}}),l.a.createElement("div",{style:{"margin-top":"20px"}},l.a.createElement("span",{style:{color:"#4D4D4D"}}," \u60a8\u5c1a\u672a\u83b7\u5f97\u8bbf\u95ee\u6743\u9650\uff0c\u8bf7\u5982\u5b9e\u586b\u5199\u4e0b\u8ff0\u4fe1\u606f")),l.a.createElement("div",null,l.a.createElement("span",{style:{color:"#4D4D4D"}},"\u7ba1\u7406\u5458\u5ba1\u6838\u6279\u51c6\u540e\uff0c\u5373\u53ef\u7ee7\u7eed\u8bbf\u95ee\u7f51\u7ad9")),!0===i?"":l.a.createElement("div",{style:{"margin-top":"20px","padding-left":"50px","padding-right":"50px"}},l.a.createElement(A.a,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801",value:n,onChange:this.loginInputonChange,onBlur:function(e){return t.inputOnBlur(e)},style:{height:"38px"},className:u&&""!==u?r:"",name:"myiphone"}),u&&""!=u?l.a.createElement("p",{className:"color-red mt5 mb5",style:{width:" 100%",height:"20px",textAlign:"left"}},l.a.createElement("span",null,u)):l.a.createElement("div",{style:{height:"20px"}})),!0===i?"":l.a.createElement("div",{style:{display:"flex","justify-content":"center"}},l.a.createElement(A.a,{className:p&&""!==p?c:"fl mr5",name:"codes",type:"text",autoComplete:"off",readonly:!0,onfocus:"this.removeAttribute('readonly')",style:{width:"316px",height:"38px"},placeholder:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801",onChange:this.codesonChange,value:a}),void 0===d?l.a.createElement(y.a,{className:"fl ml5 ",disabled:!0,style:{background:"#4cacff!important",width:"120px","text-align":"center",height:"38px"},size:"large"},"\u91cd\u65b0\u53d1\u9001",h,"s"):!0===d?l.a.createElement(y.a,{className:"fl ml5 ",style:{background:"#4cacff!important",width:"120px","text-align":"center",height:"38px"},type:"primary",onClick:function(){return t.getverificationcode()},size:"large"},"\u83b7\u53d6\u9a8c\u8bc1\u7801"):l.a.createElement(y.a,{className:"fl ml5 ",style:{background:"#4cacff!important",width:"120px","text-align":"center",height:"38px"},type:"primary",onClick:function(){return t.getverificationcode()},size:"large"},"\u91cd\u65b0\u53d1\u9001")),p&&""!=p?l.a.createElement("p",{className:"color-red ",style:{width:" 100%",height:"20px",textAlign:"left"}},l.a.createElement("span",null,p)):l.a.createElement("div",{style:{height:"20px"}}),l.a.createElement("div",{style:{"padding-left":"50px","padding-right":"50px"}},l.a.createElement(A.a,{placeholder:"\u8bf7\u5728\u6b64\u8f93\u5165\u63a8\u8350\u4eba\u4fe1\u606f\u6216\u7533\u8bf7\u7406\u7531",value:o,onChange:this.loginInputonChanges,className:m&&""!==m?r:"",style:{height:"38px"},name:"mynames"}),m&&""!==m?l.a.createElement("p",{className:"color-red",style:{width:" 100%",height:"20px",textAlign:"left"}},l.a.createElement("span",null,m)):l.a.createElement("div",{style:{height:"20px"}})),l.a.createElement(y.a,{type:"primary",onClick:function(){return t.postregistered()},style:{background:"#4cacff!important",width:"120px","text-align":"center",height:"38px",marginTop:"10px"},size:"large"},"\u63d0\u4ea4\u7533\u8bf7"))))))}}]),e}(c.Component)),k=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(216)]).then(n.bind(null,2387))},loading:p.a}),S=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(141)]).then(n.bind(null,2388))},loading:p.a}),j=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(144)]).then(n.bind(null,2389))},loading:p.a}),M=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(142)]).then(n.bind(null,2390))},loading:p.a}),D=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(143)]).then(n.bind(null,2391))},loading:p.a}),_=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(98)]).then(n.bind(null,2411))},loading:p.a}),O=d()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(137)]).then(n.bind(null,2077))},loading:p.a}),G=window.$,Z=function(t){function e(t){var n;return Object(a.a)(this,e),(n=Object(s.a)(this,Object(i.a)(e).call(this,t))).componentDidMount=function(){b.a.get("/users/system_update.json").then((function(t){var e=t.data;n.setState({updata:e})})).catch((function(t){})),n.getInfo(n.props.match.params.username)},n.componentDidUpdate=function(t){n.props.current_user&&t.current_user!=n.props.current_user?n.props.current_user.login!=n.props.match.params.username&&n.setState({is_current:!1,login:n.props.current_user.login}):t.match.params.username!=n.props.match.params.username&&n.getInfo(n.props.match.params.username)},n.getInfo=function(t){var e="/users/".concat(t,"/homepage_info.json");b.a.get(e).then((function(t){t&&(403===t.data.status||401===t.data.status||500===t.data.status||404===t.data.status||n.setState({data:t.data,followed:t.data.followed,sign:t.data.brief_introduction,id:t.data.id,next_gold:t.data.tomorrow_attendance_gold}))})).catch((function(t){}))},n.editmysign=function(){n.setState({is_edit:!0},(function(){G("#mysign").focus()}))},n.inputSign=function(t){n.setState({sign:t.target.value})},n.savemysign=function(){var t=n.state.sign;b.a.post("/users/brief_introduction.json",{content:t}).then((function(t){t&&n.setState({is_edit:!1})})).catch((function(t){}))},n.changeType=function(t){n.setState({type:t.key})},n.turnTo=function(t){n.props.history.push(t)},n.signFor=function(){b.a.post("/users/attendance.json").then((function(t){t&&n.getInfo(n.props.match.params.username)})).catch((function(t){}))},n.followPerson=function(){var t=n.state,e=t.followed,a=t.id,o="/users/".concat(a,"/watch.json");e?b.a.delete(o).then((function(t){t&&n.setState({followed:!1})})).catch((function(t){})):b.a.post(o).then((function(t){t&&n.setState({followed:!0})})).catch((function(t){}))},n.cancelModulationModels=function(){n.setState({isRenders:!1})},n.ToBank=function(t){window.location.href=t},n.state={data:void 0,is_current:void 0,is_edit:!1,sign:void 0,type:0,login:void 0,isRenders:!1,moduleName:"courses",next_gold:void 0},n}return Object(r.a)(e,t),Object(o.a)(e,[{key:"render",value:function(){var t,e=this,n=this.state,a=(n.data,n.is_edit,n.sign,n.type,n.followed,n.id,n.isRenders),o=(n.moduleName,n.next_gold,!0);this.props.current_user&&this.props.current_user.login!=this.props.match.params.username&&(o=!1,t=this.props.current_user.login);var s={is_current:o,login:t};return l.a.createElement("div",{className:"newMain"},void 0===this.state.updata?"":l.a.createElement(h.a,this.state),a&&l.a.createElement(I,Object.assign({},this.props,this.state,{Cancel:function(){return e.cancelModulationModels()}})),l.a.createElement(E,Object.assign({},this.props,this.state,s,{signFor:this.signFor,followPerson:this.followPerson})),l.a.createElement(m.e,this.props,l.a.createElement(m.c,{exact:!0,path:"/users/:username/topics/:topicstype",render:function(t){return l.a.createElement(O,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username/courses",render:function(t){return l.a.createElement(S,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username/shixuns",render:function(t){return l.a.createElement(j,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username/paths",render:function(t){return l.a.createElement(M,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username/projects",render:function(t){return l.a.createElement(D,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username/package",render:function(t){return l.a.createElement(k,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username/videos",render:function(t){return l.a.createElement(_,Object.assign({},e.props,t,e.state,s))}}),l.a.createElement(m.c,{exact:!0,path:"/users/:username",render:function(t){return l.a.createElement(S,Object.assign({},e.props,t,e.state,s))}})))}}]),e}(c.Component);e.default=Z},984:function(t,e,n){}}]); |