goodsList.wxml
1.69 KB
<import src="../../vendors/zanui/actionsheet/index.wxml"/>
<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 wx: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 wx:for="{{list.data}}" wx:key="{{index}}">
<productListCell item="{{item}}" page-name="{{current_page_name}}"></productListCell>
</block>
</view>
<view class="loadMore" wx:if="{{list.data.length > 0 && list.isLoading && !list.endReached}}">
<text class="loadText">加载中...</text>
</view>
<view class="loadMore" wx:if="{{list.endReached}}">
<text class="loadText">没有更多了</text>
</view>
<loading wx: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>