Compare commits

...

2 Commits

Author SHA1 Message Date
xingyy
8c57db5764 style(home): 移除首页背景颜色属性
- 删除了 index.vue 文件中 div 元素的 bg-#fff 类,以移除白色背景
- 此修改旨在调整首页的视觉效果,可能为后续样式添加做准备
2025-01-15 09:32:25 +08:00
xingyy
68935e03a2 refactor(components): 优化 AppFooter 组件并修复首页布局问题- 移除 AppFooter 组件中的冗余 v-if 指令
- 修复首页直播模块展开时页面布局错乱的问题- 优化直播模块展开和收起的动画效果
2025-01-15 09:30:29 +08:00
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ initData()
<template> <template>
<div> <div>
<van-tabbar v-if="show" v-model="active" route placeholder fixed> <van-tabbar v-model="active" route placeholder fixed>
<van-tabbar-item replace to="/"> <van-tabbar-item replace to="/">
<span>{{ $t('tabbar.home') }}</span> <span>{{ $t('tabbar.home') }}</span>
<template #icon> <template #icon>

View File

@ -107,17 +107,17 @@ const openShow = () => {
}) })
} }
const changeLive=()=>{ const changeLive=()=>{
fullLive.value= true fullLive.value= !fullLive.value
} }
</script> </script>
<template> <template>
<div class="bg-#fff flex-grow-1"> <div class="flex-grow-1">
<div <div
@click="changeLive" @click="changeLive"
:class="[ :class="[
'transform transition-all duration-500 origin-top ease-out ease-in', 'transform transition-all duration-500 ease-out ',
fullLive ? 'scale-100 h-[calc(100vh-var(--van-nav-bar-height))]' : 'scale-100 h-188px' fullLive ? 'absolute top-[var(--van-nav-bar-height)] bottom-0px left-0px right-0px h-[calc(100vh-var(--van-nav-bar-height))]' : 'h-188px'
]" ]"
> >
<client-only> <client-only>