From 3e82aa92c816a23eca75f058ab0580de4caa2a7e Mon Sep 17 00:00:00 2001 From: yujiacong <1016029365@qq.com> Date: Thu, 11 Sep 2025 15:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=97=A5=E4=BB=BB=E5=8A=A1=20-=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=82=B9=E5=87=BB=E5=88=87=E6=8D=A2=E6=A1=A3?= =?UTF-8?q?=E4=BD=8D=E6=97=B6=EF=BC=8C=E5=88=87=E6=8D=A2=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E6=9C=AA=E6=88=90=E5=8A=9F=E5=9B=BE=E7=89=87=E7=9A=84=E7=88=B6?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E7=B1=BB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/modules/taskCenter/js/index.js | 44 ++++++++++---------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/view/molistar/modules/taskCenter/js/index.js b/view/molistar/modules/taskCenter/js/index.js index e95f2cb7..d7532ba7 100644 --- a/view/molistar/modules/taskCenter/js/index.js +++ b/view/molistar/modules/taskCenter/js/index.js @@ -152,7 +152,6 @@ $('.tab_list').on('click', '.tab_box', function () { $(this).find('.xian').show(); tasktabtypeNum = $(this).attr('tasktabtype'); getTaskList(tasktabtypeNum) - diamondindexvo = 0; }) var signDayData = {}; function getCheckData() { @@ -250,6 +249,7 @@ var guildShiningTaskVos; //麦上活跃2 - 数据 var RoomCoinsIncome;//房间金币流水 - data // 任务列表 function getTaskList(taskTabType) { + diamondindexvo = 0; $('.box_en2').hide(); $('.task_List').show(); showLoading(); @@ -901,9 +901,9 @@ $('.Daily_list').on('click', '.day_tab_box', function () { // 更新进度图片 if (progressWidth >= 100) { - container.find('.right img').attr('src', './images/gougou.png'); + container.find('.bottom_live .right img').attr('src', './images/gougou.png'); } else { - container.find('.right img').attr('src', './images/weigougou.png'); + container.find('.bottom_live .right img').attr('src', './images/weigougou.png'); } // 更新按钮状态,如果是昨日,则用外层status;如果是今日,则用levelVos[0]的status @@ -983,9 +983,9 @@ $('.Daily_list').on('click', '.levelVos_box', function () { // 更新进度图片 if (progressWidth >= 100) { - container.find('.right img').attr('src', './images/gougou.png'); + container.find('.bottom_live .right img').attr('src', './images/gougou.png'); } else { - container.find('.right img').attr('src', './images/weigougou.png'); + container.find('.bottom_live .right img').attr('src', './images/weigougou.png'); } // 更新按钮状态 @@ -1056,9 +1056,9 @@ $('.Daily_list').on('click', '.guildTaskVos_box', function () { $('.daily_diamond_box .progress-bar').css('width', diamondNumProgress * 100 + '%') // 更新进度图片 if (diamondNumProgress >= 1) { - $('.daily_diamond_box .right img').attr('src', './images/gougou.png'); + $('.daily_diamond_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.daily_diamond_box .right img').attr('src', './images/weigougou.png'); + $('.daily_diamond_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 各档位进度条展示 - 主播人数 @@ -1067,9 +1067,9 @@ $('.Daily_list').on('click', '.guildTaskVos_box', function () { $('.hosts_number_box .progress-bar').css('width', guildCreateTaskVos[arrIndex].curAnchorNum / guildCreateTaskVos[arrIndex].anchorNum * 100 + '%') // 更新进度图片 if (anchorNumProgress >= 1) { - $('.hosts_number_box .right img').attr('src', './images/gougou.png'); + $('.hosts_number_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.hosts_number_box .right img').attr('src', './images/weigougou.png'); + $('.hosts_number_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 更新按钮状态 @@ -1127,9 +1127,9 @@ $('.Daily_list').on('click', '.guildLivestreamTaskVos_box', function () { $('.Hosts_one_time_box .progress-bar').css('width', anchorMicReachNumProgress * 100 + '%') // 更新进度图片- 主播达到120mins上麦时长 if (anchorMicReachNumProgress >= 1) { - $('.Hosts_one_time_box .right img').attr('src', './images/gougou.png'); + $('.Hosts_one_time_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.Hosts_one_time_box .right img').attr('src', './images/weigougou.png'); + $('.Hosts_one_time_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 各档位进度条展示 - 公会人数 @@ -1138,9 +1138,9 @@ $('.Daily_list').on('click', '.guildLivestreamTaskVos_box', function () { $('.Members_Number_box .progress-bar').css('width', anchorNumProgress * 100 + '%') // 更新进度图片- 公会人数 if (anchorNumProgress >= 1) { - $('.Members_Number_box .right img').attr('src', './images/gougou.png'); + $('.Members_Number_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.Members_Number_box .right img').attr('src', './images/weigougou.png'); + $('.Members_Number_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 更新按钮状态 @@ -1202,9 +1202,9 @@ $('.Daily_list').on('click', '.guildShiningTaskVos_box', function () { $('.Hosts_two_time_box .progress-bar').css('width', anchorMicReachNumProgress * 100 + '%') // 更新进度图片- 主播达到120mins上麦时长 if (anchorMicReachNumProgress >= 1) { - $('.Hosts_two_time_box .right img').attr('src', './images/gougou.png'); + $('.Hosts_two_time_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.Hosts_two_time_box .right img').attr('src', './images/weigougou.png'); + $('.Hosts_two_time_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 各档位进度条展示 - 公会人数 @@ -1213,9 +1213,9 @@ $('.Daily_list').on('click', '.guildShiningTaskVos_box', function () { $('.Members_two_Number_box .progress-bar').css('width', anchorNumProgress * 100 + '%') // 更新进度图片- 公会人数 if (anchorNumProgress >= 1) { - $('.Members_two_Number_box .right img').attr('src', './images/gougou.png'); + $('.Members_two_Number_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.Members_two_Number_box .right img').attr('src', './images/weigougou.png'); + $('.Members_two_Number_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 各档位进度条展示 - 当日钻石流水 @@ -1224,9 +1224,9 @@ $('.Daily_list').on('click', '.guildShiningTaskVos_box', function () { $('.Agency_income_box .progress-bar').css('width', diamondNumProgress * 100 + '%') // 更新进度图片- 当日钻石流水 if (diamondNumProgress >= 1) { - $('.Agency_income_box .right img').attr('src', './images/gougou.png'); + $('.Agency_income_box .bottom_live .right img').attr('src', './images/gougou.png'); } else { - $('.Agency_income_box .right img').attr('src', './images/weigougou.png'); + $('.Agency_income_box .bottom_live .right img').attr('src', './images/weigougou.png'); } // 更新按钮状态 @@ -1580,6 +1580,8 @@ function countup(leftTime, type) { $('.countdown_box').html((d + 'D' + ' ' + h + ':' + m + ':' + s)); } else { $('.countdown_box').html('0D 00:00:00'); + getCheckData(); + getTaskList(tasktabtypeNum); } if (leftTime > 0) { leftTime = leftTime - 1; @@ -1618,6 +1620,8 @@ function countupWeek(leftTime, type) { $('.hour_txt').text('00'); $('.min_txt').text('00'); $('.secs_txt').text('00'); + getCheckData(); + getTaskList(tasktabtypeNum); } if (leftTime > 0) { leftTime = leftTime - 1; @@ -1648,9 +1652,7 @@ document.addEventListener('visibilitychange', () => { // 重新请求接口获取最新的倒计时数据 pauseCountdown(); getCheckData(); - console.log(tabLocked); if (tabLocked != 'true') return getTaskList(tasktabtypeNum); - diamondindexvo = 0; } }); \ No newline at end of file