直播列表

This commit is contained in:
2020-07-27 14:35:32 +08:00
parent 410a7850e6
commit b2d284f666
3 changed files with 10 additions and 7 deletions

View File

@@ -39,10 +39,10 @@
<u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code"></u-swiper>
<view class="list">
<view>
<zhiboItem v-for="item in 10"></zhiboItem>
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :key="item.live_id" :name="item.store_name" :image="item.cover_img"></zhiboItem>
</view>
<view style="margin-left:20rpx">
<zhiboItem v-for="item in 10"></zhiboItem>
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :key="item.live_id"></zhiboItem>
</view>
</view>
</view>
@@ -203,6 +203,7 @@
recommendList: [], // 推荐达人
indexImageSwiper: [],
zhiboImageSwiper: [],
tabLiveLists:[]
}
},
components: {
@@ -222,6 +223,7 @@
tabLiveList(){
this.$u.api.tabLiveList().then((res)=>{
console.log(res)
this.tabLiveLists = res.data
})
},
getSwiper() {