直播路由

This commit is contained in:
2020-10-10 14:34:23 +08:00
parent 96e9284abb
commit 3755425b0e
7 changed files with 48 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="videoitem">
<div class="videoitem" @click="navto()">
<img src="" alt="" class="cover">
<img src="@/static/images/play.png" alt="" class="play">
<div class="title">
@@ -133,14 +133,34 @@
}
</style>
<script lang="ts">
import router from '@/router';
import { defineComponent } from 'vue';
export default defineComponent({
props:{
props:{
type: {
type: Number,
default:1
}
},
setup(props){
function navto(){
let url = '';
switch (props.type) {
case 1:
url = '/regime/livedetail';
break;
case 2:
url = '/regime/livedetail';
break;
case 3:
url = '/regeime/liveing';
}
router.push(url)
}
return {
navto
}
}
})
</script>