添加跳转日历

This commit is contained in:
luyuan 2020-10-15 19:33:11 +08:00
parent 79a5882601
commit 7bf5fc86de
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
3 changed files with 12 additions and 8 deletions

View File

@ -28,7 +28,7 @@
<div class="state live" v-if="status==1">
进入直播
</div>
<div class="state over" v-if="status==2">
<div class="state over" v-if="status==2">
查看回放
</div>
</div>
@ -47,7 +47,6 @@
.cover{
width: 100%;
height: 127px;
background-color: #0f0;
}
.play{
position: absolute;

View File

@ -1,6 +1,6 @@
<template>
<div class="video">
<video :controls="true" :src="info.vodurl"></video>
<video :controls="true" :src="info.livestatus == 0 ? info.fileurl : info.vodurl"></video>
<div class="liveinfo">
<div class="left">
<div>

View File

@ -91,7 +91,7 @@
</a-menu>
</template>
</a-dropdown>
<div class="item" style="border-right: none;">
<div class="item" style="border-right: none;" @click="navto('/regime/date')">
<img src="@/static/images/rili.png" alt="" class="icon">
<div class="name">日历</div>
</div>
@ -219,10 +219,15 @@ export default defineComponent({
return store.state.userinfo;
})
function navto(index: number){
router.push({
path: nav[index].route
})
function navto(index: number | string){
if(typeof index == "number"){
router.push({
path: nav[index].route
})
}else{
router.push(index)
}
}
return {
nav,