This commit is contained in:
2020-12-03 17:37:20 +08:00
parent a80bc93086
commit 25b645b359
25 changed files with 204 additions and 21 deletions

View File

@@ -18,6 +18,7 @@
</div>
</div>
<div class="list" v-if="tabindex == 1">
<LiveItemad></LiveItemad>
<LiveItem
:type="2"
v-for="(i, j) in livelist.data"
@@ -34,6 +35,8 @@
</div>
<div class="list" v-if="tabindex == 0">
<LiveItemad></LiveItemad>
<LiveItem
:type="2"
v-for="(i, j) in livelist.data"
@@ -49,6 +52,7 @@
></LiveItem>
</div>
<div class="list" v-if="tabindex == 2">
<LiveItemad></LiveItemad>
<LiveItem
:type="2"
v-for="(i, j) in livelist.data"
@@ -177,12 +181,14 @@
<script lang="ts">
import { defineComponent, onMounted, ref, watch } from "vue";
import LiveItem from "@/components/LiveItem.vue";
import LiveItemad from "@/components/LiveItemad.vue";
import { getlivelist } from "@/api";
import { LivelistInfo } from "@/types";
import { useI18n } from '@/utils/i18n';
export default defineComponent({
components: {
LiveItem,
LiveItemad
},
setup() {
const lan: any = useI18n();

View File

@@ -24,7 +24,7 @@
<a-empty />
</template>
<div class="list" v-if="tabindex == 4">
<LiveItemad></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@@ -43,6 +43,7 @@
</div>
<div class="list" v-if="tabindex == 0">
<LiveItemad></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@@ -60,6 +61,7 @@
></VideoItem>
</div>
<div class="list" v-if="tabindex == 2">
<LiveItemad></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@@ -204,12 +206,14 @@
<script lang="ts">
import { defineComponent, onMounted, reactive, ref, UnwrapRef } from "vue";
import VideoItem from "@/components/VideoItem.vue";
import LiveItemad from "@/components/LiveItemad.vue";
import { getvideolist } from "@/api";
import { useRoute } from 'vue-router';
import { useI18n } from '@/utils/i18n';
export default defineComponent({
components: {
VideoItem,
LiveItemad
},
setup() {
const lan: any = useI18n();