completed.wxml
1.7 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
<view class="payboxs">
<view bindtap="payment">
<text>待付款</text>
</view>
<view bindtap="delivery">
<text>待发货</text>
</view>
<view bindtap="shipped">
<text>已发货</text>
</view>
<view class="payactive">
<text>已完成</text>
</view>
</view>
<view class="pays" wx:if="{{!orders}}">
<text class="nooders">暂无已完成订单</text>
</view>
<view class="pays">
<view class="paypay" data-id="{{item.id}}" wx:for="{{orders}}" wx:key="{{item.id}}">
<view class="payorder">
<text>订单编号: {{item.num}}</text>
</view>
<view class="paylist" wx:for="{{item.details}}" wx:for-item="i" wx:key="{{i}}">
<navigator url="../../index/paydetail/paydetail?id={{item.id}}&type=3&is_comment={{i.is_comment}}">
<image src="{{i.thumb}}"></image>
</navigator>
<view class="payright">
<view class="commentbox">
<text class="payname">{{i.name}}</text>
<text bindtap="gocomment" class="comment" data-odid="{{i.odid}}" wx:if="{{i.is_comment==0}}">评价商品</text>
<text class="comment" data-odid="{{i.odid}}" wx:else>已评价</text>
</view>
<view class="payprice">
<text class="rightprice">¥{{i.pprice}}</text>
<text class="rightnum">数量:{{i.count}}</text>
</view>
</view>
</view>
<view class="gopay">
<text bindtap="del_order" data-id="{{item.id}}" data-index="{{index}}">删除订单</text>
</view>
</view>
</view>