cart2_pre.wxml
11.6 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
<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
<form bindsubmit="sendsm">
<view class="container">
<view class="tab-container" wx:if="{{act.presell_type==1}}">
<view class="tab-wrapper">
<view hidden="{{bn_t_exp_t==2}}" bindtap='setexptype' data-t='1' class="tab {{bn_exp_type == 1? 'active':''}}"
data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}" >门店自提</view>
<view hidden="{{bn_t_exp_t==1}}" bindtap='setexptype' data-t='0' class="tab {{bn_exp_type== 0 ? 'active':''}}"
data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}" >快递邮寄</view>
</view>
</view>
<block wx:if="{{act.presell_type==1}}">
<!--要进行判断地址是否显示---->
<view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{bn_exp_type==0}}'>
<!---默认地址显示------>
<block wx:if="{{user_addr!=null}}">
<view class="user-contact">收货人:{{user_addr.consignee}}{{' '}}{{user_addr.mobile}}</view>
<view class="location">
<view class="address">{{user_addr.more_address}}{{' '}}{{user_addr.address}}</view>
<view class="pos-icon">
<image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
</view>
</view>
<view class="update-logistics">
<image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/icon-arrowdown.png"></image>
</view>
</block>
<!---先增地址------>
<block wx:else>
<view class="add_new">
<image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
</view>
</block>
<!-- <view class="border-img"><image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/tt.png"></image></view> -->
</view>
</block>
<!------立即购买-------->
<block>
<!-- <view class="xc-border main-top"></view> -->
<view class="use-item bfff bdr_t-14 mgt20">
<image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image> <view>{{bn_pickname}}</view></view>
<view class="order-detail">
<view class="goods-img">
<image class="wh100 bdr14" src="{{bn_goods.original_img}}"
binderror='cart_set_err' data-err="bn_goods.original_img"></image>
</view>
<navigator catchtap="go_detail" class="order-cont" data-gid="{{bn_goods.goods_id}}">
<view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
<!-- 商品属性 -->
<view class="flex-vertical fs28 color-gray n_guige">
<view class="goods-color"><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text>
</view></view>
<!-----商品名称规格------>
<view class="order-num flex-space-between">
<view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
<view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view>
<view class="goods-num">x{{bn_goods.buynum}}</view>
</view>
</navigator>
<!-- <view class="order-num">
<view class="co-red">¥{{bn_goods.shop_price}}</view>
<view class="goods-num">x{{bn_goods.buynum}}</view>
</view> -->
</view>
<!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
<view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
<view class="flex">
<view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
<image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png"></ image>
<text class="card_name">{{show_card.CardName}}</text>
</view>
<view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
</view>
<view>
<text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
</view>
<!-- 三角形 -->
<view class="car_tri_up"></view>
<!-- 立即开通跳转 -->
<view bindtap="buycard" class="card_op">立即开通</view>
</view>
<view class="set-mes bdr_b-14">
<view wx:if="{{order.store_prom}}"><icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
</view>
<!--阶梯团是不显示的-->
<block wx:if="{{bn_exp_type==0 && !is_default_logistics && !is_fwk}}">
<view class="use-item flex-space-between" wx:if="{{kt_type!=3 || is_normal==1}}">
<view>选择物流</view>
<view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 8rpx;">
<view class="logistics-name">{{wu_arr[index].name}}</view><view class="xc-right"></view>
</view>
</view>
</block>
<!--阶梯团是不显示的
<block wx:if="{{kt_type!=3 || is_normal==1 }}">
<view class="use-item" hidden='{{bn_exp_type==1}}'>
<view>使用物流:</view>
<picker bindchange="bindPickerChange" value="{{index}}" range="{{wu_arr}}" range-key="name">
<view >{{wu_arr[index].name}}</view>
</picker>
</view>
</block>-->
</view>
<!-- 保障服务 -->
<view class="bz_view22 flex bdt16 ai_c" wx:if="{{bconfig.service_bz}}">
<image class="bzfu_img22" src="{{imgUrl}}/miniapp/images/bzfu_w.png"></image>
<view class="flex f1 ai_c rel22" style="position: relative;" bindtap="{{showFold ? 'clickCollapse':''}}">
<view class="bz-content22 showArea22 {{flag ? '':'ellipsis-1x'}}">{{bconfig.service_bz}}</view>
<view class="bz-content22 hideArea22">{{bconfig.service_bz}}</view>
<view class="cx-obtain-coupon22 wsize22 arrow22" wx:if="{{showFold}}">
<text class="bg_jj22 {{flag ? 'up22':''}}"></text>
</view>
</view>
</view>
<view class="coupon-mes flex-vertical">
<view>留言</view>
<view class="leave-word">
<input placeholder-class="fs28" placeholder='给商家留言,最多100字'bindinput="keyUpChangeNum" disabled="{{disabled}}" class="word-box" maxlength="100" name="user_note"></input>
</view>
</view>
</block>
<!-- 不下单的时候退款定金 -->
<view class="information bdr14" style="margin-bottom: 20rpx" wx:if="{{!act.is_refundmoney}}">
<view wx:if="{{act.presell_type==0}}" class="item ai-center">
<view >我同意预售商品不退定金</view>
<switch style="transform: scale(0.7);position: relative; right: -24rpx" type="switch" checked="{{agree_no_ref?true:false}}" bindchange="switchChange"/>
</view>
</view>
<view class="information bdr14">
<!-----使用预存------>
<view class="set-mes" wx:if="{{bn_goods.yck_off && !is_fwk}}">
<view class="use-item" bindtap='prestore2' style="padding-left:0;padding-right:0;">
<icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
<view class="yu_er">使用预存 </view>
</view>
</view>
<!-----使用余额------>
<view class="set-mes" wx:if="{{userinfo.user_money>0 && yuer>0 && !is_fwk}}">
<view class="use-item" bindtap='set_bn_useyuer' style="padding-left:0;padding-right:0;">
<icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
<view class="yu_er">使用余额 :¥{{yuer}} </view>
</view>
</view>
<view class="item" wx:if="{{act.presell_type==1}}">
<view>商品金额</view>
<view class="co-red">¥ {{formData.all_price}}元</view>
</view>
<view class="item" wx:else>
<view>定金金额</view>
<view class="co-red">¥ {{formData.all_price}}元</view>
</view>
<view class="item" wx:if="{{formData.shipping_price>0}}">
<view>配送费用</view>
<view class="co-red">¥ {{formData.shipping_price}}元</view>
</view>
<!-- 使用预存优惠金额 -->
<view class="item" wx:if="{{formData.prestore>0}}">
<view>使用预存</view>
<view class="co-red">- ¥ {{filters.toFix(formData.prestore,2)}}元</view>
</view>
<view class="item" wx:if="{{formData.user_money>0}}">
<view>使用余额</view>
<view class="co-red">- ¥ {{formData.user_money}}元</view>
</view>
</view>
</view>
<view class="btn-wrap">
<view class="pay-amount">
<view class="payable">应付金额:<text class="co-red">¥{{formData.order_amount}}</text></view>
<!-- <view class="co-red big"></view> -->
</view>
<button class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
</view>
</form>
<!----弹起选择物流名的列表---->
<view wx:if='{{open_express==1}}' >
<view class="cover-layer flex-center " bindtap='close_express'>
</view>
<view class="cx-popup radius {{open_express==1?'up' : 'down'}}" >
<view class="tops flex">
<view class="top-content fs32">
<view>
选择物流名字
</view>
</view>
<view class="close-frame" bindtap='close_express' >
<view class="xc-close-express">×</view>
</view>
</view>
<view class="express_list">
<view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
<view class="express_list_frame" bindtap="click_express_name"
data-shippingcode="{{express_list.shipping_code}}"
data-name="{{express_list.name}}" data-idxe="{{idx}}">
<block wx:if="{{is_express==idx}}">
<view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
</block>
<block wx:else>
<view class="circle xc-hooks"></view>
</block>
<view class="fs30">{{express_list.name}}</view>
</view>
</view>
</view>
<view class="flex click-buttem" >
<view class="xc-determine flex-center" bindtap="determine_expres">
<view class="flex-vertical t-c">确定</view>
</view>
<view class="xc-confirms flex-center" bindtap="select_default_logistics">
<view class="flex-vertical t-c">设为默认</view>
</view>
</view>
</view >
</view>
<warn id="warn"></warn>