PromotionList.wxml 2.28 KB
<import src="categoryProductListFilter.wxml" />
<import src="productListCell.wxml" />
<import src="/pages/goodsDetail/picker/picker.wxml" />

<view class='container-view'>

  <block>
    <view class="searchContainer">
      <view class="searchBg">
        <input class="serachInput" value="{{keyword}}" placeholder="{{_placeholder}}" bindinput="inputChanged" bindfocus="focusChanged" bindconfirm="inputConfirmed" placeholder-class="placeholder" />
        <image class="serachIcon" src="../index/images/home_search@2x.png"></image>
      </view>
      <image class='shopCartImage' src='images/shop-ic@2x.png' bindtap='navToShopCartAction'></image>
    </view>

    <view class="fixedFilter">
      <template is="categoryProductListFilter" data="{{filter, filterGenderItem, genderFilter}}" />
    </view>

    <view class='promotionTitleBgView'>
      <view class='promotionTitle'>
        {{promotionTitle}}
      </view>
    </view>

  </block>

  <scroll-view wx:if="{{list.data.length > 0}}" scroll-y style="height: {{screenHeight-100}}px; margin-top:254rpx;" bindscrolltolower="loadMore" scroll-top="{{scrollTop}}" bindscroll="scroll">
    <view class="productListContainer">
      <block wx:for="{{list.data}}" wx:key="{{index}}">
        <template is="productListCell" data="{{listWidth, listHeight, listImageWidth, listImageHeight, listImageTop, listMarginHorizontal, showAddShopCartBtn, item}}">
        </template>
      </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>

  </scroll-view>

  <view wx:elif='{{!list.isLoading}}' class='emptyView'>
    <image src='images/search_kong@2x.png' class='emptyViewSearchImage'></image>
    <text class='emptyViewTitle'>未找到相关商品</text>
  </view>

  <loading wx:if="{{list.currentPage == 0 && list.isLoading}}">加载中</loading>

  <template is="Picker" data="{{pickerData}}" />

</view>
 <quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" bind:backToTop="backToTop"></quickNavigation>

<import src="../../vendors/toast/wetoast.wxml" />
<template is="wetoast" data="{{...__wetoast__}}" />