Skip to content

Commit 1cf29d3

Browse files
committed
endedApplyNormal
1 parent 020336d commit 1cf29d3

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

apps/web/app/components/ticket/NamecardSection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useLocaleCurrent } from '~/composables/useLocaleCurrent'
3-
import { endedCreateNamecard, ticketUrl } from '~/utils/constants'
3+
import { endedApplyNormal, endedCreateNamecard, ticketUrl } from '~/utils/constants'
44
55
const { locale: currentLocale } = useLocaleCurrent()
66
</script>
@@ -44,6 +44,7 @@ const { locale: currentLocale } = useLocaleCurrent()
4444
:href="ticketUrl"
4545
background-color="vue-green/200"
4646
color="white"
47+
:disabled="endedApplyNormal"
4748
>
4849
{{ $t('ticket.purchaseButton') }}
4950
</VFLinkButton>

apps/web/app/components/ticket/PersonalSponsorSection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ticketUrl } from '~/utils/constants'
2+
import { endedApplyNormal, ticketUrl } from '~/utils/constants'
33
</script>
44

55
<template>
@@ -28,6 +28,7 @@ import { ticketUrl } from '~/utils/constants'
2828
:href="ticketUrl"
2929
background-color="vue-green/200"
3030
color="white"
31+
:disabled="endedApplyNormal"
3132
>
3233
{{ $t('ticket.purchaseButton') }}
3334
</VFLinkButton>

apps/web/app/components/ticket/TicketSection.vue

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useI18n } from '#imports'
3-
import { endedApplyEarly, endedApplyHandson, ticketUrl } from '~/utils/constants'
3+
import { endedApplyEarly, endedApplyHandson, endedApplyNormal, ticketUrl } from '~/utils/constants'
44
55
const { 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>

apps/web/app/utils/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export const peatixReferenceUrl = 'https://help-attendee.peatix.com/ja-JP/suppor
4949

5050
export const endedApplyEarly = true
5151

52+
export const endedApplyNormal = true
53+
5254
export const endedApplyHandson = true
5355

5456
export const endedCreateNamecard = true

0 commit comments

Comments
 (0)