每日任务 - 修改点击切换档位时,切换成功未成功图片的父元素类名
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user