diff --git a/frontend/src/features/listings/views/HomeView.vue b/frontend/src/features/listings/views/HomeView.vue index fd717e0..8fdbe23 100644 --- a/frontend/src/features/listings/views/HomeView.vue +++ b/frontend/src/features/listings/views/HomeView.vue @@ -60,14 +60,27 @@ const displayAnnouncements = computed(() => { const banners = ref(defaultHomeBanners) const displayBanners = computed(() => { if (siteStore.isDistribution && siteStore.banners && siteStore.banners.length > 0) { - return siteStore.banners.map(b => ({ - eyebrow: siteStore.siteName, - title: b.title || '精选游戏账号 · 随租随玩', - badge: '本店精选', - pill: '官方保障', - tone: 'gold', - image_url: b.image_url, - })) + return siteStore.banners.map(b => { + const imageUrl = b.image_url?.trim() || '' + // 整张海报已含文案。再叠标题会触发整幅压暗遮罩,左右两侧颜色会被压暗。 + if (imageUrl) { + return { + eyebrow: '', + title: '', + badge: '本店精选', + pill: '', + tone: 'gold', + image_url: imageUrl, + } + } + return { + eyebrow: siteStore.siteName, + title: b.title || '精选游戏账号 · 随租随玩', + badge: '本店精选', + pill: '官方保障', + tone: 'gold', + } + }) } return banners.value })