From 8336d3f794da213a99e1d2bbd5ee4bc14371ae70 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 5 Jan 2026 10:30:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B8=B8=E6=88=8F=E7=8E=8B=E6=89=93?= =?UTF-8?q?=E6=A6=9C):=20=E6=96=B0=E5=A2=9E=E5=8E=86=E5=8F=B2=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/activity.js | 14 ++ .../Ranking/GamesKing/components/topUser.vue | 10 +- src/views/Ranking/GamesKing/index.vue | 188 ++++++++++++++++-- 3 files changed, 195 insertions(+), 17 deletions(-) diff --git a/src/api/activity.js b/src/api/activity.js index 60a6c8f..5a107a4 100644 --- a/src/api/activity.js +++ b/src/api/activity.js @@ -36,3 +36,17 @@ export const getHistoryTopOne = async (activityType) => { throw error } } + +// 获取指定类型活动资源 +export const activityResource = async (data) => { + try { + const response = await get( + `/props-activity-cnf/client/listActivityResource?sysOrigin=${data.sysOrigin}&activityType=${data.activityType}` + ) + return response + } catch (error) { + console.error('Failed to get this week rewards and gifts:', error) + console.error('error:' + error.response.errorMsg) + throw error + } +} diff --git a/src/views/Ranking/GamesKing/components/topUser.vue b/src/views/Ranking/GamesKing/components/topUser.vue index 301aea8..ca2b26e 100644 --- a/src/views/Ranking/GamesKing/components/topUser.vue +++ b/src/views/Ranking/GamesKing/components/topUser.vue @@ -127,7 +127,7 @@ const props = defineProps({ // 排名 ranking: { type: String, - default: '1', + default: '', }, // 头像 @@ -171,7 +171,7 @@ const avatarContainerHeight = computed(() => { case '8-10': return '85%' default: - return '90%' + return '93%' } }) @@ -191,7 +191,7 @@ const avatarWidth = computed(() => { case '8-10': return '45%' default: - return '48%' + return '36%' } }) @@ -211,7 +211,7 @@ const bottomSectionHeight = computed(() => { case '8-10': return '41%' default: - return '30%' + return '22%' } }) @@ -231,7 +231,7 @@ const usernameAreaStyle = computed(() => { case '8-10': return 'height: 27%; width: 78%;' default: - return 'height: 30%; width: 40%;' + return 'height: 100%; width: 72%;' } }) diff --git a/src/views/Ranking/GamesKing/index.vue b/src/views/Ranking/GamesKing/index.vue index 2edfc1f..96e68ed 100644 --- a/src/views/Ranking/GamesKing/index.vue +++ b/src/views/Ranking/GamesKing/index.vue @@ -85,8 +85,26 @@