From 118f5d7d63177dd846285e3a45b5ebdf215f0b0f Mon Sep 17 00:00:00 2001 From: Paidax Date: Thu, 29 Aug 2024 09:59:46 +0800 Subject: [PATCH] commit --- .../views/mobile/wakeshome/review/appraisal.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/resources/views/mobile/wakeshome/review/appraisal.html b/src/main/resources/views/mobile/wakeshome/review/appraisal.html index 9d19888..53e461f 100644 --- a/src/main/resources/views/mobile/wakeshome/review/appraisal.html +++ b/src/main/resources/views/mobile/wakeshome/review/appraisal.html @@ -140,6 +140,14 @@ layout("/mobile/platform.html"){ this.pageData() }, async toCommentator(o){ + + const start = new Date(o.startTime); + const end = new Date(o.endTime); + const now = new Date(); + + // 检查当前时间是否在 startTime 和 endTime 之间 + return now >= start && now <= end; + //自评模式 if (o.reviewMode == 1 && !o.canJoin) { vant.Dialog.alert({ @@ -158,7 +166,7 @@ layout("/mobile/platform.html"){ confirmButtonColor: '#1867b0' }) return - } + }`` const resp = await $.get('/mobile/wakeshome/review/appraisal/isAssess',{id:o.id}) if (resp.data > 0){