From dfa79df531537b8254ace5c30daeec0ad9dd4ad1 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Tue, 11 Nov 2025 11:32:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BD=E7=8E=8B=E7=9A=87=E5=90=8E?= =?UTF-8?q?=E9=A1=B5):=20=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/topList.js | 4 ++-- src/router/index.js | 2 +- src/views/{TopList => Activities/KingAndQueen}/TopList.vue | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/views/{TopList => Activities/KingAndQueen}/TopList.vue (99%) 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