From ceec61415670a048c7fc66b855ddaf6cdca71698 Mon Sep 17 00:00:00 2001
From: Dragon <13925835632@139.com>
Date: Thu, 28 Sep 2023 10:08:53 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E4=BC=98=E5=8C=96=E5=8E=A8?=
=?UTF-8?q?=E6=88=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
view/peko/activity/act-kitchen/js/index.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/view/peko/activity/act-kitchen/js/index.js b/view/peko/activity/act-kitchen/js/index.js
index 398aefa..ae04e65 100644
--- a/view/peko/activity/act-kitchen/js/index.js
+++ b/view/peko/activity/act-kitchen/js/index.js
@@ -106,12 +106,12 @@ function getNewestAct () {
showResultStageStartTime = res.data.showResultStageStartTime
endTime = res.data.endTime
clearInterval(circulateTime);
+ listItem(roundId);
if (startTime <= userComeinTime && userComeinTime < drawStageStartTime) {
// 第一阶段
console.log("第一阶段");
countupTimes = Math.floor(((drawStageStartTime - startTime) - (userComeinTime - startTime)) / 1000 + 1);
countup(1);
- listItem(roundId);
$('.masks').hide();
$('.result_popup').hide();
} else if (drawStageStartTime <= userComeinTime && userComeinTime < showResultStageStartTime) {
@@ -189,13 +189,13 @@ function countup (status) {
countupTimes--
if (countupTimes <= 0) {
if (status == 1) {
- $('.box .boxTitle').html(`請選擇:${0} 秒`);
+ $('.box .boxTitle').html(`請選擇:${countupTimes} 秒`);
} else if (status == 2) {
circulate = 0;
- $('.box .boxTitle').html(`开奖中:${0} 秒`);
+ $('.box .boxTitle').html(`开奖中:${countupTimes} 秒`);
} else {
- $('.box .boxTitle').html(`下一轮:${0} 秒`);
- $('.result_popup .result_popup_in .result_popup_inTitle b').html(`${0}`);
+ $('.box .boxTitle').html(`下一轮:${countupTimes} 秒`);
+ $('.result_popup .result_popup_in .result_popup_inTitle b').html(`${countupTimes}`);
}
getNewestAct();
clearInterval(timer);