goodsList.ttml 1.69 KB
<import src="../../vendors/zanui/actionsheet/index.ttml"/>

<scroll-view scroll-y style="height: {{screenHeight - 50}}px;" bindscrolltolower="loadMore" bindscroll="onScroll" scroll-top="{{scrollTop}}" enable-back-to-top="true">  
    <view class="fixedFilter"> 
      <filterComponent id='filterComponent' bind:updateProductList="updateProductList" bind:jumpToFilterPage="jumpToFilterPage"></filterComponent>
    </view> 
    <block tt:if="{{list.data&&list.data.length == 0}}">
      <view class='noContentClass'>
        <image class='nosearch-ic' src="../search/images/nosearch-ic@3x.png"></image>
        <view class='noContent'>未找到符合条件的商品</view>
      </view>
    </block>
    <view class="productListContainer">
        <block tt:for="{{list.data}}" tt:key="{{index}}">
            <productCell item="{{item}}" page-name="{{current_page_name}}"></productCell>
        </block>
    </view>
    <view class="loadMore" tt:if="{{list.data.length > 0 && list.isLoading && !list.endReached}}">
        <text class="loadText">加载中...</text>
    </view>
     <view class="loadMore" tt:if="{{list.endReached}}">
        <text class="loadText">没有更多了</text>
    </view>

    <loading tt:if="{{list.currentPage == 0 && list.isLoading}}">加载中</loading>
</scroll-view>

 <quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isUnionShare="{{isUnionShare}}" bind:unionShare="unionShare" bind:backToTop="backToTop"></quickNavigation>
 <template is="zan-actionsheet" data="{{...actionsheet}}" />
  <snapshootShare id="snapshootShare" isShow="{{isShowSnapshoot}}" sourceType="list_union" shareData="{{snapshootShareData}}" bind:hiddenSheet="hiddenSheet"></snapshootShare>