statements.wxml
9.75 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<view wx:if="{{hasAddress}}">
<view class="addressC">
<view class="address" bindtap="otherAddressTapped">
<image class="addressIcon" src="{{addressIcon}}"></image>
<view class="addressDetailView">
<view class="addressNameView">
<text class="addressName">{{addressName}}</text>
<text class="addressTel">{{userTel}}</text>
</view>
<view class="addressText">
<text class="currentAddress" style=" word-break: break-all">{{currentAddress}}</text>
</view>
</view>
<view class="currentAddressArrow">
<image class="arrow" src="{{arrowIcon_m}}"></image>
</view>
</view>
<image class="lineIcon" src="{{lineIcon}}">
</image>
</view>
</view>
<view wx:else>
<view class="noAddressContainer">
<view class="noAddress" bindtap="otherAddressTapped" data-type='normal'>
<image class="addressIconNew" src="./images/add@2x.png"></image>
<text class="addressPlaceholder">手动新增收货地址</text>
<image class="addressArrow" src='./images/disclosure-arrow_m@2x.png'></image>
</view>
<view class="noAddress" bindtap="otherAddressTapped" data-type='wechat'>
<image class="addressIconNew" src="./images/weixin@2x.png"></image>
<text class="addressPlaceholder">一键获取微信地址</text>
<image class="addressArrow" src='./images/disclosure-arrow_m@2x.png'></image>
</view>
</view>
</view>
<scroll-view scroll-y style="margin-top: {{listTop}}rpx;" enable-back-to-top="true">
<block wx:if="{{isJit}}">
<view class="space">
</view>
<view class="tip">
<text class="tipText">{{package_title_detail}}</text>
</view>
</block>
<view class="space">
</view>
<block wx:for="{{goods_list}}" wx:key="unique">
<view class="product">
<view class="productImageView">
<image class="productImage" src="{{item.goods_images}}">
</image>
<block wx:if="{{item.goods_type == 'price_gift'}}">
<image class="productImageBottom" src="{{productImageBottomImage_price_gift}}">
</image>
</block>
<block wx:elif="{{item.goods_type == 'gift'}}">
<image class="productImageBottom" src="{{productImageBottomImage_gift}}">
</image>
</block>
<block wx:else>
</block>
</view>
<view class="productDetail">
<view class="productName">
<text class="name">{{item.product_name}}</text>
</view>
<view class="productColor">
<text class="color">颜色:{{item.factory_goods_name}} 尺码:{{item.size_name}}</text>
</view>
<block wx:if="{{item.LRE}}">
<view class="order-tipView">
<image class="icons" src="./images/question-ic@3x.png">
</image>
<text class="order-tip" >不支持7天无理由退换货</text>
</view>
</block>
<block wx:elif="{{item.L15DE}}">
<view class="order-tipView">
<image class="icons" src="./images/question-ic@3x.png">
</image>
<text class="order-tip" >不支持15天无理由换货</text>
</view>
</block>
</view>
<view class="productLeft">
<block wx:if="{{item.goods_type == 'price_gift' || item.goods_type == 'gift'}}">
<text class="productPrice">¥ {{item.last_price}}</text>
</block>
<block wx:else>
<text class="productPrice">¥ {{item.sales_price}}</text>
</block>
<text class="productNumText">x {{item.buy_number}}</text>
</view>
</view>
</block>
<view class="space">
</view>
<view class="cell" bindtap="deliveryExpandSelectDeliveryAction">
<view class="cellNameText">{{deliveryTitle}}</view>
<block wx:for="{{delivery_way}}" wx:key="unique">
<block wx:if="{{item.default == 'Y'}}">
<text class="cellDetailText">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
</block>
</block>
<block wx:if="{{deliveryExpand}}">
<image src="{{arrowIcon_i}}" class="arrowIcon2"></image>
</block>
<block wx:else>
<image src="{{arrowIcon_h}}" class="arrowIcon2"></image>
</block>
</view>
<view wx:if="{{deliveryExpand}}">
<block wx:for="{{delivery_way}}" wx:key="unique">
<view class="singleSelectCell" data-name="{{index}}" bindtap="selectDeliveryAction">
<text class="singleSelectCellTitle"data-name="{{index}}" bindtap="selectDeliveryAction">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
<block wx:if="{{item.default == 'Y'}}">
<image src="{{address_CheckedIcon}}" class="singleSelectCellButton"data-name="{{index}}" bindtap="selectDeliveryAction"></image>
</block>
<block wx:else>
<image src="{{address_UnCheckIcon}}" data-name="{{index}}" class="singleSelectCellButton" bindtap="selectDeliveryAction"></image>
</block>
</view>
</block>
</view>
<view class="cell" bindtap="expandSelectDeliveryTimeAction">
<view class="cellNameText">{{deliveryTime}}</view>
<block wx:for="{{delivery_time}}" wx:key="unique">
<block wx:if="{{item.default == 'Y'}}">
<text class="cellDetailText">{{item.delivery_time_string}}</text>
</block>
</block>
<block wx:if="{{deliveryTimeExpand}}">
<image src="{{arrowIcon_i}}" class="arrowIcon2"></image>
</block>
<block wx:else>
<image src="{{arrowIcon_h}}" class="arrowIcon2"></image>
</block>
</view>
<view wx:if="{{deliveryTimeExpand}}">
<block wx:for="{{delivery_time}}" wx:key="unique">
<view class="singleSelectCell" data-name="{{index}}" bindtap="selectDeliveryTimeAction">
<text class="singleSelectCellTitle"data-name="{{index}}" bindtap="selectDeliveryTimeAction">{{item.delivery_time_string}}</text>
<block wx:if="{{item.default == 'Y'}}">
<image src="{{address_CheckedIcon}}" class="singleSelectCellButton"data-name="{{index}}" bindtap="selectDeliveryTimeAction"></image>
</block>
<block wx:else>
<image src="{{address_UnCheckIcon}}" data-name="{{index}}" class="singleSelectCellButton" bindtap="selectDeliveryTimeAction"></image>
</block>
</view>
</block>
</view>
<block wx:if="{{from_page_name != 'groupPurchaseDetail'}}">
<view class="cell" bindtap="yohoCouponAction">
<view class="cellNameText">{{yohoCoupon}}
<view class="arrowIconEnlarge" catchtap="yohoCouponTipAction">
<image src="{{invoiceIcon}}" class="arrowIcon" catchtap="yohoCouponTipAction"></image>
</view>
</view>
<block wx:if="{{hasSelectYohoCouponCode}}">
<text class="cellDetailText">已抵用 ¥{{yohoCouponMomey}}</text>
</block>
<block wx:else>
<text class="cellDetailText">{{usable_couponsCount}}张可用</text>
</block>
<image src="{{arrowIcon_m}}" class="arrowIcon_m"></image>
</view>
<view class="yohoCodeCell">
<text class="yohoCodeCellName">{{yohoCode}}</text>
<block wx:if="{{needYohoCode && updateYohoCoin}}">
<text class="yohoCodeCellDetailText">已抵¥{{use_yoho_coin}}</text>
</block>
<block wx:else>
<block wx:if="{{total_yoho_coin_num >= 100}}">
<text class="yohoCodeCellDetailText">可抵¥{{yoho_coin}}</text>
</block>
<block wx:else>
<text class="yohoCodeCellDetailText">共{{total_yoho_coin_num}}个有货币,满100可用!</text>
</block>
</block>
<image src="{{invoiceIcon}}" class="yohoCodeCellArrowIcon" bindtap="yohoCodeCellArrowIconAction"></image>
<view class='yohoCodeCellSwitchView'>
<switch checked="{{needYohoCode}}" class="yohoCodeCellSwitch" bindchange="switch2ChangeForYohoCode" disabled = "{{!isSwitchYohoCoin}}"/>
</view>
</view>
</block>
<view class="cell">
<view class="cellNameText">{{invoice}}</view>
<switch checked="{{needInvoice}}" class="switch" bindchange="switch2Change"/>
</view>
<view class="invoiceCell" style= "display: {{needInvoice?'':'none'}};"bindtap="invoiceIconAction">
<text class="invoiceCellName"bindtap="invoiceIconAction">{{invoiceDetailTitle}}</text>
<block wx:if="{{!invoiceData}}">
<text class="invoiceCellDetailText" bindtap="invoiceIconAction">{{invoiceDetail}}</text>
</block>
<block wx:elif="{{invoiceData.personal}}">
<text class="invoiceCellDetailText" bindtap="invoiceIconAction">个人-{{invoiceData.personName}}</text>
</block>
<block wx:else>
<text class="invoiceCellDetailText" bindtap="invoiceIconAction">公司-{{invoiceData.companyName}}</text>
</block>
<view class="invoiceCellArrowView">
<image src="{{arrowIcon_m}}" class="invoiceCellArrowIcon" bindtap="invoiceIconAction"></image>
</view>
</view>
<view class="space">
</view>
<view class="addressBottomSpace">
</view>
<block wx:for="{{promotion_formula_list}}" wx:key="unique">
<view class="paymentDetailCell">
<text class="title">{{item.promotion}}</text>
<text class="detail1">{{item.promotion_amount}}</text>
</view>
</block>
<view class="paymentDetailCell">
<text class="title">{{payAmount}}</text>
<text class="detail2">¥{{actualAmount}}</text>
</view>
<view class="addressBottomSpace">
</view>
<view class="space">
</view>
<form bindsubmit="formSubmit" report-submit='true'>
<button formType="submit" bindtap="paymentBtnAction" class="paymentButton">{{payMentButtonTitle}}
</button>
</form>
<view class="addressBottomSpace">
</view>
</scroll-view>
<import src="../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>