index.wxml
10.3 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
242
243
244
245
246
247
248
249
250
251
252
<view class="layout">
<block wx:if="{{showAddr}}">
<view class="delivery">
<text>{{deliveryList[deliveryType]}}</text>
<view class="line"></view>
</view>
<view class="store" wx:if="{{deliveryType == 1}}">
<view class="top">
<view class="info">
<view class="name">{{merchantDetail.merchantName}}</view>
<view class="address">
<view>
<glsx-image class="digital-loca" webp src="discover/version/1_0_0/digital_loca.png"></glsx-image>
</view>
<view>{{merchantDetail.merchantAddress || ''}}</view>
</view>
</view>
<!-- 地址展示区 -->
<block>
<view class="btn" bindtap="openLocation" data-item="{{merchantDetail}}">
<view class="icon">
<glsx-image webp src="discover/version/1_0_0/mipmap.png"></glsx-image>
</view>
<view class="distance-text">{{merchantDetail.Distance?merchantDetail.Distance:0}}km</view>
</view>
</block>
</view>
<view class="bottom">
<view class="info-title">预留电话</view>
<view class="info-text">
{{merchantDetail.merchantLegalPerson}}
<text class="ml12">{{merchantDetail.merchantLegalPersonPhone}}</text>
</view>
</view>
</view>
<block wx:if="{{deliveryType == 0}}">
<block>
<view class="address-box" bindtap="jump">
<block wx:if="{{contactInfo.contactAddress}}">
<view class="left">
<view class="top">
<view class="name text-hide">{{contactInfo.contactName}}</view>
<block wx:if="{{isDefault}}">
<view class="default text-center">默认地址</view>
</block>
<view class="phone">{{contactInfo.contactPhone}}</view>
</view>
<view class="bottom text-hide">{{contactInfo.contactAddress}}</view>
</view>
</block>
<block wx:else>选择收货地址</block>
<view class="right text-center">
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</view>
</block>
</block>
</block>
<view class="content-box">
<view class="merchantName text-hide" wx:if="{{deliveryType==1}}">{{goodsList.goodsType == 2?merchantName:goodsList.merchantName}}</view>
<view class="merchantName text-hide" wx:if="{{deliveryType==0}}">{{goodsList[0].goodsType == 2?merchantName:(goodsList[0].merchantName || merchantName)}}</view>
<block wx:if="{{deliveryType==1}}">
<view class="item">
<view class="content">
<view class="goods-info">
<view class="preview">
<image webp src="{{goodsList.goodsImage}}"></image>
</view>
<view class="text">
<view class="name">
<view class="text-hide">{{goodsList.goodsName}}</view>
<view class="deposit-logo" wx:if="{{goodsList.paymentType == 2}}">
<text class="deposit-title">定金</text>
<text class="deposit-price">¥{{goodsList.depositPrice}}</text>
</view>
<!-- <view bindtap="showSkuFun" data-item="{{item}}" data-index="{{index}}" class="text-hide description" wx:if="{{item.specificationData}}">{{item.specificationData || ''}}
<glsx-image class="selct-icon" webp src="glsx/discover/version/4_24_1/select-icon.png"></glsx-image>
</view> -->
</view>
<view class="price-box">
<view class="price">
<text class="unit">¥</text>
{{goodsList.activityPrice}}
</view>
<view wx:if="{{!goodsList.isPay}}" data-index="{{index}}" class="goodsNumber" bindtap="handleModification">
x{{goodsList.goodsNumber}}
</view>
<stepper wx:if="{{goodsList.isPay}}" data-item="{{goodsList}}" count="{{goodsList.goodsNumber}}" max="{{goodsList.goodsStock||goodsList.stock}}" data-id="{{goodsList.goodsId}}" bindchange="changeCount" data-index="{{index}}"></stepper>
</view>
</view>
</view>
</view>
</view>
</block>
<block wx:if="{{deliveryType==0}}">
<block wx:for="{{goodsList}}" wx:key="index">
<view class="item">
<view class="content">
<view class="goods-info">
<view class="preview">
<image webp src="{{item.goodsImage}}"></image>
</view>
<view class="text">
<view class="name">
<view class="text-hide">{{item.goodsName}}</view>
</view>
<view class="price-box">
<view class="price">
<text class="unit">¥</text>
{{item.activityPrice}}
</view>
<view wx:if="{{!item.isPay}}" data-index="{{index}}" class="goodsNumber" bindtap="handleModification">
x{{item.goodsNumber}}
</view>
<stepper wx:if="{{item.isPay}}" data-item="{{item}}" count="{{item.goodsNumber}}" max="{{item.goodsStock||item.stock}}" data-id="{{item.goodsId}}" bindchange="changeCount" data-index="{{index}}"></stepper>
</view>
</view>
</view>
</view>
</view>
</block>
</block>
</view>
<view class="payInfo">
<block wx:if="{{expressFee != null}}">
<view class="tips flex_scb">
支付方式:
<view wx:if="{{deliveryType==1}}" class="info">
{{goodsList.paymentType==1?'全款':'定金+尾款'}}
</view>
<view wx:if="{{deliveryType==0}}" class="info">全款</view>
</view>
</block>
<view class="tips flex_scb">
商品总价:
<view class="info">¥{{sum}}</view>
</view>
<block wx:if="{{goodsList.paymentType ==2}}">
<view class="tips flex_scb" wx:if="{{goodsList.depositPrice}}">
商品定金:
<view class="price">¥{{goodsList.depositPrice}}</view>
</view>
<view class="tips flex_scb" wx:if="{{goodsList.retainagePrice}}">
商品尾款:
<view class="price">¥{{goodsList.retainagePrice}}</view>
</view>
</block>
<block wx:if="{{deliveryType ==0 && showAddr}}">
<view class="tips flex_scb">
运费:
<view wx:if="{{expressFee}}" class="price">¥{{expressFee}}</view>
<view wx:else class="info">包邮</view>
</view>
</block>
<block wx:if="{{couponData.length&&isCoupon}}">
<view class="tips flex_scb" style="position: relative;" bindtap="showCouponFun">
<view class="flex_cc">
<view class="logo">券</view>
优惠券
</view>
<view class="price">
<text wx:if="{{couponInfo&&isHaveCoupons&&couponCost}}">-¥{{(couponInfo.denomination)/100}}</text>
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</view>
</block>
<view class="tips flex_end" style="margin-bottom: 100rpx;">
<block wx:if="{{deliveryType==1}}">
<block wx:if="{{goodsList.paymentType == 2}}">
<view class="price fw6">
定金¥
<text class="text-40">{{depositPrice}}</text>
</view>
<view class="info ml12">
待支付尾款
<text class="text-36 ">¥{{retainagePrice}}</text>
</view>
</block>
<block wx:else>
<view class="price fw6">
<text class="gray fw5">合计</text>
¥
<text class="text-40">{{money}}</text>
</view>
</block>
</block>
<block wx:if="{{deliveryType==0}}">
<view class="price fw6">
<text class="gray fw5">合计</text>
¥
<text class="text-40">{{money}}</text>
</view>
</block>
</view>
</view>
<view style="height:188rpx"></view>
</view>
<discoupon-goods show="{{showCoupon}}" only="{{false}}" couponData="{{couponData}}" bindclick="confirmCoupon"></discoupon-goods>
<block>
<goods-action bindready="goodsActionReady" custom>
<view class="goods-action">
<view wx:if="{{deliveryType==1}}" class="total">
共{{goodsList.goodsNumber}}件,合计:
<block wx:if="{{goodsList.paymentType==1}}">
<view class="price">
<text class="unit">¥</text>
{{money||0}}
</view>
</block>
<block wx:else>
<view class="priceType">
<text class="fw6">定金¥</text>
<text class="text-40">{{depositPrice}}</text>
<view class="gray">待支付尾款¥{{retainagePrice}}</view>
</view>
</block>
</view>
<view wx:if="{{deliveryType==0}}" class="total">
共{{goodsNumber}}件,合计:
<view style="margin-left:0" class="price">
<text class="unit">¥</text>
{{money||0}}
</view>
</view>
<view class="btn text-center" bindtap="checkOut">结算({{deliveryType==1?goodsList.goodsNumber||0:goodsNumber}})</view>
</view>
</goods-action>
</block>
<discovery-sku show="{{showSku}}" specificationDetailList="{{goodsList[currentIndex]}}" showName="showSku" skuData="{{goodsInfo}}"></discovery-sku>
<!-- 支付成功 -->
<view wx:if="{{showSuccessModal}}" class="modal-container flex_ccc">
<view class="modal-body">
<glsx-image webp src="equity/return_success.png?v={{img_version}}" class="icon"></glsx-image>
<view class="text">支付成功</view>
<view class="btn flex_ccc" catch:tap="closeSuccessModal">我知道了</view>
</view>
</view>
<popup show="{{isConcat}}" only="{{only}}" bindconfirm="confirm" confirmText="立即支付" height="35%">
<view class="concat-wrap">
<view class="cell">
<view class="label">姓名</view>
<input class="weui-input" name="input" placeholder="请填写您的姓名" value="{{contactInfo.contactName}}" bindinput="getConcatInfo" data-index="0" />
</view>
<view class="cell">
<view class="label">电话</view>
<input class="weui-input" name="input" maxlength='11' type="number" placeholder="请填写您的联系方式" value="{{contactInfo.contactPhone}}" bindinput="getConcatInfo" data-index="1" />
</view>
</view>
</popup>