From 8229235704d0badb4287c7f7ad2fd64f2b0b87fe Mon Sep 17 00:00:00 2001 From: clkim Date: Wed, 29 Oct 2025 20:02:03 +0900 Subject: [PATCH] =?UTF-8?q?fix.=20gnb=20=EA=B2=8C=EC=9E=84=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/components/atoms/icons/LogoApple.vue | 8 +- layers/components/blocks/Button/Download.vue | 13 ++-- layers/components/layouts/Header.vue | 80 +++++++++++++++++--- layers/types/api/gameData.ts | 28 ++++++- 4 files changed, 106 insertions(+), 23 deletions(-) diff --git a/layers/components/atoms/icons/LogoApple.vue b/layers/components/atoms/icons/LogoApple.vue index 5a51064..28a0ff5 100644 --- a/layers/components/atoms/icons/LogoApple.vue +++ b/layers/components/atoms/icons/LogoApple.vue @@ -6,7 +6,7 @@ interface Props { withDefaults(defineProps(), { size: 20, - color: '#ffffff', + color: 'white', }) @@ -15,14 +15,14 @@ withDefaults(defineProps(), { xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" - viewBox="0 0 36 36" + viewBox="0 0 20 20" :fill="color" > diff --git a/layers/components/blocks/Button/Download.vue b/layers/components/blocks/Button/Download.vue index 34e7577..bbf9671 100644 --- a/layers/components/blocks/Button/Download.vue +++ b/layers/components/blocks/Button/Download.vue @@ -48,7 +48,6 @@ const componentTag = computed(() => { }) const isDuplication = computed(() => props.type === 'duplication') const isSingle = computed(() => props.type === 'single') -const isCustom = computed(() => props.type === 'custom') const platformIcon = computed(() => PLATFORM_ICON_MAP[props.platform]) const duplicationImage = computed(() => isDuplication.value ? DUP_IMAGE_MAP[props.platform] : '' @@ -80,8 +79,8 @@ const handleClick = () => { return } - const url = gameData?.market_json[props.platform]?.url || '' - window.open(url, '_blank') + const url = gameData?.market_json[props.platform]?.url + if (url) window.open(url, '_blank') } @@ -103,7 +102,7 @@ const handleClick = () => { @@ -124,7 +123,7 @@ const handleClick = () => { diff --git a/layers/types/api/gameData.ts b/layers/types/api/gameData.ts index b45dae1..145c87d 100644 --- a/layers/types/api/gameData.ts +++ b/layers/types/api/gameData.ts @@ -121,6 +121,16 @@ export interface GameDataGlobal { lang_json: string // JSON 문자열로 변경 } +export interface GameDataResourceGroupBtnInfo { + color_code_btn: string + color_name_btn: string + color_code_txt: string + color_name_txt: string + disabled: boolean + txt_btn_name: string + detail: Record +} + // 트래킹 타입 export interface GameDataTracking { viewType: string @@ -128,10 +138,24 @@ export interface GameDataTracking { clickSarea: string } +export interface GameDataResourceGroup { + btn_info?: GameDataResourceGroupBtnInfo + tracking: GameDataTracking +} + +type MarketPlatform = 'pc' | 'app_store' | 'google_play' +export type GameDataResourceGroupSet = Partial< + Record +> + +export type GameDataButtonJson = + | GameDataResourceGroup + | GameDataResourceGroupSet + // 버튼 타입 export interface GameDataButton { - depth_type: number - button_json: string // JSON 문자열로 변경 + depth_type: 1 | 2 + button_json: GameDataButtonJson } export type GameDataMenuChildren = Record