refactor(layouts): 调整默认布局和直播室页面样式

- 移除 default.vue 中的 fullLive 条件判断- 优化 LiveRoom 页面布局- 更新 home store 中的 fullLive 默认值为 true
-调整首页 changeLive 扩展样式
- 删除 specialMessage 组件
This commit is contained in:
xingyy 2025-01-15 12:00:19 +08:00
parent 7026357c09
commit 2f2066f3e5
5 changed files with 4 additions and 17 deletions

View File

@ -4,7 +4,7 @@
<div class="flex-1 flex flex-col"> <div class="flex-1 flex flex-col">
<slot /> <slot />
</div> </div>
<AppFooter v-if="!fullLive" /> <AppFooter />
</main> </main>
</template> </template>
<script setup > <script setup >

View File

@ -1,13 +0,0 @@
<script setup>
</script>
<template>
<div>
<div></div>
</div>
</template>
<style scoped>
</style>

View File

@ -4,7 +4,6 @@ import Aliplayer from 'aliyun-aliplayer'
import 'aliyun-aliplayer/build/skins/default/aliplayer-min.css' import 'aliyun-aliplayer/build/skins/default/aliplayer-min.css'
import lock4 from '@/static/images/lock4@2x.png' import lock4 from '@/static/images/lock4@2x.png'
import lockdfd from '@/static/images/lockdfd@2x.png' import lockdfd from '@/static/images/lockdfd@2x.png'
import specialMessage from './components/specialMessage/index.vue'
const player = ref(null) const player = ref(null)
const quoteStatus = ref(false) const quoteStatus = ref(false)
const isPlayerReady = ref(false) const isPlayerReady = ref(false)
@ -99,7 +98,6 @@ onBeforeUnmount(() => {
</div> </div>
</div> </div>
</template> </template>
</div> </div>
</template> </template>

View File

@ -263,6 +263,8 @@ const changeLive=()=>{
} }
.changeLive.expanded { .changeLive.expanded {
position: absolute;
z-index: 10;
height: calc(100vh - var(--van-nav-bar-height)); height: calc(100vh - var(--van-nav-bar-height));
transform: translateY(0); transform: translateY(0);
} }

View File

@ -1,6 +1,6 @@
import { createGlobalState } from '@vueuse/core' import { createGlobalState } from '@vueuse/core'
export const homeStore = createGlobalState(() => { export const homeStore = createGlobalState(() => {
const fullLive=ref(false) const fullLive=ref(true)
return{ return{
fullLive fullLive
} }