orders.wxml
7.82 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<import src ='defraudtip/defraudtip.wxml'/>
<view class="container order-page">
<form bindsubmit="formSubmit" report-submit='true'>
<view id="order-nav" class="order-nav clearfix">
<view class="tap-hightlight {{index == 0 ? 'active' : ''}}" data-type="1" bindtap="onSelectChanged">
<view class="nav-tap" >全部</view>
</view>
<view class="tap-hightlight {{index == 1 ? 'active' : ''}}" data-type="2" bindtap="onSelectChanged">
<view class="nav-tap" >待付款</view>
</view>
<view class="tap-hightlight {{index == 2 ? 'active' : ''}}" data-type="3" bindtap="onSelectChanged">
<view class="nav-tap" >待发货</view>
</view>
<view class="tap-hightlight {{index == 3 ? 'active' : ''}}" data-type="4" bindtap="onSelectChanged">
<view class="nav-tap" >待收货</view>
</view>
</view>
<view id="order-container" class="order-container">
<view class="firstscreen-orders">
<block wx:for="{{orders}}" wx:key="order_code">
<view class="order" data-order_code="{{item.order_code}}" bindtap="navToOrderDetail">
<view class="header">
订单编号:{{item.order_code}}
<view class="order-status">{{item.status_str}}</view>
</view>
<view class="order-goods">
<block wx:for="{{item.order_goods}}" wx:for-item="good" wx:key="product_id">
<view class="order-good" data-id="">
<view class="thumb-wrap">
<image class="thumb" src="{{good.goods_image}}"></image>
<image wx:if="{{good.goods_type=='gift' || good.goods_type=='price_gift'}}"class='productTag' src="{{good.goods_type=='gift'?'images/zp-lab@2x.png':'images/jjg-lab@2x.png'}}"></image>
</view>
<view class="deps">
<view class="name row">{{good.product_name}}</view>
<view class="row">
<view class="color">
颜色:{{good.color_name}}
</view>
<view class="size">
尺码:{{good.size_name}}
</view>
</view>
<view class="row price-wrap">
<view class="price">
¥{{good.real_pay_price}}
</view>
<view wx:if="{{good.sales_price}}" class="count" style='text-decoration:line-through;'>
¥{{good.sales_price}}
</view>
<view class="count">
×{{good.buy_number}}
</view>
</view>
</view>
<block wx:if="{{good.expect_arrival_time}}">
<text class="order-tip" >上市期:{{good.expect_arrival_time}}</text>
</block>
</view>
</block>
</view>
<view class="footer">
共{{item.buy_total}}件商品 实付
<view class="sum-cost">¥{{item.amount}}</view>
(含运费¥{{item.shipping_cost}})
</view>
<view wx:if="{{item.attribute == 9}}" class="order-opt" style='font-size:28rpx;color:#444444'>*此订单只能在APP端操作</view>
<view wx:elif="{{item.links.length > 0}}" class="order-opt">
<block wx: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>
<block wx:for="{{item.links}}" wx:for-item="link" wx:key="order_code">
<block wx:if="{{link == 'closeOrder'}}">
<button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onCloseOrderTapped" data-order_code="{{item.order_code}}" data-tab_index='0' >取消订单</button>
</block>
<block wx:if="{{link == 'readd'}}">
<view class="btn cancel" style="margin-left: 20rpx;" catchtap="onReaddTapped" data-order_code="{{item.order_code}}" data-tab_index='1'>再次购买</view>
</block>
<block wx:if="{{link == 'buyNow'}}">
<view class="btn pay" catchtap="onBuyNowTapped" data-order_code="{{item.order_code}}">立即付款</view>
</block>
<block wx:if="{{link == 'delOrder'}}">
<view class="btn cancel" catchtap="onDelOrderTapped" data-order_code="{{item.order_code}}">删除订单</view>
</block>
<block wx:if="{{link == 'getExpress'}}">
<view class="btn cancel" catchtap="onExpressTapped" data-order_code="{{item.order_code}}">查看物流</view>
</block>
<block wx:if="{{link == 'confirm'}}">
<button formType="submit" class="button pay" catchtap="onConfirmTapped" data-order_code="{{item.order_code}}">确认收货</button>
</block>
<block wx:if="{{link == 'refundApply'}}">
<button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onRefundApplyTapped" data-order_code="{{item.order_code}}">申请退款</button>
</block>
<block wx:if="{{link == 'afterService'}}">
<button formType="submit" class="btn pay" catchtap="onAfterServiceTapped" data-order_code="{{item.order_code}}">申请售后</button>
</block>
</block>
</view>
</view>
</block>
<view wx:if="{{showEmptyContainer}}" style="width:750rpx;height:100%;margin-top:350rpx" class="clearfix">
<image src="images/empty@2x.png" style="width:220rpx;height:220rpx"></image>
<br />
<view style="font-size:30rpx;text-align:center;margin-top:20rpx">您还没有任何订单,赶快去逛逛吧</view>
<button bindtap="goBackToTab" class="loginBtn"> 去逛逛</button>
</view>
</view>
</view>
<picker-view wx:if="{{showReason}}"class='picker-view' value='{{value}}' bindchange='bindChange' indicator-style="height: 50px;">
<picker-view-column>
<view wx:for="{{refundReason}}" class="addr-item">{{item.reason}}</view>
</picker-view-column>
</picker-view>
<view wx:if="{{showReason}}" class='chooseBtn' bindtap='reasonSure'>确定</view>
<view wx:if="{{showReason}}" bindtap='hidderPicker' class='mask'></view>
</form>
</view>