修改了部分样式

This commit is contained in:
luyuan 2020-11-27 13:52:06 +08:00
parent 299b98e0d7
commit 28500a1a1a
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
6 changed files with 62 additions and 3 deletions

2
dist/css/room.css vendored
View File

@ -46,8 +46,10 @@ video{
height: 100%;
min-width: 1500px;
min-height: 700px;
padding: 16px;
display: none;
align-items: flex-start;
}
.member{
cursor: default;

View File

@ -48,7 +48,7 @@ video{
min-height: 700px;
display: none;
align-items: flex-start;
background-color: #f0f0f0
padding: 16px;
}
.member{
cursor: default;

View File

@ -178,7 +178,7 @@ export default defineComponent({
let url = '';
switch (props.status) {
case 1:
url = '/regime/liveing';
url = '/live/liveing';
break;
default:
url = '/regime/livedetail';

View File

@ -111,7 +111,7 @@ export default defineComponent({
if(props.info != undefined){
const id = props.info.liveid;
livestart(id).then(()=>{
router.push("/regime/liveing?id=" + id)
router.push("/live/liveing?id=" + id)
})
}
}

44
src/layout/Live.vue Normal file
View File

@ -0,0 +1,44 @@
<template>
<div class="mine" :style="{height:height + 'px'}">
<NavTop :type="1" style="flex-shrink:0"></NavTop>
<div class="body" id="rbody">
<router-view/>
</div>
</div>
</template>
<style lang="scss" scoped>
.mine{
display: flex;
flex-direction: column;
.body{
// display: flex;
width: 100%;
min-height: calc(100% - 57px);
background-color: #F5F5F5;
// padding: 23px;
}
}
</style>
<script lang="ts">
import { defineComponent, onMounted, ref } from 'vue';
import NavTop from "@/components/NavTop.vue"
export default defineComponent({
components:{
NavTop
},
setup(){
console.log(1)
const height = ref(0);
onMounted(() => {
height.value = document.documentElement.clientHeight;
})
window.onresize=function(){
height.value = document.documentElement.clientHeight;
}
return {
height
}
}
})
</script>

View File

@ -7,6 +7,7 @@ const routes: Array<RouteRecordRaw> = [
name:"Mine",
component: () => import("../layout/Mine.vue"),
children: [
{
path:"archives",
name: "Archives",
@ -93,6 +94,7 @@ const routes: Array<RouteRecordRaw> = [
path: "livedetail",
component: () => import("../views/regime/Livedetail.vue")
},
{
path: "liveing",
component: () => import("../views/regime/Liveing.vue")
@ -107,6 +109,17 @@ const routes: Array<RouteRecordRaw> = [
}
]
},
{
path:"/live",
name:"live",
component: () => import("../layout/Live.vue"),
children:[
{
path: "liveing",
component: () => import("../views/regime/Liveing.vue")
},
]
},
{
path: '/',
name: 'Login',