From 53b47fb2e67a561284bdfb976df7a81b5d583711 Mon Sep 17 00:00:00 2001
From: Dragon <13925835632@139.com>
Date: Fri, 3 Nov 2023 14:25:51 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A6=9C=E5=8D=95=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=BC=82=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
view/yinmeng/activity/2023-ruffian/js/index.js | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/view/yinmeng/activity/2023-ruffian/js/index.js b/view/yinmeng/activity/2023-ruffian/js/index.js
index 1c85372..3eca4e2 100644
--- a/view/yinmeng/activity/2023-ruffian/js/index.js
+++ b/view/yinmeng/activity/2023-ruffian/js/index.js
@@ -118,7 +118,7 @@ function getRank (rankType, type, date) {
top3.forEach((res, i) => {
$(`.page2 .listBg .topBox .no${i + 1} .tx`).attr('src', res.avatar);
$(`.page2 .listBg .topBox .no${i + 1} p`).text(res.nick);
- $(`.page2 .listBg .topBox .no${i + 1} span`).text(`${type == 1 || type == 2 ? "勇气值:" : "狂欢值:"}${unitProcessing(res.score, 10000, 1, 'w')}`);
+ $(`.page2 .listBg .topBox .no${i + 1} span`).text(`${type == 1 ? "勇气值:" : "狂欢值:"}${unitProcessing(res.score, 10000, 1, 'w')}`);
})
// 非前三
var str = '';
@@ -128,7 +128,7 @@ function getRank (rankType, type, date) {
${res.ranking}
${res.nick}
- ${type == 1 || type == 2 ? "勇气值:" : "狂欢值:"}${unitProcessing(res.score, 10000, 1, 'w')}
+ ${type == 1 ? "勇气值:" : "狂欢值:"}${unitProcessing(res.score, 10000, 1, 'w')}
`
})
@@ -137,7 +137,7 @@ function getRank (rankType, type, date) {
$('.page2 .myList .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
$('.page2 .myList .tx').attr('src', res.data.meRank.avatar);
$('.page2 .myList .nick').text(res.data.meRank.nick);
- $('.page2 .myList .score').text(`${type == 1 || type == 2 ? "勇气值:" : "狂欢值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`);
+ $('.page2 .myList .score').text(`${type == 1 ? "勇气值:" : "狂欢值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`);
} else {
toastMsg(res.message)
}
@@ -156,6 +156,7 @@ $('.page2 .listTab div').click(function () {
$('.page2 .listBg .dayTab div').removeClass('active');
$('.page2 .listBg .dayTab div').eq(2).addClass('active');
type = i;
+ dayTime = null;
if (i == 1) {
rankType = 2;
} else {
@@ -169,12 +170,14 @@ $('.page2 .listBg .dayTab div').click(function () {
$(this).addClass('active').siblings().removeClass('active');
if (i == 3) {
dayTime = null;
+ rankType = type == 1 ? 2 : 4;
} else if (i == 1) {
+ rankType = type == 1 ? 1 : 3;
dayTime = dateFormat(time - 86400000, 'yyyy-MM-dd')
} else if (i == 2) {
+ rankType = type == 1 ? 1 : 3;
dayTime = dateFormat(time, 'yyyy-MM-dd')
}
- rankType = type == 1 ? 1 : 3;
getRank(rankType, type, dayTime);
})
// 打开规则