orderList.wxml
2.08 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
<view class='order-list-group'>
<!-- type: 1 => 带有图片的列表 -->
<block wx:if="{{type == 1}}" wx:for='{{orderList}}' wx:key='index'>
<view class="order-list-item flex-row" data-orderCode="{{item.orderCode}}" bindtap='tap'>
<view class="order-brand">
<image class="img" src="{{item.carBrandLogo}}"></image>
</view>
<view class="order-info">
<view class="order-title text-ellipsis">{{item.carSeriesName}}</view>
<view class="order-keyword text-ellipsis">{{item.carTypeName}}</view>
<view class="order-orderNum text-ellipsis">订单编号:{{item.orderCode}}</view>
</view>
</view>
</block>
<!-- type: 2 => 无图片列表 -->
<block wx:if="{{type == 2}}" wx:for='{{orderList}}' wx:key='index'>
<view class="order-list-item flex-row" bindtap="tap" data-item="{{item}}">
<view class="order-info-noPic flex-column">
<view class="order-info-title text-ellipsis">{{item.couponName}}
<view class="order-type">{{item.couponTypeName}}</view>
</view>
<view class="order-orderNum text-ellipsis">领取时间:{{item.getTime}}</view>
<view class="order-orderTime text-ellipsis" wx:if="{{item.usedFlag == 'Y'}}">核销时间:{{item.time}}</view>
<view class="order-orderTime text-ellipsis">
使用门店:{{item.yqMerchantType == 8 ? item.merchantCoupon.merchantName : item.merchantCoupon.yqMerchantName}}
</view>
<view class="order-term">有效期:永久</view>
</view>
<view class="order-btn">查看详情</view>
</view>
</block>
<!-- 精品交付单 -->
<block wx:if="{{type == 3}}" wx:for='{{orderList}}' wx:key='index'>
<view class="order-list-item flex-row type3" data-orderCode="{{item.orderCode}}" data-item="{{item}}" bindtap='tap'>
<view class="order-info-noPic flex-column">
<view class="order-orderNum text-ellipsis">
订单编号:{{item.orderCode}}
<image class="arrow-right" src="../../images/arrow-right.png"></image>
</view>
<view class="order-orderTime text-ellipsis">生成时间:{{item.createdDate}}</view>
</view>
</view>
</block>
</view>