From c04193bf84a1aec9fc7521f5eda463536bd4c0af Mon Sep 17 00:00:00 2001 From: DevOps Date: Sat, 10 Jan 2026 12:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=9B=E4=BA=8B=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8A=A8=E6=80=81=E8=AE=A1=E7=AE=97=EF=BC=9A=E6=8A=A5?= =?UTF-8?q?=E5=90=8D=E7=BB=93=E6=9D=9F=E5=BD=93=E5=A4=A9=E5=85=A8=E5=A4=A9?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=8A=A5=E5=90=8D=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - competition/index.vue: 列表页状态动态计算 - competition/list.vue: 添加calculateStatus方法 - order/index.vue: 修复报名结束当天判断逻辑 - schedule/index.vue: 修复标记签到语法错误 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- src/views/martial/competition/index.vue | 6 +++--- src/views/martial/competition/list.vue | 4 ++-- src/views/martial/order/index.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/martial/competition/index.vue b/src/views/martial/competition/index.vue index 2a46229..e443d6e 100644 --- a/src/views/martial/competition/index.vue +++ b/src/views/martial/competition/index.vue @@ -85,10 +85,10 @@ > @@ -1966,7 +1966,7 @@ export default { return 3; } // 报名中 - if (regStart && regEnd && now >= regStart && now <= regEnd) { + if (regStart && regEnd && now >= regStart && now <= new Date(regEnd.getFullYear(), regEnd.getMonth(), regEnd.getDate(), 23, 59, 59)) { return 2; } // 未开始(默认状态) diff --git a/src/views/martial/competition/list.vue b/src/views/martial/competition/list.vue index ff233e3..bcc4ba8 100644 --- a/src/views/martial/competition/list.vue +++ b/src/views/martial/competition/list.vue @@ -60,10 +60,10 @@ > diff --git a/src/views/martial/order/index.vue b/src/views/martial/order/index.vue index 89e5a62..f1b236e 100644 --- a/src/views/martial/order/index.vue +++ b/src/views/martial/order/index.vue @@ -261,7 +261,7 @@ export default { const compEnd = row.competitionEndTime ? new Date(row.competitionEndTime) : null if (compEnd && now > compEnd) return 4 if (compStart && now >= compStart) return 3 - if (regStart && regEnd && now >= regStart && now <= regEnd) return 2 + if (regStart && regEnd && now >= regStart && now <= new Date(regEnd.getFullYear(), regEnd.getMonth(), regEnd.getDate(), 23, 59, 59)) return 2 return 1 },