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) {