build/static/js/128.03d2ac88.chunk.js

1 line
2.1 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[128],{EjfP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("W9HT"));n("04bd");var l=n("q1tI"),u=o(l),c=n("eO8H"),r=o(n("v/XU"));n("LnQG");var d=o(n("CnBM")),s=o(n("HUFq"));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,d.default)({loader:function(){return n.e(117).then(n.t.bind(null,"DCaW",7))},loading:s.default}),f=(0,d.default)({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(10),n.e(57)]).then(n.t.bind(null,"CriP",7))},loading:s.default});t.default=function(e){var t=e.location,n=e.current_user,d=e.showLoginDialog,s=e.isStudentApplyDate,o=e.studentApplyEnd,p=e.applyTaskId,m=e.setStudentInfoReset,g=t.pathname;return(0,l.useEffect)((function(){window.scrollTo(0,0)}),[]),u.default.createElement("div",{className:"glcc_project"},u.default.createElement("img",{className:"glcc-banner",src:r.default,alt:""}),u.default.createElement("div",{className:"head"},u.default.createElement(c.Link,{to:"/glcc/subjects",className:g.endsWith("projects")?"":"active"},"课题列表"),u.default.createElement(c.Link,{to:"/glcc/projects",className:g.endsWith("projects")?"active":""},"项目列表")),u.default.createElement("div",{className:"gobackBox"},u.default.createElement("a",{href:"/glcc"},"开源夏令营 / "),"课题及项目列表"),u.default.createElement(a.default,{spinning:!1},u.default.createElement(c.Switch,e,u.default.createElement(c.Route,{path:"/glcc/projects",render:function(e){return u.default.createElement(i,{applyTaskId:p,current_user:n,showLoginDialog:d,isStudentApplyDate:s,studentApplyEnd:o})}}),u.default.createElement(c.Route,{path:"/glcc/subjects",render:function(e){return u.default.createElement(f,{applyTaskId:p,setStudentInfoReset:m,current_user:n,showLoginDialog:d,isStudentApplyDate:s,studentApplyEnd:o})}}),u.default.createElement(c.Route,{path:"/glcc/student",render:function(e){return u.default.createElement(f,{applyTaskId:p,setStudentInfoReset:m,current_user:n,showLoginDialog:d,isStudentApplyDate:s,studentApplyEnd:o})}}))))}},LnQG:function(e,t,n){},"v/XU":function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/studentProject.d14e51c5.png"}}]);