From 9bae885f894526b2488530422c9cf58469444bce Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 18 Dec 2025 17:48:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B8=B8=E6=88=8F=E6=A6=9C=E5=8D=95):=20?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Ranking/GamesKing/index.vue | 48 ++++++++------------------- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/src/views/Ranking/GamesKing/index.vue b/src/views/Ranking/GamesKing/index.vue index a03a63b..b50c120 100644 --- a/src/views/Ranking/GamesKing/index.vue +++ b/src/views/Ranking/GamesKing/index.vue @@ -536,12 +536,17 @@
- + + +
@@ -694,7 +699,7 @@ const showDetail = (type, reward) => { // 获取排行榜和我的排名 const getListAndMy = async () => { let data = { - activityType: 9999, + activityType: 10, } const resMyWeekStarRanking = await getRankingListAndMyRanking(data) console.log('resMyWeekStarRanking:', resMyWeekStarRanking) @@ -704,36 +709,11 @@ const getListAndMy = async () => { } } -// 获取每周奖励列表和礼物 +// 获取每周奖励列表 const getRewardsAndGifts = async () => { - const resRewardsAndGifts = await getThisWeekRewardsAndGifts('1996796468800196610') + const resRewardsAndGifts = await getThisWeekRewardsAndGifts('2001207026499137537') if (resRewardsAndGifts.status && resRewardsAndGifts.body) { rewardsList.value = resRewardsAndGifts.body.butOneRewards - if (rewardsList.value[0]) { - rewardsList.value[0].rewards.push({ - type: 'DOLLARS', - content: 50, - }) - } - - if (rewardsList.value[1]) { - rewardsList.value[1].rewards.push({ - type: 'DOLLARS', - content: 30, - }) - } - - if (rewardsList.value[2]) { - rewardsList.value[2].rewards.push({ - type: 'DOLLARS', - content: 10, - }) - } - - // 补齐第四名奖励 - if (!rewardsList.value[3]) { - rewardsList.value[3] = rewardsList.value[2] - } } }