diff --git a/src/api/topList.js b/src/api/topList.js index 7c8a99f..ed13e26 100644 --- a/src/api/topList.js +++ b/src/api/topList.js @@ -27,9 +27,9 @@ export const getWeekMyContribution = async (userId) => { } // 获取本周奖励和礼物 -export const getThisWeekRewardsAndGifts = async () => { +export const getThisWeekRewardsAndGifts = async (activityId) => { try { - const response = await get(`/activity/king-queen/effective`) + const response = await get(`/activity/king-queen/effective?templateId=${activityId}`) return response } catch (error) { console.error('Failed to get this week rewards and gifts:', error) diff --git a/src/router/index.js b/src/router/index.js index 6978fd4..11e97d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -206,7 +206,7 @@ const router = createRouter({ { path: '/top-list', name: 'top-list', - component: () => import('../views/TopList/TopList.vue'), + component: () => import('../views/Activities/KingAndQueen/TopList.vue'), meta: { requiresAuth: true }, }, { diff --git a/src/views/TopList/TopList.vue b/src/views/Activities/KingAndQueen/TopList.vue similarity index 99% rename from src/views/TopList/TopList.vue rename to src/views/Activities/KingAndQueen/TopList.vue index b66f1ea..9c8713b 100644 --- a/src/views/TopList/TopList.vue +++ b/src/views/Activities/KingAndQueen/TopList.vue @@ -645,8 +645,8 @@ import { getAppHeaderInfo, } from '@/utils/appConnectionManager.js' import { computed, onMounted, onUnmounted, ref } from 'vue' -import borderImg from '../../components/TopList/borderImg.vue' -import maskLayer from '../../components/MaskLayer.vue' +import borderImg from '@/components/TopList/borderImg.vue' +import maskLayer from '@/components/MaskLayer.vue' import { getWeekTopList, getWeekMyContribution, @@ -1000,7 +1000,7 @@ const getMyContribution = async () => { // 获取每周奖励列表和礼物 const getRewardsAndGifts = async () => { - const resRewardsAndGifts = await getThisWeekRewardsAndGifts() + const resRewardsAndGifts = await getThisWeekRewardsAndGifts('1966020557831610370') if (resRewardsAndGifts.status && resRewardsAndGifts.body) { gifts.value = resRewardsAndGifts.body.gifts kingRewards.value = resRewardsAndGifts.body.butOneRewards