From 5d14a92399070996dbfb3ccc814404b414f89a73 Mon Sep 17 00:00:00 2001 From: clkim Date: Thu, 27 Nov 2025 18:51:49 +0900 Subject: [PATCH] =?UTF-8?q?fix.=20[PWT-124]=20=EC=95=A1=EC=85=98=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=EA=B2=8C=EC=9E=84=20=EC=8B=A4=ED=96=89=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=20mo=20=ED=99=98=EA=B2=BD=20=EB=85=B8?= =?UTF-8?q?=EC=B6=9C=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/components/widgets/ButtonList.vue | 40 ++++++++++++++++++------ 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/layers/components/widgets/ButtonList.vue b/layers/components/widgets/ButtonList.vue index db3fa76..19412e6 100644 --- a/layers/components/widgets/ButtonList.vue +++ b/layers/components/widgets/ButtonList.vue @@ -18,6 +18,7 @@ const scrollStore = useScrollStore() const breakpoints = useResponsiveBreakpoints() const { sendLog, useAnalyticsLogDataDirect } = useAnalytics() const { tm } = useI18n() +const device = useDevice() const buttonList = computed( () => props.resourcesData ?? [] @@ -36,6 +37,23 @@ const getButtonType = (btnInfo?: PageDataResourceGroupBtnInfo): ButtonType => { return 'action' } +const isRunButtonVisible = (btnInfo: PageDataResourceGroupBtnInfo): boolean => { + if (breakpoints.value?.isDesktop) return true + + const marketType = btnInfo?.detail?.market_type + + switch (marketType) { + case 'pc': + return false + case 'google_play': + return device.isAndroid + case 'app_store': + return device.isApple + default: + return true + } +} + const downloadZip = async (url: string, osType: number) => { if (osType === 1 && breakpoints.value?.isMobile) { modalStore.handleOpenAlert({ contentText: tm('Alert_Download_PC') }) @@ -104,16 +122,18 @@ const handleButtonClick = (button: PageDataResourceGroup) => { class="flex flex-wrap justify-center gap-3 md:gap-4" >