scroll-swiper.ttml
972 Bytes
<view style="position: absolute;top: 108rpx;width: {{contentWidth}}px;height:{{contentHeight}}px;">
<swiper current="{{activeIndex}}">
<swiper-item tt:for="{{tabs}}" tt:for-item="tab" tt:key="{{tabs[activeIndex].id}}" catchtouchmove='catchTouchMove'>
<block tt:if="{{tab && tab.data && tab.data.product_list && tab.data.product_list.length >0}}">
<scroll-view scroll-y="true" bindscrolltolower="onLoadMore">
<!-- <view class="scroll-content">
<block tt:for="{{tab.data.product_list}}" tt:for-item="product" tt:key="{{index}}"> -->
<slot></slot>
<!-- </block> -->
<view class="load_more_view" tt:if="{{tab.showLoadMoreView}}">加载中...</view>
</view>
</scroll-view>
</block>
<block tt:else>
<view class='empty'>
<noDataView></noDataView>
</view>
</block>
</swiper-item>
</swiper>
</view>