index.ttml
1.08 KB
<view class="product-list-page">
<tabCell id="tabCell" tabs="{{tabs}}" bind:onTabClick="onTabClick"/>
<view style="position: absolute;top: 92rpx;width: {{contentWidth}}px;height:{{contentHeight}}px;">
<swiper current="{{activeIndex}}">
<swiper-item tt:for="{{tabs}}" tt:for-item="tab" tt:key="{{index}}" catchtouchmove='catchTouchMove'>
<block tt:if="{{tab && tab.data && tab.data.product_list && tab.data.product_list .length > 0}}">
<scroll-view style="height:{{contentHeight}}px" scroll-y="true" bindscrolltolower="onLoadMore">
<view class="scroll-content">
<block tt:for="{{tab.data.product_list}}" tt:for-item="product" tt:key="{{index}}">
<productCell id="productCell" item="{{product}}"/>
</block>
</view>
</scroll-view>
<view class="load_more_view">加载中...</view>
</block>
<block tt:else>
<view class='empty'>
<noDataView></noDataView>
</view>
</block>
</swiper-item>
</swiper>
</view>
</view>