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.
NewEduCoderBuild/static/js/87.cbce9f56.chunk.js

1 line
21 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(this.webpackJsonp=this.webpackJsonp||[]).push([[87],{B6BU:function(t,e,n){},CjtM:function(t,e,n){"use strict";n("U4At");var a=n("KiF4"),r=n("xwgP"),o=n.n(r),s=n("sYIF");n("B6BU"),n("TnMl");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,r,i=u(p);function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),h(f(e=i.call(this,t)),"modalCancel",(function(){try{e.props.setgoshowqqgtounp(!1)}catch(t){}})),h(f(e),"setDownload",(function(){try{e.props.setgoshowqqgtounp(!1)}catch(t){}})),e}return e=p,(n=[{key:"render",value:function(){var t=this;return o.a.createElement(a.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"提示",centered:!0,visible:void 0!==this.props.goshowqqgtounp&&this.props.goshowqqgtounp,width:"530px"},o.a.createElement("div",{className:"educouddiv intermediatecenter verticallayout"},o.a.createElement("div",{className:"tabeltext-alignleft mt10"},o.a.createElement("p",null,"您可以在QQ服务群向管理员申请获得继续操作的权限")),o.a.createElement("img",{width:"200px",className:"mt10",src:Object(s.C)("images/educoder/qqqun20191230.png")}),o.a.createElement("div",{className:"tabeltext-alignleft mt10"},o.a.createElement("p",null,"群号612934990")),o.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},o.a.createElement("a",{className:"task-btn mr30",onClick:function(){return t.modalCancel()}},"取消"),o.a.createElement("a",{className:"task-btn task-btn-orange",target:"_blank",href:"//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"},"立即联系"))))}}])&&c(e.prototype,n),r&&c(e,r),p}(r.Component);e.a=y},TnMl:function(t,e,n){},Xysg:function(t,e,n){"use strict";n.r(e);n("N452");var a=n("Wyac"),r=(n("qb5G"),n("wLbl")),o=(n("oB2B"),n("ijLx")),s=(n("ND/B"),n("B0Ox")),i=n("xwgP"),c=n.n(i),l=n("aOru"),u=n("91MD"),p=n.n(u),f=n("sYIF"),m=(n("4z8r"),n("cQ1s")),h=n("CjtM");function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function d(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=x(t);if(e){var r=x(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?E(t):e}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(y,t);var e,n,i,u=w(y);function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),N(E(e=u.call(this,t)),"componentDidMount",(function(){var t=e.state,n=t.category,a=t.status,r=t.sort_by,o=t.page,s=t.sort_direction;e.getCourses(n,a,r,o,s)})),N(E(e),"getCourses",(function(t,n,a,r,o){var s="/users/".concat(e.props.match.params.username,"/shixuns.json");p.a.get(s,{params:{category:t,status:n,sort_by:a,page:r,sort_direction:o,per_page:e.props.is_current&&t&&1==r?17:16}}).then((function(t){t&&(console.log("请求数据成功"),console.log(a),e.setState({totalCount:t.data.count,data:t.data,sort_by:a,sort_direction:o,isSpin:!1}))})).catch((function(t){console.log(t),e.setState({isSpin:!1})}))})),N(E(e),"changeCategory",(function(t){e.setState({category:t,status:void 0,page:1,isSpin:!0});var n=e.state,a=n.sort_by,r=n.sort_direction;e.getCourses(t,void 0,a,1,r)})),N(E(e),"changeStatus",(function(t){e.setState({status:t,page:1,isSpin:!0});var n=e.state,a=n.category,r=n.sort_by,o=n.sort_direction;e.getCourses(a,t,r,1,o)})),N(E(e),"changePage",(function(t){e.setState({page:t,isSpin:!0});var n=e.state,a=n.category,r=n.sort_by,o=n.status,s=n.sort_direction;e.getCourses(a,o,r,t,s)})),N(E(e),"turnToCourses",(function(t){e.props.history.push(t)})),N(E(e),"changeOrder",(function(t){e.setState({sort_by:t,isSpin:!0});var n=e.state,a=n.category,r=n.status,o=n.page,s=n.sort_direction;e.getCourses(a,r,t,o,s)})),N(E(e),"setgoshowqqgtounp",(function(t){e.setState({goshowqqgtounp:t})})),e.state={category:void 0,page:1,status:void 0,per_page:16,isSpin:!1,sort_by:"updated_at",sort_direction:"desc",totalCount:void 0,data:void 0,goshowqqgtounp:!1},e}return e=y,(n=[{key:"updatedlist",value:function(t){this.setState({isSpin:!0});var e=this.state,n=e.category,a=e.status;e.page,e.sort_direction,this.getCourses(n,a,t,1,"desc")}},{key:"updatedlists",value:function(t){this.setState({isSpin:!0});var e=this.state,n=e.category,a=e.status,r=e.page,o=e.sort_by,s=e.sort_direction,i=t;"asc"===t?t===s&&(i="desc"):"desc"===t&&t===s&&(i="asc"),this.getCourses(n,a,o,r,i)}},{key:"render",value:function(){var t=this,e=this.state,n=e.category,i=e.status,u=e.sort_by,p=e.page,y=e.data,d=e.totalCount,b=e.sort_direction,w=e.isSpin,v=e.goshowqqgtounp,E=this.props.is_current,x=c.a.createElement(s.a,null,c.a.createElement(s.a.Item,{onClick:function(){return t.updatedlist("updated_at")}},"最新动态"),c.a.createElement(s.a.Item,{onClick:function(){return t.updatedlist("created_at")}},"语言类别"));return c.a.createElement("div",{className:"educontent"},!0===v?c.a.createElement(h.a,g({},this.state,this.props,{setgoshowqqgtounp:function(e){return t.setgoshowqqgtounp(e)}})):"",c.a.createElement(a.a,{size:"large",spinning:w},c.a.createElement("style",null,"\n .whitepanelyslli {\n width: 33px !important;\n height: 48px !important;\n line-height: 46px !important;\n }\n .whitepanelyslliss {\n width: 32px !important;\n height: 48px !important;\n line-height: 46px !important;\n }\n \n .whitepanelysllis {\n width: 66px !important;\n height: 48px !important;\n line-height: 46px !important;\n margin-left: 40px !important;\n }\n \n .whitepanelysllisyt {\n width: 60px !important;\n height: 48px !important;\n line-height: 46px !important;\n margin-left: 40px !important;\n }\n "),c.a.createElement("div",{className:"white-panel edu-back-white pt20 pb20 clearfix "},c.a.createElement("li",{className:n?" font-16 whitepanelyslli":"active font-16 whitepanelyslli"},c.a.createElement("a",{onClick:function(){return t.changeCategory()},className:"font-16"},"全部")),c.a.createElement("li",{className:"manage"==n?"active font-16 whitepanelysllis":"font-16 whitepanelysllis"},c.a.createElement("a",{onClick:function(){return t.changeCategory("manage")},className:E?"font-16 w66":"font-16 w80"},E?"我":"TA","管理的")),c.a.createElement("li",{className:"study"==n?"active font-16 whitepanelysllis":"font-16 whitepanelysllis"},c.a.createElement("a",{onClick:function(){return t.changeCategory("study")},className:E?"font-16 w66":"font-16 w80"},E?"我":"TA","学习的")),c.a.createElement("li",{className:"collect"==n?"active font-16 whitepanelysllis":"font-16 whitepanelysllis"},c.a.createElement("a",{onClick:function(){return t.changeCategory("collect")},className:E?"font-16 w66":"font-16 w80"},E?"我":"TA","收藏的"))),c.a.createElement("style",null," .secondNavs li {\n color: #676767;\n /* margin: 0px 20px; */\n float: left;\n }\n .secondNavs li a:hover{\n color: #4CACFF\n }\n .secondNavs li.active a{\n color: #4CACFF\n }\n "),n&&"manage"==n&&E&&c.a.createElement("div",{className:"edu-back-white padding10-30 clearfix secondNavs bor-top-greyE"},c.a.createElement("li",{className:i?"whitepanelyslliss":"active whitepanelyslliss"},c.a.createElement("a",{onClick:function(){return t.changeStatus()},className:"w32"},"全部")),c.a.createElement("li",{className:"editing"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("editing")},className:"w60"},"编辑中")),c.a.createElement("li",{className:"applying"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("applying")},className:"w60"},"待审核")),c.a.createElement("li",{className:"published"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("published")},className:"w60"},"已发布")),c.a.createElement("li",{className:"publiced"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("publiced")},className:"w60"},"已公开")),c.a.createElement("li",{className:"closed"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("closed")},className:"w60"},"已关闭"))),n&&"study"==n&&E&&c.a.createElement("div",{className:"edu-back-white padding10-30 clearfix secondNavs bor-top-greyE"},c.a.createElement("li",{className:i?"whitepanelyslliss":"active whitepanelyslliss"},c.a.createElement("a",{onClick:function(){return t.changeStatus()},className:"w32"},"全部")),c.a.createElement("li",{className:"processing"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("processing")},className:"w60"},"未通关")),c.a.createElement("li",{className:"passed"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("passed")},className:"w60"},"已通关"))),n&&"collect"==n&&E&&c.a.createElement("div",{className:"edu-back-white padding10-30 clearfix secondNavs bor-top-greyE"},c.a.createElement("li",{className:i?"whitepanelyslliss":"active whitepanelyslliss"},c.a.createElement("a",{onClick:function(){return t.changeStatus()},className:"w32"},"全部")),c.a.createElement("li",{className:"processing"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("processing")},className:"w60"},"未通关")),c.a.createElement("li",{className:"passed"==i?"active whitepanelysllisyt":"whitepanelysllisyt"},c.a.createElement("a",{onClick:function(){return t.changeStatus("passed")},className:"w60"},"已通关"))),c.a.createElement("div",{className:" clearfix font-12 ",style:{lineHeight:"41px",marginTop:"10px"}},c.a.createElement("span",{className:"fl color-grey-9"},n&&"collect"==n?"共收藏":"共参与",d,"个",n&&"collect"==n?"":n?"manage"==n?"发布":"学习":"实训"),c.a.createElement("sapn",{className:"relativef color-grey-9 fr",style:{display:"flex",flexDirection:"column",height:"40px",lineHeight:"40px"}},c.a.createElement("span",{style:{flexDirection:"column",textAlign:"center",height:"10px",lineHeight:"10px",display:"table",marginTop:"9px"}},c.a.createElement("i",{className:"asc"===b?"iconfont icon-sanjiaoxing-up font-12 color-blue h10 ":"iconfont icon-sanjiaoxing-up font-12 h10",onClick:function(){return t.updatedlists("asc")}})),c.a.createElement("span",{style:{flexDirection:"column",height:"10px",lineHeight:"10px",textAlign:"center",display:"table"}},c.a.createElement("i",{className:"desc"===b?"iconfont icon-sanjiaoxing-down font-12 yslbottomsj color-blue h10":"iconfont icon-sanjiaoxing-down font-12 yslbottomsj h10",onClick:function(){return t.updatedlists("desc")}}))),c.a.createElement(o.a,{overlay:x},c.a.createElement("span",{className:"fr color-grey-9 mr10 pointer ",style:{display:"flex",flexDirection:"initial"}},c.a.createElement("span",null,"updated_at"===u?"最新动态":"created_at"===u?"语言类别":"")))),c.a.createElement("style",null,"\n\t\t\t\t\t\t\t.tag-green {\n\t\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\t\tleft: 10px;\n\t\t\t\t\t\t\t\t\tbottom: 100px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.square-list{width: 100%;box-sizing: border-box;margin-top:10px}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t.tag-org{\n\t\t\t\t\t\t\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\t\t\t\t\t\t\t\tleft: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 20px;\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t.tag-org-name{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth:66px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight:28px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground:#FF6802;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth:66px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight:28px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius:0px 20px 20px 0px;\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t.tag-org-name-test{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth:45px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight:23px;\n\t\t\t\t\t\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\t\t\t\t\t\tcolor:#FFFFFF;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height:19px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmargin-right: 6px;\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t.intermediatecenter{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tflex-direction: column;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"),c.a.createElement("div",{className:"square-list clearfix"},1==p&&E&&!n?c.a.createElement(m.a,g({href:"/shixuns/new",name:"新建实训",index:"2"},this.props,this.state,{setgoshowqqgtounp:function(e){return t.setgoshowqqgtounp(e)}})):"",(!y||y&&0==y.shixuns.length)&&n&&c.a.createElement(l.a,null),y&&y.shixuns&&y.shixuns.map((function(e,n){return c.a.createElement("a",{className:"square-Item",href:"/shixuns/".concat(e.identifier,"/challenges"),style:{height:"298px"},onClick:function(){return t.turnToCourses("/shixuns/".concat(e.identifier,"/challenges"))}},e.tag&&c.a.createElement("div",{className:"tag-green"},c.a.createElement("span",{className:"tag-name"},e.tag)),!0===e.is_jupyter?c.a.createElement("div",{className:"tag-org"},c.a.createElement("p",{className:"tag-org-name intermediatecenter"}," ",c.a.createElement("span",{className:"tag-org-name-test"},"Jupyter"))):"",c.a.createElement("a",{className:"square-img"},c.a.createElement("img",{src:Object(f.Y)("".concat(e.image_url))})),c.a.createElement("div",{className:"square-main"},c.a.createElement("p",{className:"task-hide"},c.a.createElement("a",{className:"justify color-grey-name"},e.name)),c.a.createElement("div",{className:"user-bar mt10"},c.a.createElement("p",{style:{width:"".concat(100*parseFloat(parseInt(e.finished_challenges_count)/parseInt(e.challenges_count)).toFixed(2),"%")}})),c.a.createElement("p",{className:"color-blue font-14 clearfix"},"已完成 ",e.finished_challenges_count," / ",e.challenges_count)))}))),d>15&&c.a.createElement("div",{className:"mt30 mb50 edu-txt-center"},c.a.createElement(r.a,{showQuickJumper:!0,total:d,onChange:this.changePage,pageSize:16,current:p}))))}}])&&d(e.prototype,n),i&&d(e,i),y}(i.Component);e.default=_},cQ1s:function(t,e,n){"use strict";var a=n("xwgP"),r=n.n(a);n("4z8r");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(u,t);var e,n,a,o=l(u);function u(){var t;s(this,u);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return m(p(t=o.call.apply(o,[this].concat(n))),"getUser",(function(e,n){t.props.user&&void 0===t.props.user.email||t.props.user&&null===t.props.user.email||t.props.user&&""===t.props.user.email?t.props.showNotification("请先绑定邮箱,谢谢"):"新建实训"===n&&t.props&&t.props.current_user&&!1===t.props.current_user.is_shixun_marker?t.props.setgoshowqqgtounp(!0):void 0===e&&""===e||(window.location.href=e)})),m(p(t),"getUsers",(function(e,n){"新建实训"===n&&t.props&&t.props.current_user&&!1===t.props.current_user.is_shixun_marker?t.props.setgoshowqqgtounp(!0):void 0===e&&""===e||(window.location.href=e)})),t}return e=u,(n=[{key:"render",value:function(){var t=this,e=this.props,n=e.href,a=e.name,o=e.index;return r.a.createElement("div",{className:"square-Item",style:{height:"".concat("1"===o?"300":"2"===o?"298":"3"===o?"295":"289","px")}},r.a.createElement("div",{className:"substance substancepad"},"projects"===this.props.Createtype?r.a.createElement("a",{onClick:function(){return t.getUser(n,a)}},r.a.createElement("div",{className:"substancenenew"},r.a.createElement("div",{className:"leftten"}),r.a.createElement("div",{className:"topten"}))):r.a.createElement("a",{onClick:function(){return t.getUsers(n,a)}},r.a.createElement("div",{className:"substancenenew"},r.a.createElement("div",{className:"leftten"}),r.a.createElement("div",{className:"topten"})))),r.a.createElement("div",{className:"edu-txt-center course-bottom"},r.a.createElement("div",{className:"inline color-grey-6"},r.a.createElement("span",{className:"fl ml10 mr10 squareIconSpan substancefont"},a))))}}])&&i(e.prototype,n),a&&i(e,a),u}(a.Component);e.a=h}}]);