This commit is contained in:
2020-08-14 09:26:59 +08:00
parent 2a58f2f63f
commit 90e9e06915
3 changed files with 12 additions and 7 deletions

View File

@@ -45,11 +45,11 @@
<view class="list">
<view>
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :zid="item.live_id" :rid="item.chatroom_id"
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
:key="item.live_id" :name="item.room_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
</view>
<view style="margin-left:20rpx">
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :zid="item.live_id" :rid="item.chatroom_id"
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
:key="item.live_id" :name="item.room_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
</view>
</view>
<u-loadmore class="load-size" color="#999999" :status="status" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
@@ -308,7 +308,8 @@
})
this.$u.api.tabLiveList({page:this.page}).then((res) => {
// uni.stopPullDownRefresh();
this.status = "loading";
this.status = "loading";
console.log(res)
if (res.errCode == 0) {
uni.hideLoading();
if (this.page == 1) {