diff --git a/src/glcc/home/timerShaft/index.jsx b/src/glcc/home/timerShaft/index.jsx index 67d15bc4a..37a1bf372 100644 --- a/src/glcc/home/timerShaft/index.jsx +++ b/src/glcc/home/timerShaft/index.jsx @@ -5,6 +5,7 @@ import { formatParsedResult } from '../../api'; function TimerShaft(props) { const {current_user, period, history, showLoginDialog, id, glccSettings} = props; + let repoApplyEnd = undefined const step = [{ title: "Step1", date: "4.22", @@ -71,6 +72,9 @@ function TimerShaft(props) { const repoApply = glccSettings.filter(item=>item.name === "repoApply"); repoApply[0] && (step[0].date = formatParsedResult(repoApply, "startMonthDay")) repoApply[0] && (step[1].date = formatParsedResult(repoApply, "rangeConcatDot")) + if(repoApply[0]){ + repoApplyEnd = new Date(repoApply[0].value.split(",")[1]).getTime()-new Date().getTime() < 0 + } // 学生报名 const stuApply = glccSettings.filter(item=>item.name === "stuApply"); stuApply[0] && (step[3].date = formatParsedResult(stuApply, "rangeConcatDot")) @@ -93,12 +97,12 @@ function TimerShaft(props) {

有兴趣成为GLCC的导师吗?

想要扩大项目知名度和影响力,为开源项目吸引新鲜血液,培养长期开发者。通过GitLink平台,与高校建立连接,指导开源新人传授他们的开源文化,享受开源的乐趣
- {period === "repoApply" ?
立即报名
:
项目报名已结束
} + {period === "repoApply" ?
立即报名
:
项目报名{repoApplyEnd ? "已结束" : "敬请期待"}
}

你是开源新手,有兴趣参加GLCC吗?

想要参与一线开源项目开发,熟悉开源社区运作流程,接受资深开源软件专家指导,获得丰厚奖金和实习机会。参加GLCC,开启全新的开源之旅。
- {(period === "stuApply" || period === "stuApply1") ?
学生报名
:
学生报名{period === "repoApply" ? "敬请期待" : "已结束"}
} + {(period === "stuApply" || period === "stuApply1") ?
学生报名
:
学生报名{(period === "repoApply" || !period) ? "敬请期待" : "已结束"}
}