fix(国王皇后页): 调整页面位置和接口

This commit is contained in:
hzj 2025-11-11 11:32:08 +08:00
parent f70ebbb616
commit dfa79df531
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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 },
},
{

View File

@ -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