diff --git a/src/glcc/index.jsx b/src/glcc/index.jsx index cf616cf48..894f9e9df 100644 --- a/src/glcc/index.jsx +++ b/src/glcc/index.jsx @@ -86,6 +86,8 @@ const Glcc = (propsF) => { const [glccSettings, setGLccSetting] = useState(undefined); // 是否展示项目、课题列表入口 const [repoPublic, setRepoPublic] = useState(false); + // 是否处于项目/课题补录阶段 + const [applyRepo, setApplyRepo] = useState(false); useEffect(()=>{ if(id && id === "2022"){ @@ -101,8 +103,11 @@ const Glcc = (propsF) => { // 判断是否展示项目、课题 const publicRepoTask = res.data.filter(item=>item.name === "repoPublic"); publicRepoTask[0] && setRepoPublic(judge(nowTime, publicRepoTask[0].value, "range")) - // 过滤掉 项目课题公示时间 - const filterRepoPublic = res.data.filter(item=>item.name !== "repoPublic"); + // 是否处于项目/课题补录阶段 + const repoApply1 = res.data.filter(item=>item.name === "repoApply1"); + repoApply1[0] && setApplyRepo(judge(nowTime, repoApply1[0].value, "range")) + // 过滤掉 项目课题公示时间、项目/课题补录 + const filterRepoPublic = res.data.filter(item=>["repoPublic", "repoApply1"].indexOf(item.name) === -1); const periodIndex = filterRepoPublic.findIndex(item=>judge(nowTime, item.value, "range")); periodIndex !== -1 && setPeriod(filterRepoPublic[periodIndex].name); } @@ -188,12 +193,12 @@ const Glcc = (propsF) => {
{/* 学生报名 */} - ( )} - > + >} {/* 开源夏令营报名页面 */} {period === "repoApply" && { )} >} + {/* 导师报名课题路由通道 */} + {applyRepo && ( + + )} + >} {/* 教师审核 */} { )} > - ( )} - > + >} {/* 项目/课题列表 */} - ( - + )} - > + >} {/* 课题列表 */} - ( - + )} - > + >} {/* openmmlab列表 */} { window.scrollTo(0, 0); },[])