index.wxml
5.5 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
<!--dist/pages/orderDetail/index.wxml-->
<scroll-view class='order-detail-scrool-view'>
<text class='order-detail-status-title-txt'>{{data.statusDetail.statuStr}}</text>
<view class='order-detail-time-view' wx:if="{{timer}}">
<image class='order-detail-time-image' src='../../assets/images/time@3x.png'></image>
<text class='order-detail-count-down-txt'>{{timer}}</text>
</view>
<view>
<text class='order-detail-tips-txt' wx:if="{{data.statusDetail.detailDesc}}">{{data.statusDetail.detailDesc}}</text>
</view>
<view class='order-detail-split-line'></view>
<view class='order-detail-logistics-view' wx:if="{{data.lastExpressInfo}}" bindtap='onClickLogistics' data-order-code='{{data.orderCode}}'>
<view class='order-detail-logistics-info-view'>
<image class='order-detail-address-image' src='../../assets/images/express_info@2x.png'></image>
<view class='order-detail-logistics-dec-view'>
<text class='order-detail-logistics-dec-txt'>{{data.lastExpressInfo.acceptRemark}}</text>
<text class='order-detail-tips-txt'>{{data.lastExpressInfo.createTimeStr}}</text>
</view>
</view>
<image class='order-detail-right-arrow-image' src='../../assets/images/right-arrow@3x.png'></image>
</view>
<view class='order-detail-split-line' wx:if="{{data.lastExpressInfo}}"></view>
<!-- 地址信息 -->
<view class='order-detail-address-view'>
<image class='order-detail-address-image' src='../../assets/images/noad@2x.png'></image>
<view class='order-detail-address-info-view'>
<text class='order-detail-address-user-name-txt'>{{data.userAddress.consignee}}</text>
<text class='order-detail-address-detail-info-txt'>{{data.userAddress.area}}{{data.userAddress.address}}</text>
<text class='order-detail-address-phone-num-txt'>{{data.userAddress.mobile}}</text>
</view>
</view>
<view class='order-detail-split-line'></view>
<orderproductinfo id="orderproductinfo" isStore="{{data.isOffline === 'Y'}}" product-info="{{data.goodsInfo}}" bindtap='onClickProduct' />
<view class='order-detail-split-line'></view>
<view class='order-detail-count-view' style='margin-top:28rpx;'>
<text class='order-detail-sum-grey-txt'>商品金额:</text>
<text class='order-detail-sum-grey-txt'>¥{{data.priceInfo.goodPrice}}</text>
</view>
<view class='order-detail-count-view' wx:if="{{data.priceInfo.activityCutPrice}}">
<block wx:if="{{data.priceInfo.activityCutPrice != '0.00' && data.priceInfo.activityCutPrice != '0'}}">
<text class='order-detail-sum-grey-txt'>活动优惠:</text>
<text class='order-detail-sum-grey-txt'>-¥{{data.priceInfo.activityCutPrice}}</text>
</block>
</view>
<view class='order-detail-count-view' wx:if="{{data.isOffline !== 'Y'}}">
<text class='order-detail-sum-grey-txt'>运费:</text>
<text class='order-detail-sum-grey-txt'>¥{{data.priceInfo.feePrice}}</text>
</view>
<view class='order-detail-count-view' wx:if="{{data.priceInfo.couponCutPrice}}">
<block wx:if="{{data.priceInfo.couponCutPrice != '0.00' && data.priceInfo.couponCutPrice != '0'}}">
<text class='order-detail-sum-grey-txt'>优惠券:</text>
<text class='order-detail-sum-grey-txt'>-¥{{data.priceInfo.couponCutPrice}}</text>
</block>
</view>
<view class='order-detail-count-view'>
<text class='order-detail-sum-black-txt'>实际金额:</text>
<text class='order-detail-sum-red-txt'>¥{{data.priceInfo.realPayPrice}}</text>
</view>
<view class='order-detail-split-line'></view>
<view class='order-detail-create-time-view'>
<text class='order-detail-create-time-txt'>创建时间:</text>
<text class='order-detail-create-time-txt'>{{data.submitOrderTimeStr}}</text>
</view>
<view class='order-detail-order-code-view'>
<text class='order-detail-create-time-txt'>订单编号:</text>
<text class='order-detail-create-time-txt' wx:if="{{data.isOffline !== 'Y'}}">{{data.orderCode}}</text>
<text class='order-detail-create-time-txt' wx:else>{{data.orderCode}} (门店订单)</text>
<image class='order-detail-order-copy-image' bindtap='onCopyOrderCode' src='../../assets/images/copyordercode@3x.png'></image>
</view>
<view wx:if='{{data.payment}}' class='order-detail-pay-mode-view'>
<text class='order-detail-create-time-txt'>支付方式:</text>
<text class='order-detail-create-time-txt'>{{data.paymentStr}}</text>
</view>
<view class='order-detail-split-line'></view>
</scroll-view>
<view class='order-detail-bottom-action-view' wx:if='{{data.buttons.length > 0}}'>
<!-- <orderdetailaction id="orderdetailaction" buttons="{{buttons}}" order-code="orderCode" real-price="{{priceInfo.realPayPrice}}" product-id='{{goodsInfo.productId}}'/> -->
<view class='order-detail-bottom-realprice-view' >
<text class='order-action-pay-amount-txt'>¥{{data.priceInfo.realPayPrice}}</text>
<text class='order-daction-pay-amount-title-txt'>实付金额</text>
</view>
<view class='order-detail-bottom-button-view'>
<block wx:for='{{data.buttons}}' wx:key='{{index}}'>
<button class='{{index == lastIndex && item.code !== "cancel_order" && item.code !== "del_order" ? "order-detail-bottom-selected-button":"order-detail-bottom-unselected-button"}}' catchtap='onButtonClick' data-button-code='{{item.code}}' data-order-code='{{data.orderCode}}' data-product-id='{{data.goodsInfo.productId}}'>{{item.text}}</button>
</block>
</view>
</view>
<cancel-order-dialog show-confirm="{{cancelConfirm}}" order-code="{{cancelOrderCode}}"
nav-back="{{navBack}}"></cancel-order-dialog>