index.wxml
2.46 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
<popup show="{{ show }}" needFooter="{{false}}" bind:click-overlay="cancel" custom-class="popclass" position="bottom" custom-style="height: 65%">
<view class="container">
<view class="header">
<view class="text" catch:tap="cancel">取消</view>
<view class="text title">选择优惠券</view>
<view class="text comfirm" catch:tap="comfirm">完成</view>
</view>
<view class="pannel">
<scroll-view enhanced scroll-with-animation enable-passive scroll-y="{{true}}" style="height:calc(100% - 68rpx)">
<block wx:for="{{couponData}}" wx:key="index">
<view catch:tap="selectCoupons" data-index="{{index}}" class="element" style="background: url({{IMG_URL}}equity/coupons-bg-list.png);background-size: 100% 100%;">
<view class="left-wrap">
<view class="price-widget">
<text>{{item.denomination}}</text>
<text class="mini">元</text>
</view>
<view class="tip">立减</view>
</view>
<view class="right-wrap" wx:if="{{item.discountType != 8}}">
<view class="title">{{item.couponName}}</view>
<view class="tip mar">{{item.useBarriers==2?'满减':'无门槛'}}</view>
<view wx:if="{{item.effectiveType==1}}" class="tip">有效期:{{item.effectiveDays}}天</view>
<view wx:elif="{{item.effectiveType==2}}" class="tip">有效期{{item.effectiveStartTime}}-{{item.effectiveEndTime}}</view>
<view wx:elif="{{item.effectiveType==3}}" class="tip">无有效期</view>
</view>
<view class="right-wrap" wx:else>
<view class="title">{{item.couponName}}</view>
<view class="tip mar">{{item.amount}}张</view>
<view wx:if="{{item.effectiveType==1}}" class="tip">最近过期优先抵扣</view>
</view>
<glsx-image wx:if="{{currentIndex==index}}" class="active" webp src="equity/checked_icon.png"></glsx-image>
<view wx:else class="radius"></view>
</view>
</block>
</scroll-view>
</view>
</view>
</popup>