fix(国王皇后页): 调整页面位置和接口
This commit is contained in:
parent
f70ebbb616
commit
dfa79df531
@ -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)
|
||||
|
||||
@ -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 },
|
||||
},
|
||||
{
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user