gift-shop.wxml
2.17 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
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="app__content main">
<view class="top">
<div class="top-wrap">
<view class="search">
<input class="ipt" value="{{keyWords}}" bindinput="bindKeyWordsInput" placeholder="输入关键字搜索" />
<image class="icon" mode="aspectFit" src="../../image/icon/icon-search.png" />
</view>
<view class="filter" bindtap="onChangeFitterHandler">
积分排序
<view wx:if="{{orderSort == 0}}" class="icon-wrap">
<image class="icon up" src="../../image/icon/icon-filter-up-on.png" mode="widthFix" />
<image class="icon down" src="../../image/icon/icon-filter-down.png" mode="widthFix" />
</view>
<view wx:else class="icon-wrap">
<image class="icon up" src="../../image/icon/icon-filter-up.png" mode="widthFix" />
<image class="icon down" src="../../image/icon/icon-filter-down-on.png" mode="widthFix" />
</view>
</view>
</div>
</view>
<view class="top-space"></view>
<view class="content">
<view class="product">
<view class="product-item" wx:for="{{productList}}" wx:key="{{index}}">
<view class="image-wrap">
<image class="image" mode="aspectFit" src="{{item.commodityImages[0]}}" />
</view>
<view class="cont">
<view class="name">{{item.commodityTitle}}</view>
<view class="desc">{{item.commodityBrief}}</view>
<view class="integral">消耗积分:{{item.commodityPrice}}分</view>
<view bindtap="onShowGiftDetailHandler" data-data="{{item}}" class="btn">查看</view>
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ orderSubmitSuccessTipsCompVisible }}">
<order-submit-success-tips-comp bind:evtcomp="evtcomp" inner-title="积分不足" inner-text="使用推广、签到功能\n可获取更多积分!" inner-button="我知道了"></order-submit-success-tips-comp>
</van-popup>