直播路由
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user