fix(player-theme4): hide main header and marquee on messages page to make it full screen

This commit is contained in:
2026-06-18 10:10:46 +08:00
parent 5c5aa7e55a
commit fce2333322

View File

@@ -34,24 +34,31 @@ const isDetailPage = computed(() => {
p.startsWith('/bet/') || p.startsWith('/bet/') ||
p.startsWith('/bets/') || p.startsWith('/bets/') ||
p.startsWith('/wallet/') || p.startsWith('/wallet/') ||
p.startsWith('/messages') ||
p === '/profile/edit' || p === '/profile/edit' ||
p === '/profile/cashbacks' p === '/profile/cashbacks'
); );
}); });
const showHeader = computed(() => !isDetailPage.value); const showHeader = computed(() => !isDetailPage.value);
const showAnnouncement = computed(() => !isDetailPage.value && !route.path.startsWith('/profile')); const showAnnouncement = computed(
() => !isDetailPage.value && !route.path.startsWith('/profile') && !route.path.startsWith('/announcements')
);
const showBottomNav = computed(() => { const showBottomNav = computed(() => {
const p = route.path; const p = route.path;
if ( if (
p === '/' || p === '/' ||
p === '/bet' || p === '/bet' ||
p === '/announcements' ||
p.startsWith('/announcements/') ||
p.startsWith('/match/') || p.startsWith('/match/') ||
p === '/bets' || p === '/bets' ||
p === '/wallet' || p === '/wallet' ||
p === '/profile' p === '/profile'
) return true; ) return true;
// 邮箱关闭时客服页保留底部导航,避免用户无法离开
if (!inboxEnabled.value && p === '/messages') return true;
return false; return false;
}); });
const { announcements, announcementItems, load: loadPlayerHome } = usePlayerHome(); const { announcements, announcementItems, load: loadPlayerHome } = usePlayerHome();