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