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> </div>
<div class="list" v-if="tabindex == 1"> <div class="list" v-if="tabindex == 1">
<LiveItemad></LiveItemad> <LiveItemad v-if="livelist.total"></LiveItemad>
<LiveItem <LiveItem
:type="2" :type="2"
v-for="(i, j) in livelist.data" v-for="(i, j) in livelist.data"
@ -35,7 +35,7 @@
</div> </div>
<div class="list" v-if="tabindex == 0"> <div class="list" v-if="tabindex == 0">
<LiveItemad></LiveItemad> <LiveItemad v-if="livelist.total"></LiveItemad>
<LiveItem <LiveItem
:type="2" :type="2"
@ -52,7 +52,7 @@
></LiveItem> ></LiveItem>
</div> </div>
<div class="list" v-if="tabindex == 2"> <div class="list" v-if="tabindex == 2">
<LiveItemad></LiveItemad> <LiveItemad v-if="livelist.total"></LiveItemad>
<LiveItem <LiveItem
:type="2" :type="2"
v-for="(i, j) in livelist.data" v-for="(i, j) in livelist.data"
@ -71,7 +71,7 @@
<a-empty /> <a-empty />
</template> </template>
<div class="pages"> <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>
</div> </div>
</template> </template>

View File

@ -24,7 +24,7 @@
<a-empty /> <a-empty />
</template> </template>
<div class="list" v-if="tabindex == 4"> <div class="list" v-if="tabindex == 4">
<LiveItemad></LiveItemad> <LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem <VideoItem
v-for="(i, j) in videolist.data" v-for="(i, j) in videolist.data"
:key="j" :key="j"
@ -43,7 +43,7 @@
</div> </div>
<div class="list" v-if="tabindex == 0"> <div class="list" v-if="tabindex == 0">
<LiveItemad></LiveItemad> <LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem <VideoItem
v-for="(i, j) in videolist.data" v-for="(i, j) in videolist.data"
:key="j" :key="j"
@ -61,7 +61,7 @@
></VideoItem> ></VideoItem>
</div> </div>
<div class="list" v-if="tabindex == 2"> <div class="list" v-if="tabindex == 2">
<LiveItemad></LiveItemad> <LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem <VideoItem
v-for="(i, j) in videolist.data" v-for="(i, j) in videolist.data"
:key="j" :key="j"
@ -79,6 +79,7 @@
></VideoItem> ></VideoItem>
</div> </div>
<div class="list" v-if="tabindex == 1"> <div class="list" v-if="tabindex == 1">
<LiveItemad v-if="videolist.total"></LiveItemad>
<VideoItem <VideoItem
v-for="(i, j) in videolist.data" v-for="(i, j) in videolist.data"
:key="j" :key="j"
@ -96,7 +97,7 @@
></VideoItem> ></VideoItem>
</div> </div>
<div class="pages"> <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>
</div> </div>
</template> </template>