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] - } } }