Skip to content

Commit 5a02fa2

Browse files
committed
アーリー〆切、ハンズオン売切対応
- endedApplyEarly - endedApplyHandson
1 parent 7e5ff26 commit 5a02fa2

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

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

Lines changed: 10 additions & 5 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 { ticketUrl } from '~/utils/constants'
3+
import { endedApplyEarly, endedApplyHandson, ticketUrl } from '~/utils/constants'
44
55
const { t } = useI18n()
66
@@ -60,7 +60,7 @@ const ticketCards = {
6060
:img-alt="ticketCards.ippan.imgAlt"
6161
>
6262
<div class="ticket-details ippan-details">
63-
<div class="early-purchase">
63+
<div v-if="!endedApplyEarly" class="early-purchase">
6464
<span class="cost">
6565
{{ $t('ticket.card.ippan.early') }}
6666
</span>
@@ -81,7 +81,7 @@ const ticketCards = {
8181
:img-alt="ticketCards.ippanParty.imgAlt"
8282
>
8383
<div class="ticket-details ippan-party-details">
84-
<div class="early-purchase">
84+
<div v-if="!endedApplyEarly" class="early-purchase">
8585
<span class="cost">
8686
{{ $t('ticket.card.ippanParty.early') }}
8787
</span>
@@ -100,15 +100,20 @@ const ticketCards = {
100100
:title="ticketCards.handsOn.title"
101101
:img-src="ticketCards.handsOn.imgSrc"
102102
:img-alt="ticketCards.handsOn.imgAlt"
103+
:is-close="endedApplyHandson"
103104
>
104105
<div class="ticket-details hands-on-details">
105106
<div class="cost">
106-
{{ $t('ticket.card.handsOn.cost') }}
107+
<template v-if="!endedApplyHandson">{{ $t('ticket.card.handsOn.cost') }}</template>
108+
<s v-else>{{ $t('ticket.card.handsOn.cost') }}</s>
107109
</div>
108110
<div class="cost-details">
109-
<span>
111+
<span v-if="!endedApplyHandson">
110112
{{ $t('ticket.card.handsOn.details1') }}
111113
</span>
114+
<span v-else>
115+
{{ $t('ticket.sold_out_explain') }}
116+
</span>
112117
<span>
113118
{{ $t('ticket.card.handsOn.details2') }}
114119
</span>

apps/web/app/lang/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@
151151
"details2": "*For more details, please refer to the Individual Sponsor section.",
152152
"imgAlt": "Event-branded t-shirts"
153153
}
154-
}
154+
},
155+
"sold_out_explain": "※Due to high demand, all seats are sold out.",
156+
"ended_explain": "※Sales have ended."
155157
},
156158
"access": {
157159
"title": "Access",

apps/web/app/lang/ja.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@
169169
"details2": "※詳しくは個人スポンサーについてをご覧ください。",
170170
"imgAlt": "イベントTシャツ"
171171
}
172-
}
172+
},
173+
"sold_out_explain": "※好評により全席完売しました。",
174+
"ended_explain": "※販売を終了しました。"
173175
},
174176
"access": {
175177
"title": "アクセス",

apps/web/app/utils/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export const storeUrl = 'https://vuejs-jp.stores.jp'
4343

4444
export const peatixReferenceUrl = 'https://help-attendee.peatix.com/ja-JP/support/solutions/articles/44001821741'
4545

46+
export const endedApplyEarly = true
47+
48+
export const endedApplyHandson = true
49+
4650
export const displayNameMaxLength = 24
4751

4852
export const personalSponsors = []

packages/ui/components/ticket/TicketCard.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ interface TicketCardProps {
33
title: string
44
imgSrc: string
55
imgAlt: string
6+
isClose?: boolean
67
}
7-
const props = defineProps<TicketCardProps>()
8+
const props = withDefaults(defineProps<TicketCardProps>(), {
9+
isClose: false,
10+
})
811
</script>
912

1013
<template>
1114
<div class="ticket-card">
1215
<img class="ticket-img" :src="props.imgSrc" :alt="props.imgAlt" />
13-
<div class="ticket-title">{{ props.title }}</div>
16+
<div class="ticket-title">
17+
<template v-if="!isClose">{{ props.title }}</template>
18+
<template v-else><s>{{ props.title }}</s></template>
19+
</div>
1420
<div class="ticket-content">
1521
<slot />
1622
</div>

0 commit comments

Comments
 (0)