fix. 게임스타드 platform_type 별 분리
This commit is contained in:
@@ -12,10 +12,12 @@ interface Props {
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
||||
// Configuration
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const device = useDevice()
|
||||
|
||||
const gameDataStore = useGameDataStore()
|
||||
const pageDataStore = usePageDataStore()
|
||||
|
||||
const dataResourcesUrl = runtimeConfig.public.dataResourcesUrl as string
|
||||
const multilingualFileName = 'STOVE_PUBTEMPLATE_homepage_brand_preregist.json'
|
||||
|
||||
@@ -30,8 +32,8 @@ const { tm, locale }: any = useI18n({
|
||||
})
|
||||
|
||||
const { getOperateResources } = useOperateResources()
|
||||
const { gameData } = storeToRefs(useGameDataStore())
|
||||
const { pageData } = storeToRefs(usePageDataStore())
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
const { pageData } = storeToRefs(pageDataStore)
|
||||
|
||||
// Constants
|
||||
const COLOR_INDEX = { BACKGROUND: 0, TEXT: 1 } as const
|
||||
@@ -289,19 +291,21 @@ const handlePreregistClick = () => {
|
||||
>
|
||||
{{ tm('Preregist_Btn_Preegist') }}
|
||||
</BlocksButtonLauncher>
|
||||
<template
|
||||
v-for="platform in getSupportedPlatforms(gameData?.os_type, '2')"
|
||||
:key="`preregist-${platform}`"
|
||||
>
|
||||
<BlocksButtonLauncher
|
||||
v-if="isRunButtonVisible(platform as Platform)"
|
||||
type="duplication"
|
||||
:platform="platform as Platform"
|
||||
:background-color="buttonColors.backgroundColor"
|
||||
:text-color="buttonColors.textColor"
|
||||
<template v-if="gameData?.platform_type !== '1'">
|
||||
<template
|
||||
v-for="platform in getSupportedPlatforms('2', gameData?.os_type)"
|
||||
:key="`preregist-${platform}`"
|
||||
>
|
||||
{{ tm('Preregist_Btn_Preegist') }}
|
||||
</BlocksButtonLauncher>
|
||||
<BlocksButtonLauncher
|
||||
v-if="isRunButtonVisible(platform as Platform)"
|
||||
type="duplication"
|
||||
:platform="platform as Platform"
|
||||
:background-color="buttonColors.backgroundColor"
|
||||
:text-color="buttonColors.textColor"
|
||||
>
|
||||
{{ tm('Preregist_Btn_Preegist') }}
|
||||
</BlocksButtonLauncher>
|
||||
</template>
|
||||
</template>
|
||||
</div>
|
||||
<WidgetsDescription
|
||||
|
||||
Reference in New Issue
Block a user