11<script setup lang="ts">
22import { useI18n } from ' #imports'
3- import { endedApplyEarly , endedApplyHandson , ticketUrl } from ' ~/utils/constants'
3+ import { endedApplyEarly , endedApplyHandson , endedApplyNormal , ticketUrl } from ' ~/utils/constants'
44
55const { t } = useI18n ()
66
@@ -44,6 +44,7 @@ const ticketCards = {
4444 :href =" ticketUrl"
4545 background-color =" vue-green/200"
4646 color =" white"
47+ :disabled =" endedApplyNormal"
4748 >
4849 {{ $t('ticket.purchaseButton') }}
4950 </VFLinkButton >
@@ -58,6 +59,7 @@ const ticketCards = {
5859 :title =" ticketCards.ippan.title"
5960 :img-src =" ticketCards.ippan.imgSrc"
6061 :img-alt =" ticketCards.ippan.imgAlt"
62+ :is-close =" endedApplyNormal"
6163 >
6264 <div class =" ticket-details ippan-details" >
6365 <div v-if =" !endedApplyEarly" class =" early-purchase" >
@@ -68,9 +70,15 @@ const ticketCards = {
6870 {{ $t('ticket.card.ippan.earlySub') }}
6971 </span >
7072 </div >
71- <div class =" standard -purchase" >
73+ <div v-else class =" early -purchase" >
7274 <span class =" cost" >
73- {{ $t('ticket.card.ippan.regular') }}
75+ <template v-if =" ! endedApplyNormal " >{{ $t('ticket.card.ippan.regular') }}</template >
76+ <s v-else >{{ $t('ticket.card.ippan.regular') }}</s >
77+ </span >
78+ <span class =" cost-details" >
79+ <span v-if =" endedApplyNormal" >
80+ {{ $t('ticket.ended_explain') }}
81+ </span >
7482 </span >
7583 </div >
7684 </div >
@@ -79,6 +87,7 @@ const ticketCards = {
7987 :title =" ticketCards.ippanParty.title"
8088 :img-src =" ticketCards.ippanParty.imgSrc"
8189 :img-alt =" ticketCards.ippanParty.imgAlt"
90+ :is-close =" endedApplyNormal"
8291 >
8392 <div class =" ticket-details ippan-party-details" >
8493 <div v-if =" !endedApplyEarly" class =" early-purchase" >
@@ -89,9 +98,15 @@ const ticketCards = {
8998 {{ $t('ticket.card.ippanParty.earlySub') }}
9099 </span >
91100 </div >
92- <div class =" standard -purchase" >
101+ <div v-else class =" early -purchase" >
93102 <span class =" cost" >
94- {{ $t('ticket.card.ippanParty.regular') }}
103+ <template v-if =" ! endedApplyNormal " >{{ $t('ticket.card.ippanParty.regular') }}</template >
104+ <s v-else >{{ $t('ticket.card.ippanParty.regular') }}</s >
105+ </span >
106+ <span class =" cost-details" >
107+ <span v-if =" endedApplyNormal" >
108+ {{ $t('ticket.sold_out_explain') }}
109+ </span >
95110 </span >
96111 </div >
97112 </div >
@@ -124,15 +139,20 @@ const ticketCards = {
124139 :title =" ticketCards.individualSponsor.title"
125140 :img-src =" ticketCards.individualSponsor.imgSrc"
126141 :img-alt =" ticketCards.individualSponsor.imgAlt"
142+ :is-close =" endedApplyNormal"
127143 >
128144 <div class =" ticket-details individual-sponsor-details" >
129145 <div class =" cost" >
130- {{ $t('ticket.card.individualSponsor.cost') }}
146+ <template v-if =" ! endedApplyNormal " >{{ $t('ticket.card.individualSponsor.cost') }}</template >
147+ <s v-else >{{ $t('ticket.card.individualSponsor.cost') }}</s >
131148 </div >
132149 <div class =" cost-details" >
133- <span >
150+ <span v-if = " !endedApplyNormal " >
134151 {{ $t('ticket.card.individualSponsor.details1') }}
135152 </span >
153+ <span v-else >
154+ {{ $t('ticket.ended_explain') }}
155+ </span >
136156 <span >
137157 {{ $t('ticket.card.individualSponsor.details2') }}
138158 </span >
@@ -146,6 +166,7 @@ const ticketCards = {
146166 :href =" ticketUrl"
147167 background-color =" vue-green/200"
148168 color =" white"
169+ :disabled =" endedApplyNormal"
149170 >
150171 {{ $t('ticket.purchaseButton') }}
151172 </VFLinkButton >
0 commit comments