orderDetail.wxml
11 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!-- <import src="../defraudtip/defraudtip.wxml"/> -->
<block tt:if="{{!isLoading}}">
<view class="container">
<form bindsubmit="formSubmit" report-submit='true'>
<block tt:if="{{activityBanner}}">
<view class='header'>
<image class="activityBanner" src="{{activityBanner}}"open-type="share"></image>
<button open-type="share" class="activityBannerButton"></button>
</view>
</block>
<view class='statusContainer'>
<view tt:if="{{data.order_detail_info}}" class='status' bindtap="{{isShowExpress?'onExpressTapped':''}}" data-order_code="{{order_code}}">
<text class='title'>{{data.order_detail_info.value}}</text>
<block tt:if="{{data.order_detail_info.ext}}">
<text tt:if="{{data.order_detail_info.key !== '101'}}" class='detail'>{{data.order_detail_info.ext.desc}}</text>
<text tt:else class='detail'>您的订单已提交,请在{{time_left}}内完成支付,超时订单自动取消。</text>
</block>
</view>
<block tt:if="{{isShowExpress}}">
<view class='arrow'>
<image class='image' src='../images/arrow_right@2x.png'></image>
</view>
</block>
</view>
<view class='downloadApp' style='margin-top: 1rpx;'>
<view class='logoView'>
<image class='logo' style='mode: aspectFit;' src='./images/yoho@3x.png'></image>
</view>
<text class='tips'>下载Yoho!Buy实时获取物流动态</text>
</view>
<view tt:if="{{data.delivery_info}}" class="order-detail-page yoho-page" style='margin-top: 20rpx;'>
<view id="order-detail">
<view class="owner-info block" data-changeable="true" bindtap="changeAddress">
<view class="iconfont">
<image src="images/dizhi_icon@2x.png" class="tag-image"></image>
</view>
<view class="beside-icon">
<view class="name-phone">
{{data.delivery_info.user_name}}
<view>{{data.delivery_info.mobile}}</view>
</view>
<view tt:if="{{data.delivery_info}}" class="address">
{{data.delivery_info.area + ' ' + data.delivery_info.address}}
</view>
<view tt:if="{{false}}" class="rest" style="display: block;">其他地址</view>
</view>
</view>
<view class="order-goods" style='margin-top: 20rpx;'>
<block tt:for="{{data.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}}" style='mode: aspectFit;'></image>
<image tt: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="nameContainer">
<text class='name'>{{good.product_name}}</text>
</view>
<view class="colorContainer">
<view class="color">
颜色:{{good.color_name}} 尺码:{{good.size_name}}
</view>
<view tt:if="{{good.expect_arrival_time&&good.goods_type!=='ordinary'}}" class="expire">上市期:{{good.expect_arrival_time}}</view>
</view>
</view>
<view class="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>
</block>
</view>
<block tt:if="{{data.order_amount_info}}">
<view class='formulas'>
<block tt:for="{{data.order_amount_info.promotion_formulas}}" tt:key="unique">
<view class="invoiceCell" style='margin-bottom: 20rpx;'>
<text class="invoiceCellName">{{item.promotion}}</text>
<text class='price' style='color: #444444;'>{{item.promotion_amount}}</text>
</view>
</block>
<view class='space' style='margin-top: 20rpx;margin-bottom: 20rpx;'></view>
<view tt:if="{{data.order_amount_info.real_amount}}" class="invoiceCell">
<text class="invoiceCellName">{{data.order_amount_info.real_amount.promotion}}</text>
<text class='price'>{{data.order_amount_info.real_amount.promotion_amount}}</text>
</view>
</view>
</block>
<block tt:if="{{data.order_basic_info}}">
<view class='orderDetail' style='margin-top: 20rpx;'>
<block tt:for="{{data.order_basic_info}}" tt:key="unique">
<view class='orderNum'>
<text class='ordernum'>{{item.key}}: {{item.value}}</text>
<block tt:if="{{item.ext}}">
<view tt:if="{{item.ext.need_copy_value}}" class='copyContainer' bindtap='copy' data-copy_content="{{item.ext.need_copy_value}}" data-copy_type="{{item.key}}">
<text class='copy' >复制</text>
</view>
<view tt:elif="{{item.ext.need_show_invoice}}" class='copyContainer' bindtap='lookup' data-copy_url="{{item.ext.need_show_invoice}}" data-copy_content='链接地址已复制成功,请粘贴到浏览器中打开,您也可以通过下载有货APP查看' data-copy_type="{{item.key}}">
<text class='copy'>查看</text>
</view>
</block>
</view>
</block>
</view>
</block>
<block tt:if="{{resources && resources.length > 0}}" tt:for='{{resources}}' tt:key='unique' >
<view tt:if="{{item.template_name=='newSingleImage'}}" style="width: {{item.data.imageWidth}}rpx;height: {{item.data.imageHeight}}rpx;margin-top: 20rpx;">
<image class='bannerImage' bindtap='lookup' data-copy_content="已成功复制微信公众号,请到微信中关注我们" data-copy_type='copyWeChat' data-copy_url='Yoho_buy' src="{{item.data.list&&item.data.list.length>0?item.data.list[0].src:''}}"></image>
</view>
</block>
<!--猜你喜欢列表-->
<view class='titleContainer' style='margin-top: 20rpx;'>
<view class='titleLine'></view>
<view class='titleDesc'> 为你优选</view>
</view>
<view class="likeContainer">
<block tt:for="{{recommdData}}" tt:key="{{index}}">
<productListCell item="{{item}}" page-name="{{current_page_name}}"></productListCell>
</block>
</view>
<view tt:if="{{data.links.length > 0}}" class="timeViewOpt">
<view tt:if="{{data.attribute == 9}}" class="tips" style='font-size:28rpx;color:#444444'>*此订单只能在APP端操作</view>
<view class="bottomView">
<block tt:for="{{data.links}}" tt:for-item="link" tt:key="order_code">
<block tt:if="{{link == 'closeOrder'}}">
<button class="button" style='margin-left:20rpx;margin-right:0rpx' formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onCloseOrderTapped" data-order_code="{{order_code}}">取消订单</button>
</block>
<block tt:if="{{link == 'readd'}}">
<view class="btn btn-cancel" style='margin-left:20rpx;margin-right:0rpx' catchtap="onReaddTapped" data-order_code="{{order_code}}" data-tab_index='1'>再次购买</view></block>
<block tt:if="{{link == 'buyNow'}}">
<view class="btn btn-pay" style='margin-left:20rpx;margin-right:0rpx' catchtap="onBuyNowTapped" data-order_code="{{order_code}}" data-group_no="{{data.order_extInfo.group_no}}" data-activity_id="{{data.order_extInfo.activity_id}}">立即付款</view>
</block>
<block tt:if="{{link == 'buyAtApp'}}">
<view class="btn btn-pay" style='margin-left:20rpx;margin-right:0rpx' catchtap="onBuyFromApp" data-order_code="{{order_code}}" data-group_no="{{data.order_extInfo.group_no}}" data-activity_id="{{data.order_extInfo.activity_id}}">立即付款</view>
</block>
<block tt:if="{{link == 'delOrder'}}">
<view class="btn btn-cancel" style='margin-left:20rpx;margin-right:0rpx' catchtap="onDelOrderTapped" data-order_code="{{order_code}}">删除订单</view>
</block>
<block tt:if="{{link == 'getExpress'}}">
<view class="btn cancel" style='margin-left:20rpx;margin-right:0rpx' catchtap="onExpressTapped" data-order_code="{{order_code}}">查看物流</view>
</block>
<block tt:if="{{link == 'confirm'}}">
<button formType="submit" style='margin-left:20rpx;margin-right:0rpx' type="default" class="button btn-pay" catchtap="onConfirmTapped" data-order_code="{{order_code}}">确认收货</button>
</block>
<block tt:if="{{link == 'refundApply'}}"><!--link == 'refundApply'-->
<button class="button" style='margin-left:20rpx;margin-right:0rpx' formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onRefundApplyTapped" data-order_code="{{order_code}}">申请退款</button>
</block>
<block tt:if="{{link == 'afterService'}}">
<view class="btn btn-pay" style='margin-left:20rpx;margin-right:0rpx' catchtap="onAfterServiceTapped" data-order_code="{{order_code}}">申请售后</view>
</block>
<block tt:if="{{link == 'groupInvite'}}">
<button class="inviteBtn" style='margin-left:20rpx;margin-right:0rpx' catchtap="gotoGroupBuyDetail" data-shareType='groupInvite' size="{{defaultSize}}" plain='true' data-order_code="{{order_code}}" data-group_no="{{data.order_extInfo.group_no}}" data-activity_id="{{data.order_extInfo.activity_id}}">查看拼团详情</button>
</block>
</block>
</view>
</view>
</view>
</view>
<picker-view tt:if="{{showReason}}"class='picker-view' value='{{value}}' bindchange='bindChange' indicator-style="height: 50rpx;">
<picker-view-column>
<!-- bindtap='chooseReason' data-id="{{item.id}}" data-reason="{{item.reason}}" -->
<view tt:for="{{refundReason}}" class="addr-item">{{item.reason}}</view>
</picker-view-column>
</picker-view>
<view tt:if="{{showReason}}" class='chooseBtn' bindtap='reasonSure'>确定</view>
<view tt:if="{{showReason}}" bindtap='hidderPicker' class='mask'></view>
</form>
</view>
</block>
<homenav id="homenav" isShow="{{isShowHomeNav}}"></homenav>