Commit 40ca9b14 authored by tangfh's avatar tangfh

+

parent f16e5cd5
......@@ -8,7 +8,7 @@
@refresherrefresh="onRefresh" @scrolltolower="onLoadMore" :refresher-triggered="refresherTriggered"
:style="{'height':(scrollViewHeight+'px')}">
<view class="flex-column" v-if="items.length > 0" :style="{'min-height': (scrollViewHeight + 'px')}">
<view class="view-tmp1 active" v-for="(item, index) in tab.data" :index="index" :key="index"
<view class="view-tmp1 active" v-for="(item, index) in items" :index="index" :key="index"
:item="item" @onItemClick="onItemClick"></view>
</view>
<c-status-view @onStatusClick="onStatusClick" v-if="contentStatus.value"></c-status-view>
......
......@@ -230,11 +230,11 @@
this.switchTab(index);
},
onTabChange(e) {
if (this.tabList[this.tabIndex].data.length > 0) {
return;
}
let index = e.target.current || e.detail.current;
this.switchTab(index);
if (this.tabList[index].data.length > 0) {
return;
}
this.getList(index);
},
switchTab(index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment