This commit is contained in:
theluyuan 2020-12-03 17:51:52 +08:00
parent 30c7fc7326
commit 087af4f228
2 changed files with 9 additions and 8 deletions

View File

@ -18,7 +18,7 @@
</div>
</div>
<div class="list" v-if="tabindex == 1">
<LiveItemad></LiveItemad>
<LiveItemad v-if="livelist.total"></LiveItemad>
<LiveItem
:type="2"
v-for="(i, j) in livelist.data"
@ -35,7 +35,7 @@
</div>
<div class="list" v-if="tabindex == 0">
<LiveItemad></LiveItemad>
<LiveItemad v-if="livelist.total"></LiveItemad>
<LiveItem
:type="2"
@ -52,7 +52,7 @@
></LiveItem>
</div>
<div class="list" v-if="tabindex == 2">
<LiveItemad></LiveItemad>
<LiveItemad v-if="livelist.total"></LiveItemad>
<LiveItem
:type="2"
v-for="(i, j) in livelist.data"
@ -71,7 +71,7 @@
<a-empty />
</template>
<div class="pages">
<a-pagination v-if="livelist.total" v-model:current="page" :total="livelist.total" :showLessItems="true" @change="nextpage" />
<a-pagination :defaultPageSize="9" v-if="livelist.total" v-model:current="page" :total="livelist.total" :showLessItems="true" @change="nextpage" />
</div>
</div>
</template>

View File

@ -24,7 +24,7 @@
<a-empty />
</template>
<div class="list" v-if="tabindex == 4">
<LiveItemad></LiveItemad>
<LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@ -43,7 +43,7 @@
</div>
<div class="list" v-if="tabindex == 0">
<LiveItemad></LiveItemad>
<LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@ -61,7 +61,7 @@
></VideoItem>
</div>
<div class="list" v-if="tabindex == 2">
<LiveItemad></LiveItemad>
<LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@ -79,6 +79,7 @@
></VideoItem>
</div>
<div class="list" v-if="tabindex == 1">
<LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem
v-for="(i, j) in videolist.data"
:key="j"
@ -96,7 +97,7 @@
></VideoItem>
</div>
<div class="pages">
<a-pagination v-if="videolist.total" v-model:current="page" :total="videolist.total" :showLessItems="true" @change="pagechange" />
<a-pagination :defaultPageSize="9" v-if="videolist.total" v-model:current="page" :total="videolist.total" :showLessItems="true" @change="pagechange" />
</div>
</div>
</template>