|
|
@@ -346,6 +346,12 @@ async function getTenderDetail() {
|
|
|
function getLeftTime(givenTime = "2099-12-31 23:59:59") {
|
|
|
givenTime = new Date(givenTime);
|
|
|
const currentTime = new Date();
|
|
|
+
|
|
|
+ // 检查当前时间是否超出了截止时间
|
|
|
+ if (currentTime > givenTime) {
|
|
|
+ return "已超过截止时间";
|
|
|
+ }
|
|
|
+
|
|
|
const differenceInMilliseconds = Math.abs(givenTime - currentTime);
|
|
|
const days = Math.floor(differenceInMilliseconds / (1000 * 60 * 60 * 24));
|
|
|
const hours = Math.floor(
|