diff --git a/view/yinmeng/activity/2024-yearBenefits/js/index.js b/view/yinmeng/activity/2024-yearBenefits/js/index.js index b9b4083..436f488 100644 --- a/view/yinmeng/activity/2024-yearBenefits/js/index.js +++ b/view/yinmeng/activity/2024-yearBenefits/js/index.js @@ -73,7 +73,7 @@ function getRank () { top3.forEach((res, index) => { $(`.page2 .box .topBox .top${index + 1} .tx`).attr('src', res.avatar); $(`.page2 .box .topBox .top${index + 1} .name`).text(res.nick); - $(`.page2 .box .topBox .top${index + 1} .score`).text(`${rankType == 2 || rankType == 4 ? "财气值:" : "福气值:"}${unitProcessing(res.score, 10000, 1, 'w')}`); + $(`.page2 .box .topBox .top${index + 1} .score`).text(`${rankType == 2 ? "财气值:" : "福气值:"}${unitProcessing(res.score, 10000, 1, 'w')}`); }) // 处理非前三 var str = ''; @@ -84,7 +84,7 @@ function getRank () {
${res.ranking}
${res.nick}
-
${rankType == 2 || rankType == 4 ? "财气值:" : "福气值:"}${unitProcessing(res.score, 10000, 1, 'w')}
+
${rankType == 2 ? "财气值:" : "福气值:"}${unitProcessing(res.score, 10000, 1, 'w')}
` }) @@ -93,7 +93,7 @@ function getRank () { $('.page2 .box .my .tx').attr('src', res.data.meRank.avatar); $('.page2 .box .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking); $('.page2 .box .my .name').text(res.data.meRank.nick); - $('.page2 .box .my .score').text(`${rankType == 2 || rankType == 4 ? "财气值:" : "福气值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`); + $('.page2 .box .my .score').text(`${rankType == 2 ? "财气值:" : "福气值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`); } else { toastMsg(res.message) }