From 282cd855b3113f351224d57eead3b88f85f0dfb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Fri, 19 Apr 2024 13:49:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=88=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/home/timerShaft/index.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {