bugfix: 中英文视频错误

This commit is contained in:
2026-04-01 11:32:05 +08:00
parent 2d335399f5
commit 9e20d709b0
6 changed files with 33 additions and 16 deletions

View File

@@ -87,6 +87,7 @@ export default {
tim: 'Group Fashion Director of\n Modern Media Group\n(Shanghai)', tim: 'Group Fashion Director of\n Modern Media Group\n(Shanghai)',
desmond: 'Chief Editor of Vogue\n(Singapore)' desmond: 'Chief Editor of Vogue\n(Singapore)'
}, },
tbd: 'To be determined',
awardPrizes: 'Award & Prizes', awardPrizes: 'Award & Prizes',
recognition: 'Recognition', recognition: 'Recognition',
grandMoney: 'US$5,000', grandMoney: 'US$5,000',

View File

@@ -81,6 +81,7 @@ export default {
tim: '现代传播集团\n上海时尚总监', tim: '现代传播集团\n上海时尚总监',
desmond: '《Vogue》\n新加坡主编' desmond: '《Vogue》\n新加坡主编'
}, },
tbd: '待定',
awardPrizes: '奖项与奖金', awardPrizes: '奖项与奖金',
recognition: '荣誉认可', recognition: '荣誉认可',
grandMoney: '5,000美元', grandMoney: '5,000美元',

View File

@@ -9,9 +9,15 @@
v-for="item in judgements" v-for="item in judgements"
:key="item.name" :key="item.name"
> >
<template v-if="!item.tbd">
<img :src="item.picture" class="picture" /> <img :src="item.picture" class="picture" />
<div class="name">{{ $t(item.name) }}</div> <div class="name">{{ $t(item.name) }}</div>
<div class="desc">{{ $t(item.desc) }}</div> <div class="desc">{{ $t(item.desc) }}</div>
</template>
<template v-else>
<div class="picture tbd"></div>
<div class="name">{{ $t('AwardsPage.tbd') }}</div>
</template>
</div> </div>
</div> </div>
</div> </div>
@@ -40,7 +46,8 @@ const judgements = [
{ {
picture: diego, picture: diego,
name: 'Diego Dultzin Lacoste', name: 'Diego Dultzin Lacoste',
desc: 'AwardsPage.judgesHat.diego' desc: 'AwardsPage.judgesHat.diego',
tbd: true
}, },
{ {
picture: gregory, picture: gregory,
@@ -50,12 +57,14 @@ const judgements = [
{ {
picture: vincenzo, picture: vincenzo,
name: 'Vincenzo La Torre', name: 'Vincenzo La Torre',
desc: 'AwardsPage.judgesHat.vincenzo' desc: 'AwardsPage.judgesHat.vincenzo',
tbd: true
}, },
{ {
picture: tim, picture: tim,
name: 'Tim Lim', name: 'Tim Lim',
desc: 'AwardsPage.judgesHat.tim' desc: 'AwardsPage.judgesHat.tim',
tbd: true
}, },
{ {
picture: desmond, picture: desmond,
@@ -206,6 +215,9 @@ onBeforeUnmount(() => {
width: 20.2rem; width: 20.2rem;
height: 26rem; height: 26rem;
border-radius: 0.8rem; border-radius: 0.8rem;
&.tbd {
background-color: #d7d7d7;
}
} }
.name { .name {
margin: 3rem 0 2.4rem; margin: 3rem 0 2.4rem;

View File

@@ -21,7 +21,10 @@
<div class="vertical-content"> <div class="vertical-content">
<div class="vertical-time">{{ $t(item.time) }}</div> <div class="vertical-time">{{ $t(item.time) }}</div>
<div class="vertical-label"> <div class="vertical-label">
{{ $t(item.label) }}{{ item.subLabel ? $t(item.subLabel) : '' }} {{ $t(item.label) }}{{ locale === 'ENGLISH' ? ' ' + $t(item.subLabel) : '' }}
<!-- <template v-if="isMobile">
</template> -->
</div> </div>
<div class="vertical-desc">{{ $t(item.desc) }}</div> <div class="vertical-desc">{{ $t(item.desc) }}</div>
</div> </div>
@@ -70,7 +73,7 @@ import { nextTick, onBeforeUnmount, onMounted, ref, computed, inject } from 'vue
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { gsap } from 'gsap' import { gsap } from 'gsap'
// const { t } = useI18n() const { locale } = useI18n()
const isMobile = inject<boolean>('isMobile') const isMobile = inject<boolean>('isMobile')
const isPad = inject<boolean>('isPad') const isPad = inject<boolean>('isPad')