orderListCell.ttml
3.33 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<view id="order-container" class="order-container">
<block tt:for="{{orders}}" tt:key="order_code">
<view class="order" data-order_code="{{item.order_code}}" data-attribute="{{item.attribute}}" bindtap="navToOrderDetail">
<view class="header">
订单编号:{{item.order_code}}
<view class="order-status">{{item.status_str}}</view>
</view>
<view class="order-goods">
<block tt:for="{{item.order_goods}}" tt:for-item="good" tt:key="product_id">
<view class="order-good" data-id="">
<view class="thumb-wrap">
<image class="thumb" src="{{good.goods_image}}"></image>
<image tt:if="{{good.goods_type=='gift'}}" class='productTag' src='../../../images/zp-lab@2x.png'></image>
<image tt:elif="{{good.goods_type=='price_gift'}}" class='productTag' src='../../../images/jjg-lab@2x.png'></image>
<image tt:elif="{{good.goods_type=='virtual'}}" class='productTag' src='../../../images/vitual@2x.png'></image>
</view>
<view class="deps">
<view class="name row">{{good.product_name}}</view>
<view class="row">
<block tt:if="{{good.goods_type=='virtual'}}">
<view class="color">
日期:{{good.color_name}}
</view>
<view class="size">
区域:{{good.size_name}}
</view>
</block>
<block tt:else>
<view class="color">
颜色:{{good.color_name}}
</view>
<view class="size">
尺码:{{good.size_name}}
</view>
<block tt:if="{{good.expect_arrival_time && good.goods_type!=='ordinary'}}">
<text class="order-tip" >上市期:{{good.expect_arrival_time}}</text>
</block>
</block>
</view>
<view class="row price-wrap">
<view class="price">
¥{{good.real_pay_price}}
</view>
<view tt:if="{{good.sales_price}}" class="count" style='text-decoration:line-through;'>
¥{{good.sales_price}}
</view>
<view class="count">
×{{good.buy_number}}
</view>
</view>
</view>
</view>
</block>
</view>
<view class="footer">
共{{item.buy_total}}件商品 实付
<view class="sum-cost">¥{{item.amount}} </view>
(含运费¥{{item.shipping_cost}})
</view>
<view tt:if="{{item.attribute == 9}}" class="order-opt" style='font-size:28rpx;color:#444444'>*此订单只能在APP端操作</view>
<view tt:elif="{{item.links.length > 0}}" class="order-opt">
<block tt:if="{{item.counter_flag == 'Y' && item.is_cancel != 'Y' && item.pay_lefttime > 0}}">
<view class="counterView">
<image class="timeIcon" src='../../../images/shijian@3x.png'></image>
<text class="counter">剩余 {{item.time_left}}</text>
</view>
</block>
<operationBar data="{{item}}" bindtapOperationBar="tapOperationBar"></operationBar>
</view>
</view>
</block>
</view>