46 lines
717 B
Vue
46 lines
717 B
Vue
<template lang="pug">
|
|
.TV
|
|
TvList(:list-data="list" :is-show="false" @change="EnterInfo")
|
|
</template>
|
|
|
|
<script>
|
|
import TvList from "@/components/TvList"
|
|
export default {
|
|
name: "Tv",
|
|
components: {
|
|
TvList
|
|
},
|
|
data() {
|
|
return {
|
|
list: [],
|
|
params: {
|
|
page: 1,
|
|
count: 15
|
|
}
|
|
}
|
|
},
|
|
async created() {
|
|
await this.GetTvList()
|
|
},
|
|
methods: {
|
|
EnterInfo(index) {
|
|
this.$router.push({
|
|
path: '/TvInfo',
|
|
query: {
|
|
id: 'index'
|
|
}
|
|
})
|
|
},
|
|
async GetTvList() {
|
|
let res = await this.$http.TvService.TvList(this.params);
|
|
this.list = res;
|
|
console.log(res)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|