shipped.wxml
3.1 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
<view class="payboxs">
<view bindtap="payment">
<text>待付款</text>
</view>
<view bindtap="delivery">
<text>待发货</text>
</view>
<view class="payactive">
<text>已发货</text>
</view>
<view bindtap="completed">
<text>已完成</text>
</view>
</view>
<view class="pays" wx:if="{{!orders}}">
<text class="nooders">暂无已发货订单</text>
</view>
<view class="pays" wx:else>
<view class="paypay" data-id="{{item.id}}" wx:for="{{orders}}" wx:key="{{item.id}}">
<view class="payorder">
<text>订单编号: {{item.num}}</text>
</view>
<view wx:if="item.tracking_num&&item.tracking_code">
<view class="payorder">
<text>物流编号:{{item.tracking_num}}</text>
</view>
<view class="payorder">
<view>
<text>配送方式:</text>
<text wx:if="{{item.tracking_code=='ZTO'}}">中通快递</text>
<text wx:elif="{{item.tracking_code=='YTO'}}">圆通快递</text>
<text wx:elif="{{item.tracking_code=='YD'}}">韵达速递</text>
<text wx:elif="{{item.tracking_code=='YZPY'}}">邮政快递包裹</text>
<text wx:elif="{{item.tracking_code=='EMS'}}">EMS</text>
<text wx:elif="{{item.tracking_code=='JD'}}">京东物流</text>
<text wx:elif="{{item.tracking_code=='QFKD'}}">全峰快递</text>
<text wx:elif="{{item.tracking_code=='GTO'}}">国通快递</text>
<text wx:elif="{{item.tracking_code=='UC'}}">优速快递</text>
<text wx:elif="{{item.tracking_code=='DBL'}}">德邦</text>
<text wx:elif="{{item.tracking_code=='FAST'}}">快捷快递</text>
<text wx:elif="{{item.tracking_code=='ZJS'}}">宅急送</text>
<text wx:else>快递</text>
</view>
</view>
</view>
<view class="paylist" wx:for="{{item.details}}" wx:for-item="i" wx:key="{{i}}">
<navigator url="../../index/paydetail/paydetail?id={{item.id}}&type=2">
<image src="{{i.thumb}}"></image>
</navigator>
<view class="payright">
<view>
<text class="payname">{{i.name}}</text>
</view>
<text class="standard">{{i.standard?i.standard:''}}</text>
<view class="payprice">
<text class="rightprice">¥{{i.pprice}}</text>
<text class="rightnum">数量:{{i.count}}</text>
</view>
</view>
</view>
<view class="gopay">
<navigator hoverClass="none" url="../logistic/logistic?tracking_code={{item.tracking_code}}&tracking_num={{item.tracking_num}}&num={{item.num}}&oders={{orders}}">
<text wx:if="item.tracking_num&&item.tracking_code">查看物流</text>
</navigator>
<text bindtap="pay_order" data-id="{{item.id}}" data-index="{{index}}">确认收货</text>
</view>
</view>
</view>