PromotionList.wxml
2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<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__}}" />