1
1
<script setup lang="ts">
2
2
import { useI18n } from ' #imports'
3
- import { endedApplyEarly , endedApplyHandson , ticketUrl } from ' ~/utils/constants'
3
+ import { endedApplyEarly , endedApplyHandson , endedApplyNormal , ticketUrl } from ' ~/utils/constants'
4
4
5
5
const { t } = useI18n ()
6
6
@@ -44,6 +44,7 @@ const ticketCards = {
44
44
:href =" ticketUrl"
45
45
background-color =" vue-green/200"
46
46
color =" white"
47
+ :disabled =" endedApplyNormal"
47
48
>
48
49
{{ $t('ticket.purchaseButton') }}
49
50
</VFLinkButton >
@@ -58,6 +59,7 @@ const ticketCards = {
58
59
:title =" ticketCards.ippan.title"
59
60
:img-src =" ticketCards.ippan.imgSrc"
60
61
:img-alt =" ticketCards.ippan.imgAlt"
62
+ :is-close =" endedApplyNormal"
61
63
>
62
64
<div class =" ticket-details ippan-details" >
63
65
<div v-if =" !endedApplyEarly" class =" early-purchase" >
@@ -68,9 +70,15 @@ const ticketCards = {
68
70
{{ $t('ticket.card.ippan.earlySub') }}
69
71
</span >
70
72
</div >
71
- <div class =" standard -purchase" >
73
+ <div v-else class =" early -purchase" >
72
74
<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 >
74
82
</span >
75
83
</div >
76
84
</div >
@@ -79,6 +87,7 @@ const ticketCards = {
79
87
:title =" ticketCards.ippanParty.title"
80
88
:img-src =" ticketCards.ippanParty.imgSrc"
81
89
:img-alt =" ticketCards.ippanParty.imgAlt"
90
+ :is-close =" endedApplyNormal"
82
91
>
83
92
<div class =" ticket-details ippan-party-details" >
84
93
<div v-if =" !endedApplyEarly" class =" early-purchase" >
@@ -89,9 +98,15 @@ const ticketCards = {
89
98
{{ $t('ticket.card.ippanParty.earlySub') }}
90
99
</span >
91
100
</div >
92
- <div class =" standard -purchase" >
101
+ <div v-else class =" early -purchase" >
93
102
<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 >
95
110
</span >
96
111
</div >
97
112
</div >
@@ -124,15 +139,20 @@ const ticketCards = {
124
139
:title =" ticketCards.individualSponsor.title"
125
140
:img-src =" ticketCards.individualSponsor.imgSrc"
126
141
:img-alt =" ticketCards.individualSponsor.imgAlt"
142
+ :is-close =" endedApplyNormal"
127
143
>
128
144
<div class =" ticket-details individual-sponsor-details" >
129
145
<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 >
131
148
</div >
132
149
<div class =" cost-details" >
133
- <span >
150
+ <span v-if = " !endedApplyNormal " >
134
151
{{ $t('ticket.card.individualSponsor.details1') }}
135
152
</span >
153
+ <span v-else >
154
+ {{ $t('ticket.ended_explain') }}
155
+ </span >
136
156
<span >
137
157
{{ $t('ticket.card.individualSponsor.details2') }}
138
158
</span >
@@ -146,6 +166,7 @@ const ticketCards = {
146
166
:href =" ticketUrl"
147
167
background-color =" vue-green/200"
148
168
color =" white"
169
+ :disabled =" endedApplyNormal"
149
170
>
150
171
{{ $t('ticket.purchaseButton') }}
151
172
</VFLinkButton >
0 commit comments