Commit da9d6b70c84b85b5206fd6cd7e9e3586d783a3d8

Authored by 前端开发-罗建龙
1 parent 717d6b29

预存使用优化

packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js
... ... @@ -286,7 +286,7 @@ Page({
286 286 if (res.data.code == 0 && res.data.data && res.data.data.length > 0) {
287 287 let resData = res.data.data
288 288 resData.map(ite => {
289   - yck += ite.advancesum
  289 + yck += ite.advancesum*1
290 290 yckIdArr.push(ite.advanceitemid)
291 291 })
292 292 pre_json = resData
... ... @@ -298,7 +298,7 @@ Page({
298 298 } else {
299 299 obj.yck_off = 0
300 300 }
301   - obj.yck = yck
  301 + obj.yck = yck.toFixed(2)
302 302 obj.yckid = yckid
303 303 obj.pre_json = pre_json
304 304 return obj
... ...
packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.wxml
1 1 <wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
2 2 <form bindsubmit="submitConfirm">
3   - <view class="container">
4   -
5   - <block wx:if="{{is_show_sub}}">
6   - <view class="tab-container" wx:if="{{kt_type!=3 || is_normal==1}}">
7   - <view class="tab-wrapper">
8   - <view hidden="{{bn_t_exp_t==2}}" bindtap='setexptype' data-t='1' class="tab {{bn_exp_type == 1? 'active':''}}"
9   - data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}" >门店自提</view>
10   -
11   - <view hidden="{{bn_t_exp_t==1}}" bindtap='setexptype' data-t='0' class="tab {{bn_exp_type== 0 ? 'active':''}}"
12   - data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}" >快递邮寄</view>
13   -
14   - <!-- 同城配送 -->
15   - <block wx:if="{{show_same_city}}">
16   - <view hidden="{{bn_t_exp_t==3}}" bindtap='setexptype' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
17   - </block>
18   -
19   - </view>
20   - </view>
21   - </block>
22   -
23   - <!--要进行判断地址是否显示---->
24   - <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{bn_exp_type==1 || kt_type==3}}'>
25   - <!---默认地址显示------>
26   - <block wx:if="{{user_addr!=null}}">
27   - <view class="user-contact">收货人:{{user_addr.consignee}}{{'  '}}{{user_addr.mobile}}</view>
28   - <view class="location">
29   - <view class="address">{{user_addr.more_address}}{{' '}}{{user_addr.address}}</view>
30   - <view class="pos-icon">
31   - <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
32   - </view>
33   - </view>
34   - <view class="update-logistics">
35   - <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/icon-arrowdown.png"></image>
36   - </view>
37   - </block>
38   - <!---先增地址------>
39   - <block wx:else>
40   - <view class="add_new">
41   - <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
42   - </view>
43   - </block>
44   - <!-- <view class="border-img"><image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/tt.png"></image></view> -->
  3 + <view class="container">
  4 +
  5 + <block wx:if="{{is_show_sub}}">
  6 + <view class="tab-container" wx:if="{{kt_type!=3 || is_normal==1}}">
  7 + <view class="tab-wrapper">
  8 + <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>
  9 +
  10 + <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>
  11 +
  12 + <!-- 同城配送 -->
  13 + <block wx:if="{{show_same_city}}">
  14 + <view hidden="{{bn_t_exp_t==3}}" bindtap='setexptype' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
  15 + </block>
  16 +
  17 + </view>
  18 + </view>
  19 + </block>
  20 +
  21 + <!--要进行判断地址是否显示---->
  22 + <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{bn_exp_type==1 || kt_type==3}}'>
  23 + <!---默认地址显示------>
  24 + <block wx:if="{{user_addr!=null}}">
  25 + <view class="user-contact">收货人:{{user_addr.consignee}}{{'  '}}{{user_addr.mobile}}</view>
  26 + <view class="location">
  27 + <view class="address">{{user_addr.more_address}}{{' '}}{{user_addr.address}}</view>
  28 + <view class="pos-icon">
  29 + <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
  30 + </view>
  31 + </view>
  32 + <view class="update-logistics">
  33 + <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/icon-arrowdown.png"></image>
  34 + </view>
  35 + </block>
  36 + <!---先增地址------>
  37 + <block wx:else>
  38 + <view class="add_new">
  39 + <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
45 40 </view>
  41 + </block>
  42 + <!-- <view class="border-img"><image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/tt.png"></image></view> -->
  43 + </view>
46 44  
47 45  
48   - <!------立即购买-------->
49   - <block>
50   - <!-- <view class="xc-border main-top"></view> -->
51   - <view class="use-item bfff bdr_t-14 mgt20">
52   - <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image> <view>{{bn_pickname}}</view></view>
53   - <view class="order-detail">
54   - <view class="goods-img">
55   - <image class="wh100 bdr14" src="{{bn_goods.original_img}}"
56   - binderror='cart_set_err' data-err="bn_goods.original_img"></image>
57   - </view>
58   - <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}">
59   - <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
60   - <!-- 商品属性 -->
61   - <view class="flex-vertical fs28 color-gray n_guige">
62   - <view class="goods-color"><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text>
63   - </view></view>
64   -
65   - <!-----商品名称规格------>
66   - <view class="order-num flex-space-between">
67   - <view class="co-red">¥<text class="fs36">{{filters.toFix(param.goods_price,2)}}</text></view>
68   - <view class="goods-num">x{{bn_goods.buynum}}</view>
69   - </view>
70   - </navigator>
71   - <!-- <view class="order-num">
  46 + <!------立即购买-------->
  47 + <block>
  48 + <!-- <view class="xc-border main-top"></view> -->
  49 + <view class="use-item bfff bdr_t-14 mgt20">
  50 + <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image>
  51 + <view>{{bn_pickname}}</view>
  52 + </view>
  53 + <view class="order-detail">
  54 + <view class="goods-img">
  55 + <image class="wh100 bdr14" src="{{bn_goods.original_img}}" binderror='cart_set_err' data-err="bn_goods.original_img"></image>
  56 + </view>
  57 + <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}">
  58 + <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
  59 + <!-- 商品属性 -->
  60 + <view class="flex-vertical fs28 color-gray n_guige">
  61 + <view class="goods-color"><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text>
  62 + </view>
  63 + </view>
  64 +
  65 + <!-----商品名称规格------>
  66 + <view class="order-num flex-space-between">
  67 + <view class="co-red">¥<text class="fs36">{{filters.toFix(param.goods_price,2)}}</text></view>
  68 + <view class="goods-num">x{{bn_goods.buynum}}</view>
  69 + </view>
  70 + </navigator>
  71 + <!-- <view class="order-num">
72 72 <view class="co-red">¥{{bn_goods.shop_price}}</view>
73 73 <view class="goods-num">x{{bn_goods.buynum}}</view>
74 74 </view> -->
75   - </view>
76   -
77   - <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
78   - <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
79   - <view class="flex">
80   - <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
81   - <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png"></ image>
82   - <text class="card_name">{{show_card.CardName}}</text>
83   - </view>
84   - <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
85   - </view>
86   - <view>
87   - <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
88   - </view>
89   - <!-- 三角形 -->
90   - <view class="car_tri_up"></view>
91   - <!-- 立即开通跳转 -->
92   - <view bindtap="buycard" class="card_op">立即开通</view>
93   - </view>
94   -
95   -
96   - <view class="set-mes bdr_b-14">
97   - <view wx:if="{{order.store_prom}}"><icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
98   - </view>
99   -
100   - <!--阶梯团是不显示的-->
101   - <block wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
102   - <view class="use-item flex-space-between" wx:if="{{kt_type!=3 || is_normal==1}}">
103   - <view>选择物流</view>
104   - <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 8rpx;">
105   - <view class="logistics-name">{{wu_arr[index].name}}</view><view class="xc-right"></view>
106   - </view>
107   - </view>
108   - </block>
109   -
110   - <!--阶梯团是不显示的
  75 + </view>
  76 +
  77 + <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
  78 + <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
  79 + <view class="flex">
  80 + <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
  81 + <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
  82 + </ image>
  83 + <text class="card_name">{{show_card.CardName}}</text>
  84 + </view>
  85 + <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
  86 + </view>
  87 + <view>
  88 + <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
  89 + </view>
  90 + <!-- 三角形 -->
  91 + <view class="car_tri_up"></view>
  92 + <!-- 立即开通跳转 -->
  93 + <view bindtap="buycard" class="card_op">立即开通</view>
  94 + </view>
  95 +
  96 +
  97 + <view class="set-mes bdr_b-14">
  98 + <view wx:if="{{order.store_prom}}">
  99 + <icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
  100 + </view>
  101 +
  102 + <!--阶梯团是不显示的-->
  103 + <block wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
  104 + <view class="use-item flex-space-between" wx:if="{{kt_type!=3 || is_normal==1}}">
  105 + <view>选择物流</view>
  106 + <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 8rpx;">
  107 + <view class="logistics-name">{{wu_arr[index].name}}</view>
  108 + <view class="xc-right"></view>
  109 + </view>
  110 + </view>
  111 + </block>
  112 +
  113 + <!--阶梯团是不显示的
111 114 <block wx:if="{{kt_type!=3 || is_normal==1 }}">
112 115 <view class="use-item" hidden='{{bn_exp_type==1}}'>
113 116 <view>使用物流:</view>
... ... @@ -117,129 +120,127 @@
117 120 </view>
118 121 </block>-->
119 122  
120   - </view>
121   -
122   -
123   - <view class="coupon-mes flex-vertical">
124   - <view>留言</view>
125   - <view class="leave-word">
126   - <input placeholder-class="fs28" placeholder='给商家留言,最多100字'bindinput="keyUpChangeNum" disabled="{{disabled}}" class="word-box" maxlength="100" name="user_note"></input>
127   -
128   - </view>
129   - </view>
130   - </block>
131   -
132   - <!-----使用佣金------>
133   - <view class="set-mes bdr_t-14" wx:if="{{bn_goods.use_commission>0 && can_commission}}">
134   - <view class="use-item" bindtap='set_bn_commission'>
135   - <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
136   - <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
137   - </view>
  123 + </view>
  124 +
  125 +
  126 + <view class="coupon-mes flex-vertical">
  127 + <view>留言</view>
  128 + <view class="leave-word">
  129 + <input placeholder-class="fs28" placeholder='给商家留言,最多100字' bindinput="keyUpChangeNum" disabled="{{disabled}}" class="word-box" maxlength="100" name="user_note"></input>
  130 +
138 131 </view>
139   - <!-- 预存款 -->
140   - <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
141   - <view class="use-item" style="justify-content: space-between;">
142   - <view>
143   - <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
144   - <view class="yu_er">使用预存</view>
145   - </view>
146   - <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
  132 + </view>
  133 + </block>
  134 + <!-- 预存款 -->
  135 + <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
  136 + <view class="use-item" style="justify-content: space-between;">
  137 + <view>
  138 + <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
  139 + <view class="yu_er">使用预存</view>
147 140 </view>
  141 + <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
  142 + </view>
  143 + </view>
  144 + <!-----使用佣金------>
  145 + <view class="set-mes bdr_t-14" wx:if="{{bn_goods.use_commission>0 && can_commission}}">
  146 + <view class="use-item" bindtap='set_bn_commission'>
  147 + <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
  148 + <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
148 149 </view>
  150 + </view>
149 151  
150   - <view class="information bdr14">
151 152  
  153 + <view class="information bdr14">
152 154  
153 155  
154 156  
155   - <!-----使用余额------>
156   - <view class="set-mes" wx:if="{{userinfo.user_money>0 && yuer>0}}">
157   - <view class="use-item" bindtap='set_bn_useyuer' style="padding-left:0;padding-right:0;">
158   - <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
159   - <view class="yu_er">使用余额 :¥{{yuer}} </view>
160   - </view>
161   - </view>
162   - <view class="item" wx:if="{{kt_type<3 || is_normal==1}}">
163   - <view>商品金额</view>
164   - <!-- <view class="co-red">¥ {{formData.all_price}}元</view> -->
165   - <view class="co-red">¥ {{param.goods_price}}元</view>
166   - </view>
167 157  
168   - <view class="item" wx:else>
169   - <view>定金金额</view>
170   - <view class="co-red">¥ {{formData.all_price}}元</view>
171   - </view>
  158 + <!-----使用余额------>
  159 + <view class="set-mes" wx:if="{{userinfo.user_money>0 && yuer>0}}">
  160 + <view class="use-item" bindtap='set_bn_useyuer' style="padding-left:0;padding-right:0;">
  161 + <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
  162 + <view class="yu_er">使用余额 :¥{{yuer}} </view>
  163 + </view>
  164 + </view>
  165 + <view class="item" wx:if="{{kt_type<3 || is_normal==1}}">
  166 + <view>商品金额</view>
  167 + <!-- <view class="co-red">¥ {{formData.all_price}}元</view> -->
  168 + <view class="co-red">¥ {{param.goods_price}}元</view>
  169 + </view>
172 170  
173   - <view class="item" wx:if="{{formData.shipping_price>0}}">
174   - <view>配送费用</view>
175   - <view class="co-red">¥ {{formData.shipping_price}}元</view>
176   - </view>
177   - <!-- 使用预存优惠金额 -->
178   - <view class="item" wx:if="{{formData.prestore>0}}">
179   - <view>使用预存</view>
180   - <view class="co-red">-¥ {{filters.toFix(formData.prestore,2)}}元</view>
181   - </view>
  171 + <view class="item" wx:else>
  172 + <view>定金金额</view>
  173 + <view class="co-red">¥ {{formData.all_price}}元</view>
  174 + </view>
182 175  
183   - <view class="item" wx:if="{{formData.user_money>0}}">
184   - <view>使用余额</view>
185   - <view class="co-red">- ¥ {{formData.user_money}}元</view>
186   - </view>
  176 + <view class="item" wx:if="{{formData.shipping_price>0}}">
  177 + <view>配送费用</view>
  178 + <view class="co-red">¥ {{formData.shipping_price}}元</view>
  179 + </view>
  180 + <!-- 使用预存优惠金额 -->
  181 + <view class="item" wx:if="{{formData.prestore>0}}">
  182 + <view>使用预存</view>
  183 + <view class="co-red">-¥ {{filters.toFix(formData.prestore,2)}}元</view>
  184 + </view>
  185 +
  186 + <view class="item" wx:if="{{formData.user_money>0}}">
  187 + <view>使用余额</view>
  188 + <view class="co-red">- ¥ {{formData.user_money}}元</view>
  189 + </view>
187 190  
188   - </view>
189 191 </view>
  192 + </view>
190 193  
191   - <view class="btn-wrap" wx:if="{{is_show_sub}}">
192   - <view class="pay-amount">
193   - <view class="payable">应付金额:<text class="co-red">¥{{formData.order_amount}}</text></view>
194   - <!-- <view class="co-red big"></view> -->
195   - </view>
196   - <button disabled="{{sub}}" class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
197   - </view>
  194 + <view class="btn-wrap" wx:if="{{is_show_sub}}">
  195 + <view class="pay-amount">
  196 + <view class="payable">应付金额:<text class="co-red">¥{{formData.order_amount}}</text></view>
  197 + <!-- <view class="co-red big"></view> -->
  198 + </view>
  199 + <button disabled="{{sub}}" class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
  200 + </view>
198 201 </form>
199 202  
200 203 <!----弹起选择物流名的列表---->
201   -<view wx:if='{{open_express==1}}' >
202   - <view class="cover-layer flex-center " bindtap='close_express'>
  204 +<view wx:if='{{open_express==1}}'>
  205 + <view class="cover-layer flex-center " bindtap='close_express'>
  206 + </view>
  207 +
  208 + <view class="cx-popup radius {{open_express==1?'up' : 'down'}}">
  209 + <view class="tops flex">
  210 + <view class="top-content fs32">
  211 + <view>
  212 + 选择物流名字
  213 + </view>
  214 + </view>
  215 + <view class="close-frame" bindtap='close_express'>
  216 + <view class="xc-close-express">×</view>
  217 + </view>
203 218 </view>
  219 + <view class="express_list">
  220 + <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
  221 + <view class="express_list_frame" bindtap="click_express_name" data-shippingcode="{{express_list.shipping_code}}" data-name="{{express_list.name}}" data-idxe="{{idx}}">
  222 +
  223 + <block wx:if="{{is_express==idx}}">
  224 + <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
  225 + </block>
  226 + <block wx:else>
  227 + <view class="circle xc-hooks"></view>
  228 + </block>
  229 + <view class="fs30">{{express_list.name}}</view>
204 230  
205   - <view class="cx-popup radius {{open_express==1?'up' : 'down'}}" >
206   - <view class="tops flex">
207   - <view class="top-content fs32">
208   - <view>
209   - 选择物流名字
210   - </view>
211   - </view>
212   - <view class="close-frame" bindtap='close_express' >
213   - <view class="xc-close-express">×</view>
214   - </view>
215   - </view>
216   - <view class="express_list">
217   - <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
218   - <view class="express_list_frame" bindtap="click_express_name"
219   - data-shippingcode="{{express_list.shipping_code}}"
220   - data-name="{{express_list.name}}" data-idxe="{{idx}}">
221   -
222   - <block wx:if="{{is_express==idx}}">
223   - <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
224   - </block>
225   - <block wx:else>
226   - <view class="circle xc-hooks"></view>
227   - </block>
228   - <view class="fs30">{{express_list.name}}</view>
229   -
230   - </view>
231   - </view>
232   - </view>
233   - <view class="flex click-buttem" >
234   - <view class="xc-determine flex-center" bindtap="determine_expres">
235   - <view class="flex-vertical t-c">确定</view>
236   - </view>
237   - <view class="xc-confirms flex-center" bindtap="select_default_logistics">
238   - <view class="flex-vertical t-c">设为默认</view>
239   - </view>
240 231 </view>
  232 + </view>
  233 + </view>
  234 + <view class="flex click-buttem">
  235 + <view class="xc-determine flex-center" bindtap="determine_expres">
  236 + <view class="flex-vertical t-c">确定</view>
  237 + </view>
  238 + <view class="xc-confirms flex-center" bindtap="select_default_logistics">
  239 + <view class="flex-vertical t-c">设为默认</view>
  240 + </view>
  241 + </view>
241 242  
242   - </view >
  243 + </view>
243 244 </view>
244 245  
245 246 -<warn id="warn"></warn>
  247 +<warn id="warn"></warn>
246 248 \ No newline at end of file
... ...
packageC/pages/presell/cart/cart2_pre.js
... ... @@ -416,7 +416,7 @@ Page({
416 416 if (res.data.code == 0 && res.data.data && res.data.data.length > 0) {
417 417 let resData = res.data.data
418 418 resData.map(ite => {
419   - yck += ite.advancesum
  419 + yck += ite.advancesum*1
420 420 yckIdArr.push(ite.advanceitemid)
421 421 })
422 422 pre_json = resData
... ... @@ -428,7 +428,7 @@ Page({
428 428 } else {
429 429 obj.yck_off = 0
430 430 }
431   - obj.yck = yck
  431 + obj.yck = yck.toFixed(2)
432 432 obj.yckid = yckid
433 433 obj.pre_json = pre_json
434 434 return obj
... ...
packageC/pages/presell/cart/cart2_pre.wxml
... ... @@ -129,6 +129,13 @@
129 129 </view>
130 130  
131 131 <view class="information bdr14">
  132 + <!-----使用预存------>
  133 + <view class="set-mes" wx:if="{{bn_goods.yck_off}}">
  134 + <view class="use-item" bindtap='prestore2' style="padding-left:0;padding-right:0;">
  135 + <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
  136 + <view class="yu_er">使用预存 </view>
  137 + </view>
  138 + </view>
132 139 <!-----使用余额------>
133 140 <view class="set-mes" wx:if="{{userinfo.user_money>0 && yuer>0}}">
134 141 <view class="use-item" bindtap='set_bn_useyuer' style="padding-left:0;padding-right:0;">
... ... @@ -136,13 +143,7 @@
136 143 <view class="yu_er">使用余额 :¥{{yuer}} </view>
137 144 </view>
138 145 </view>
139   - <!-----使用预存------>
140   - <view class="set-mes" wx:if="{{bn_goods.yck_off}}">
141   - <view class="use-item" bindtap='prestore2' style="padding-left:0;padding-right:0;">
142   - <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
143   - <view class="yu_er">使用预存 </view>
144   - </view>
145   - </view>
  146 +
146 147 <view class="item" wx:if="{{act.presell_type==1}}">
147 148 <view>商品金额</view>
148 149 <view class="co-red">¥ {{formData.all_price}}元</view>
... ...
packageE/pages/cart/cart2/cart2.js
... ... @@ -424,7 +424,7 @@ Page({
424 424 if (res.data.code == 0 && res.data.data && res.data.data.length > 0) {
425 425 let resData = res.data.data
426 426 resData.map(ite => {
427   - yck += ite.advancesum
  427 + yck += ite.advancesum*1
428 428 yckIdArr.push(ite.advanceitemid)
429 429 })
430 430 pre_json = resData
... ... @@ -436,7 +436,7 @@ Page({
436 436 } else {
437 437 obj.yck_off = 0
438 438 }
439   - obj.yck = yck
  439 + obj.yck = yck.toFixed(2)
440 440 obj.yckid = yckid
441 441 obj.pre_json = pre_json
442 442 return obj
... ...
packageE/pages/cart/cart2/cart2.wxml
... ... @@ -3,882 +3,877 @@
3 3 <wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
4 4  
5 5 <form>
6   - <view class="container">
7   - <block wx:if="{{show_submit}}">
8   - <!-- 立即购买的时候 -->
9   - <block wx:if="{{is_b_now==1}}">
10   - <view class="tab-container">
11   - <view class="tab-wrapper">
12   - <view hidden="{{bn_t_exp_t==2}}" bindtap='setexptype2' 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>
13   -
14   - <view hidden="{{bn_t_exp_t==1}}" bindtap='setexptype2' 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>
15   -
16   - <!-- 同城配送 -->
17   - <block wx:if="{{show_same_city}}">
18   - <view hidden="{{bn_t_exp_t==3}}" bindtap='setexptype2' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
19   - </block>
20   -
21   - </view>
22   - </view>
23   - </block>
24   - <!-- 购物购买只有一单的时候 -->
25   - <block wx:if="{{is_b_now==0 && cartlist.length==1}}">
26   - <view class="tab-container">
27   - <view class="tab-wrapper">
28   - <view hidden="{{cartlist[0].distr_t==2}}" bindtap='setexptype_w2' data-ind="0" data-t='1' class="tab {{cartlist[0].exp_type == 1? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">门店自提</view>
29   -
30   - <view hidden="{{cartlist[0].distr_t==1}}" bindtap='setexptype_w2' data-ind="0" data-t='0' class="tab {{cartlist[0].exp_type== 0 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">快递邮寄</view>
31   -
32   - <!-- 判断能不能显示同城配送 -->
33   - <block wx:if="{{cartlist[0].show_same_city}}">
34   - <view hidden="{{cartlist[0].distr_t==3}}" bindtap='setexptype_w2' data-ind="0" data-t='2' class="tab {{cartlist[0].exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
35   - </block>
36   -
37   - </view>
38   - </view>
39   - </block>
40   - </block>
41   -
42   - <!--要进行判断地址是否显示---->
43   - <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{(bn_exp_type==1 && is_b_now==1) || (is_all_zt==1 && is_b_now==0 )}}'>
44   - <!---默认地址显示------>
45   - <block wx:if="{{user_addr!=null}}">
46   -
47   - <view class="user-contact">
48   - <text class="bold fs36 pdr20">{{user_addr.consignee}}</text>
49   - <text class="fs28">{{user_addr.mobile}}</text>
50   - </view>
51   - <view class="location">
52   - <view class="address fs26 pdt20">
53   - <view class="pos-icon">
54   - <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
55   - </view>
56   - {{user_addr.more_address}}{{' '}}{{user_addr.address}}
57   - </view>
58   -
59   - </view>
60   - <view class="update-logistics">
61   - <!-- <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/new_position.png"></image> -->
62   - <view class="xc-right"></view>
63   - </view>
64   - </block>
65   - <!---先增地址------>
66   - <block wx:else>
67   - <view class="add_new">
68   - <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
69   - </view>
70   - </block>
71   - <!-- <view class="border-img">
  6 + <view class="container">
  7 + <block wx:if="{{show_submit}}">
  8 + <!-- 立即购买的时候 -->
  9 + <block wx:if="{{is_b_now==1}}">
  10 + <view class="tab-container">
  11 + <view class="tab-wrapper">
  12 + <view hidden="{{bn_t_exp_t==2}}" bindtap='setexptype2' 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>
  13 +
  14 + <view hidden="{{bn_t_exp_t==1}}" bindtap='setexptype2' 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>
  15 +
  16 + <!-- 同城配送 -->
  17 + <block wx:if="{{show_same_city}}">
  18 + <view hidden="{{bn_t_exp_t==3}}" bindtap='setexptype2' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
  19 + </block>
  20 +
  21 + </view>
  22 + </view>
  23 + </block>
  24 + <!-- 购物购买只有一单的时候 -->
  25 + <block wx:if="{{is_b_now==0 && cartlist.length==1}}">
  26 + <view class="tab-container">
  27 + <view class="tab-wrapper">
  28 + <view hidden="{{cartlist[0].distr_t==2}}" bindtap='setexptype_w2' data-ind="0" data-t='1' class="tab {{cartlist[0].exp_type == 1? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">门店自提</view>
  29 +
  30 + <view hidden="{{cartlist[0].distr_t==1}}" bindtap='setexptype_w2' data-ind="0" data-t='0' class="tab {{cartlist[0].exp_type== 0 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">快递邮寄</view>
  31 +
  32 + <!-- 判断能不能显示同城配送 -->
  33 + <block wx:if="{{cartlist[0].show_same_city}}">
  34 + <view hidden="{{cartlist[0].distr_t==3}}" bindtap='setexptype_w2' data-ind="0" data-t='2' class="tab {{cartlist[0].exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
  35 + </block>
  36 +
  37 + </view>
  38 + </view>
  39 + </block>
  40 + </block>
  41 +
  42 + <!--要进行判断地址是否显示---->
  43 + <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{(bn_exp_type==1 && is_b_now==1) || (is_all_zt==1 && is_b_now==0 )}}'>
  44 + <!---默认地址显示------>
  45 + <block wx:if="{{user_addr!=null}}">
  46 +
  47 + <view class="user-contact">
  48 + <text class="bold fs36 pdr20">{{user_addr.consignee}}</text>
  49 + <text class="fs28">{{user_addr.mobile}}</text>
  50 + </view>
  51 + <view class="location">
  52 + <view class="address fs26 pdt20">
  53 + <view class="pos-icon">
  54 + <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
  55 + </view>
  56 + {{user_addr.more_address}}{{' '}}{{user_addr.address}}
  57 + </view>
  58 +
  59 + </view>
  60 + <view class="update-logistics">
  61 + <!-- <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/new_position.png"></image> -->
  62 + <view class="xc-right"></view>
  63 + </view>
  64 + </block>
  65 + <!---先增地址------>
  66 + <block wx:else>
  67 + <view class="add_new">
  68 + <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
  69 + </view>
  70 + </block>
  71 + <!-- <view class="border-img">
72 72 <image class="wh100" src="{{imgUrl}}/miniapp/images/order/new_dividing_line.png"></image>
73 73 </view> -->
74   - </view>
75   -
76   - <!-- -------------------购物车进来,有可能多单-------------------- -->
77   - <block wx:if="{{is_b_now==0}}">
78   - <!-- <view class="xc-border main-top"></view> -->
79   - <view wx:for="{{cartlist}}" wx:for-index="pidx">
80   - <view class="use-item bfff bdr_t-14 mgt20">
81   - <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'></image>
82   - <!-- <view>门店:{{item.pname}}</view> -->
83   - <view>{{item.pname}}</view>
84   - </view>
85   - <view class="order-detail" wx:for="{{item.goods}}" wx:for-index="idx" wx:for-item="items">
86   - <!----商品图片----->
87   - <view class="goods-img" style="position: relative; overflow: hidden" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
88   - <image wx:if="{{items.is_gift}}" src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>
89   - <text class="zuhe" wx:if="{{items.prom_type==7}}">组合购</text>
90   - <image class="wh100 bdr14" src="{{items.original_img}}" binderror='cart_set_err' data-err='cartlist[{{pidx}}].goods[{{idx}}].original_img'></image>
91   - </view>
92   - <!----商品名称规格---->
93   - <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
94   - <view class="goods-name ellipsis-2">{{items.goods_name}}</view>
95   - <!-- 商品属性 -->
96   - <view class="flex-vertical fs28 color-gray n_guige">
97   - <view class="goods-color">
98   - <block><text>{{filters.show_gui_ge(items.goods_spec,items.goods_color)}}</text></block>
99   - </view>
100   - </view>
101   -
102   - <!-----商品名称规格------>
103   - <view class="order-num flex-space-between">
104   - <view wx:if="{{items.prom_type==10}}" class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text><text>({{items.discount}}折)</text></view>
105   - <view wx:else class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text></view>
106   - <view class="goods-num">x{{items.goods_num}}</view>
107   - </view>
108   - </navigator>
109   - </view>
110   -
111   - <!-- 使用搭配 -->
112   - <cart_collect_temp bind:childFun="select_coll" sales_rules="{{sales_rules}}" pick="{{item.pickup_id}}"
113   - is_cart="1" cart_index="{{pidx}}" distr_t="{{item.distr_t}}" appoint_pick_keyid="{{appoint_pick_keyid}}"
114   - all_collocation_list="{{item.collocationList}}" />
115   -
116   - <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
117   - <view class="plus_buy fs28" wx:if="{{item.card_cut_price>0}}">
118   - <view class="flex">
119   - <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
120   - <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
121   - </ image>
122   - <text class="card_name">{{show_card.CardName}}</text>
123   - </view>
124   - <view>立减 <text style="color:#f23030;">{{filters.toFix(item.card_cut_price,2) }}</text> 元</view>
125   - </view>
126   - <view>
127   - <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
128   - </view>
129   - <!-- 三角形 -->
130   - <view class="car_tri_up"></view>
131   - <!-- 立即开通跳转 -->
132   - <view bindtap="buycard" class="card_op">立即开通</view>
133   - </view>
134   -
135   - <view class="set-mes bdr_b-14">
136   - <view wx:if="{{order.store_prom}}">
137   - <icon color="#f23030" size="16" type="info"></icon>
138   - {{order.store_prom}}
139   - </view>
140   -
141   - <!-- 当是物流很多单的时候 -->
142   - <view class="use-item flex-space-between" wx:if="{{cartlist.length>1 && show_submit}}">
143   - <view class="flex-vertical">
144   - <view bindtap='setexptype_w2' data-ind="{{pidx}}" data-t='1' data-txt='cartlist[{{pidx}}].exp_type' style="padding-right:26rpx;display:{{item.distr_t==2?'none':'flex;align-items: center'}};">
145   - <!-- <icon bindtap='setexptype_w' data-t='1' data-txt='cartlist[{{pidx}}].exp_type' color="{{item.exp_type==1?'red':'gray'}}" size="16" type="success"></icon> -->
146   -
147   - <block wx:if="{{item.exp_type==1}}">
148   - <!-- <view class="circle white xc-hookt fs20 red-b sn"><text>Γ</text></view> -->
149   - <icon data-t='1' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
150   - </block>
151   - <block wx:else>
152   - <view class="circle xc-hookts on"></view>
153   - </block>
154   - <view bindtap='setexptype_w2' data-ind="{{pidx}}" data-t='1' data-txt='cartlist[{{pidx}}].exp_type' class="yu_er">门店自提</view>
155   - </view>
156   -
157   - <view data-t='0' data-txt='cartlist[{{pidx}}].exp_type' data-ind="{{pidx}}" bindtap="setexptype_w2" style="display:{{item.distr_t==1?'none':'flex;align-items: center'}};">
158   -
159   - <block wx:if="{{item.exp_type==0}}">
160   - <icon data-t='0' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
161   - </block>
162   - <block wx:else>
163   - <view class="circle xc-hookts on"></view>
164   - </block>
165   -
166   - <view bindtap='setexptype_w2' data-t='0' data-ind="{{pidx}}" data-txt='cartlist[{{pidx}}].exp_type' data-wl_txt='cartlist[{{pidx}}].wind' class="yu_er">快递邮寄</view>
167   - </view>
168   -
169   - <!-- 同城配送 -->
170   - <view data-t='2' data-txt='cartlist[{{pidx}}].exp_type' data-ind="{{pidx}}" bindtap="setexptype_w2" style=" margin-left: 5rpx;display:{{!item.show_same_city?'none':'flex;align-items: center'}};">
171   -
172   - <block wx:if="{{item.exp_type==2}}">
173   - <icon data-t='2' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
174   - </block>
175   - <block wx:else>
176   - <view class="circle xc-hookts on"></view>
177   - </block>
178   -
179   - <view bindtap='setexptype_w2' data-t='2' data-ind="{{pidx}}"
180   - data-txt='cartlist[{{pidx}}].exp_type' data-wl_txt='cartlist[{{pidx}}].wind' class="yu_er">同城配送</view>
181   - </view>
182   - </view>
183   -
184   -
185   - <!-- 点击显示物流选择,如果是默认使用的情况不成立 -->
186   - <view wx:if="{{!is_default_logistics && item.exp_type!=1 && item.exp_type!=2}}" class="flex-vertical" bindtap="show_wu_arr" data-txt='cartlist[{{pidx}}].wind' data-w_sele_index="{{pidx}}" style="padding-right:6rpx;">
187   - <view>{{wu_arr[item.wind].name}}</view>
188   - <view class="xc-right"></view>
189   - </view>
190   -
191   - </view>
192   -
193   - <!-- 当是物流,只有一单的时候 -->
194   - <block wx:else>
195   - <view class="use-item flex-space-between" wx:if="{{item.exp_type==0 && !is_default_logistics}}">
196   - <view class="flex jc_sb" style="width: 100%; padding: 0 13rpx;">
197   - <view>选择物流</view>
198   - <view class="flex-vertical" bindtap="show_wu_arr" data-txt='cartlist[{{pidx}}].wind' data-w_sele_index="{{pidx}}" style="padding-right:6rpx;">
199   - <view>{{wu_arr[item.wind].name}}</view>
200   - <view class="xc-right"></view>
201   - </view>
202   - </view>
203   - </view>
204   - </block>
205   - </view>
206   -
207   - <!-- 有送礼包 -->
208   - <view wx:if="{{send_lb[item.pickup_id]}}">
209   - <block wx:for="{{send_lb[item.pickup_id]}}" wx:key="id" wx:for-item="send">
210   - <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{send.id}}" data-flag="{{send.flag}}" bindtap="viewLbDetails">
211   - <view class="flex ai_c">
212   - <view class="circle1">赠</view>{{send.zxlbtitle?send.zxlbtitle:send.lbtitle}}
213   - <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
214   - </view>
215   - <view class="flex ai_c">
216   - x{{send.num}}<text class="bg_jj"></text>
217   - </view>
218   - </view>
219   - </block>
220   - </view>
221   - <!-- 赠品的显示 -->
222   - <view wx:if="{{send_gf[item.pickup_id]}}">
223   - <block wx:for="{{send_gf[item.pickup_id]}}" wx:for-item="iter">
224   - <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-pk="{{item.pickup_id}}" data-index="{{index}}" bindtap="show_sele_gift">
225   - <view class="flex ai_c">
226   - <view class="circle1">赠</view>{{iter.name}} 可选赠品{{iter.zp_num}}个
227   - </view>
228   -
229   - <view class="flex ai_c" wx:if="{{iter.selected}}">
230   - 已选择<text class="bg_jj"></text>
231   - </view>
232   -
233   - <view class="flex ai_c" wx:else="{{}}">
234   - 未选择<text class="bg_jj"></text>
235   - </view>
236   -
237   - </view>
238   - </block>
239   - </view>
240   -
241   - <!-----使用优惠券------>
242   - <view class="xc-coupon-frame flex-center" data-bn="0" bindtap="open_coupon_list" wx:if="{{(item.quan_list && item.quan_list.length>0) || get_by_quan_list_cart[item.pickup_id]!=null && item.can_num>0}}" data-cind="{{pidx}}" data-pickid="{{item.pickup_id}}">
243   - <view class="work-frame flex-space-between">
244   - <view class="work">优惠券<text class="quan_num_show fs20">{{item.can_num}}张可用</text></view>
245   - <view class="xc-right-frame">
246   - <text wx:if="{{using_quan[item.pickup_id].is_nouse}}">不使用</text>
247   - <text wx:if="{{using_quan[item.pickup_id].money}}">¥{{using_quan[item.pickup_id].money}}元优惠券</text>
248   - <text wx:if="{{using_quan[item.pickup_id].isby}}">包邮券</text>
249   - <view class="xc-right"></view>
250   - </view>
251   - </view>
252   - </view>
  74 + </view>
  75 +
  76 + <!-- -------------------购物车进来,有可能多单-------------------- -->
  77 + <block wx:if="{{is_b_now==0}}">
  78 + <!-- <view class="xc-border main-top"></view> -->
  79 + <view wx:for="{{cartlist}}" wx:for-index="pidx">
  80 + <view class="use-item bfff bdr_t-14 mgt20">
  81 + <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'></image>
  82 + <!-- <view>门店:{{item.pname}}</view> -->
  83 + <view>{{item.pname}}</view>
  84 + </view>
  85 + <view class="order-detail" wx:for="{{item.goods}}" wx:for-index="idx" wx:for-item="items">
  86 + <!----商品图片----->
  87 + <view class="goods-img" style="position: relative; overflow: hidden" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
  88 + <image wx:if="{{items.is_gift}}" src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>
  89 + <text class="zuhe" wx:if="{{items.prom_type==7}}">组合购</text>
  90 + <image class="wh100 bdr14" src="{{items.original_img}}" binderror='cart_set_err' data-err='cartlist[{{pidx}}].goods[{{idx}}].original_img'></image>
  91 + </view>
  92 + <!----商品名称规格---->
  93 + <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
  94 + <view class="goods-name ellipsis-2">{{items.goods_name}}</view>
  95 + <!-- 商品属性 -->
  96 + <view class="flex-vertical fs28 color-gray n_guige">
  97 + <view class="goods-color">
  98 + <block><text>{{filters.show_gui_ge(items.goods_spec,items.goods_color)}}</text></block>
  99 + </view>
  100 + </view>
  101 +
  102 + <!-----商品名称规格------>
  103 + <view class="order-num flex-space-between">
  104 + <view wx:if="{{items.prom_type==10}}" class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text><text>({{items.discount}}折)</text></view>
  105 + <view wx:else class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text></view>
  106 + <view class="goods-num">x{{items.goods_num}}</view>
  107 + </view>
  108 + </navigator>
  109 + </view>
253 110  
  111 + <!-- 使用搭配 -->
  112 + <cart_collect_temp bind:childFun="select_coll" sales_rules="{{sales_rules}}" pick="{{item.pickup_id}}" is_cart="1" cart_index="{{pidx}}" distr_t="{{item.distr_t}}" appoint_pick_keyid="{{appoint_pick_keyid}}" all_collocation_list="{{item.collocationList}}" />
  113 +
  114 + <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
  115 + <view class="plus_buy fs28" wx:if="{{item.card_cut_price>0}}">
  116 + <view class="flex">
  117 + <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
  118 + <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
  119 + </ image>
  120 + <text class="card_name">{{show_card.CardName}}</text>
  121 + </view>
  122 + <view>立减 <text style="color:#f23030;">{{filters.toFix(item.card_cut_price,2) }}</text> 元</view>
  123 + </view>
  124 + <view>
  125 + <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
  126 + </view>
  127 + <!-- 三角形 -->
  128 + <view class="car_tri_up"></view>
  129 + <!-- 立即开通跳转 -->
  130 + <view bindtap="buycard" class="card_op">立即开通</view>
  131 + </view>
  132 +
  133 + <view class="set-mes bdr_b-14">
  134 + <view wx:if="{{order.store_prom}}">
  135 + <icon color="#f23030" size="16" type="info"></icon>
  136 + {{order.store_prom}}
  137 + </view>
  138 +
  139 + <!-- 当是物流很多单的时候 -->
  140 + <view class="use-item flex-space-between" wx:if="{{cartlist.length>1 && show_submit}}">
  141 + <view class="flex-vertical">
  142 + <view bindtap='setexptype_w2' data-ind="{{pidx}}" data-t='1' data-txt='cartlist[{{pidx}}].exp_type' style="padding-right:26rpx;display:{{item.distr_t==2?'none':'flex;align-items: center'}};">
  143 + <!-- <icon bindtap='setexptype_w' data-t='1' data-txt='cartlist[{{pidx}}].exp_type' color="{{item.exp_type==1?'red':'gray'}}" size="16" type="success"></icon> -->
  144 +
  145 + <block wx:if="{{item.exp_type==1}}">
  146 + <!-- <view class="circle white xc-hookt fs20 red-b sn"><text>Γ</text></view> -->
  147 + <icon data-t='1' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
  148 + </block>
  149 + <block wx:else>
  150 + <view class="circle xc-hookts on"></view>
  151 + </block>
  152 + <view bindtap='setexptype_w2' data-ind="{{pidx}}" data-t='1' data-txt='cartlist[{{pidx}}].exp_type' class="yu_er">门店自提</view>
  153 + </view>
  154 +
  155 + <view data-t='0' data-txt='cartlist[{{pidx}}].exp_type' data-ind="{{pidx}}" bindtap="setexptype_w2" style="display:{{item.distr_t==1?'none':'flex;align-items: center'}};">
  156 +
  157 + <block wx:if="{{item.exp_type==0}}">
  158 + <icon data-t='0' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
  159 + </block>
  160 + <block wx:else>
  161 + <view class="circle xc-hookts on"></view>
  162 + </block>
  163 +
  164 + <view bindtap='setexptype_w2' data-t='0' data-ind="{{pidx}}" data-txt='cartlist[{{pidx}}].exp_type' data-wl_txt='cartlist[{{pidx}}].wind' class="yu_er">快递邮寄</view>
  165 + </view>
  166 +
  167 + <!-- 同城配送 -->
  168 + <view data-t='2' data-txt='cartlist[{{pidx}}].exp_type' data-ind="{{pidx}}" bindtap="setexptype_w2" style=" margin-left: 5rpx;display:{{!item.show_same_city?'none':'flex;align-items: center'}};">
  169 +
  170 + <block wx:if="{{item.exp_type==2}}">
  171 + <icon data-t='2' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
  172 + </block>
  173 + <block wx:else>
  174 + <view class="circle xc-hookts on"></view>
  175 + </block>
  176 +
  177 + <view bindtap='setexptype_w2' data-t='2' data-ind="{{pidx}}" data-txt='cartlist[{{pidx}}].exp_type' data-wl_txt='cartlist[{{pidx}}].wind' class="yu_er">同城配送</view>
  178 + </view>
  179 + </view>
  180 +
  181 +
  182 + <!-- 点击显示物流选择,如果是默认使用的情况不成立 -->
  183 + <view wx:if="{{!is_default_logistics && item.exp_type!=1 && item.exp_type!=2}}" class="flex-vertical" bindtap="show_wu_arr" data-txt='cartlist[{{pidx}}].wind' data-w_sele_index="{{pidx}}" style="padding-right:6rpx;">
  184 + <view>{{wu_arr[item.wind].name}}</view>
  185 + <view class="xc-right"></view>
  186 + </view>
  187 +
  188 + </view>
  189 +
  190 + <!-- 当是物流,只有一单的时候 -->
  191 + <block wx:else>
  192 + <view class="use-item flex-space-between" wx:if="{{item.exp_type==0 && !is_default_logistics}}">
  193 + <view class="flex jc_sb" style="width: 100%; padding: 0 13rpx;">
  194 + <view>选择物流</view>
  195 + <view class="flex-vertical" bindtap="show_wu_arr" data-txt='cartlist[{{pidx}}].wind' data-w_sele_index="{{pidx}}" style="padding-right:6rpx;">
  196 + <view>{{wu_arr[item.wind].name}}</view>
  197 + <view class="xc-right"></view>
  198 + </view>
  199 + </view>
  200 + </view>
  201 + </block>
  202 + </view>
  203 +
  204 + <!-- 有送礼包 -->
  205 + <view wx:if="{{send_lb[item.pickup_id]}}">
  206 + <block wx:for="{{send_lb[item.pickup_id]}}" wx:key="id" wx:for-item="send">
  207 + <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{send.id}}" data-flag="{{send.flag}}" bindtap="viewLbDetails">
  208 + <view class="flex ai_c">
  209 + <view class="circle1">赠</view>{{send.zxlbtitle?send.zxlbtitle:send.lbtitle}}
  210 + <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
  211 + </view>
  212 + <view class="flex ai_c">
  213 + x{{send.num}}<text class="bg_jj"></text>
  214 + </view>
  215 + </view>
  216 + </block>
  217 + </view>
  218 + <!-- 赠品的显示 -->
  219 + <view wx:if="{{send_gf[item.pickup_id]}}">
  220 + <block wx:for="{{send_gf[item.pickup_id]}}" wx:for-item="iter">
  221 + <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-pk="{{item.pickup_id}}" data-index="{{index}}" bindtap="show_sele_gift">
  222 + <view class="flex ai_c">
  223 + <view class="circle1">赠</view>{{iter.name}} 可选赠品{{iter.zp_num}}个
  224 + </view>
  225 +
  226 + <view class="flex ai_c" wx:if="{{iter.selected}}">
  227 + 已选择<text class="bg_jj"></text>
  228 + </view>
  229 +
  230 + <view class="flex ai_c" wx:else="{{}}">
  231 + 未选择<text class="bg_jj"></text>
  232 + </view>
  233 +
  234 + </view>
  235 + </block>
  236 + </view>
  237 +
  238 + <!-----使用优惠券------>
  239 + <view class="xc-coupon-frame flex-center" data-bn="0" bindtap="open_coupon_list" wx:if="{{(item.quan_list && item.quan_list.length>0) || get_by_quan_list_cart[item.pickup_id]!=null && item.can_num>0}}" data-cind="{{pidx}}" data-pickid="{{item.pickup_id}}">
  240 + <view class="work-frame flex-space-between">
  241 + <view class="work">优惠券<text class="quan_num_show fs20">{{item.can_num}}张可用</text></view>
  242 + <view class="xc-right-frame">
  243 + <text wx:if="{{using_quan[item.pickup_id].is_nouse}}">不使用</text>
  244 + <text wx:if="{{using_quan[item.pickup_id].money}}">¥{{using_quan[item.pickup_id].money}}元优惠券</text>
  245 + <text wx:if="{{using_quan[item.pickup_id].isby}}">包邮券</text>
  246 + <view class="xc-right"></view>
  247 + </view>
  248 + </view>
  249 + </view>
  250 +
  251 +
  252 +
  253 + <!-- 留言 -->
  254 + <view class="coupon-mes flex-vertical">
  255 + <view>留言</view>
  256 + <view class="leave-word">
  257 + <input placeholder="给商家留言,最多100字" bindinput="keyUpChangeNum" data-index="{{pidx}}" value="{{user_note[pidx]}}" class="word-box" maxlength="100" name="user_note_{{item.pickup_id}}" />
  258 +
  259 + </view>
  260 + </view>
254 261 <!-- 预存款 -->
255 262 <view class="set-mes" wx:if="{{item.yck_off}}" data-ind="{{pidx}}" data-item="{{item}}" catchtap="prestore">
256 263 <view class="use-item" style="justify-content: space-between;">
257 264 <view>
258   - <icon color="{{item.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
  265 + <icon color="{{item.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
259 266 <view class="yu_er">使用预存</view>
260 267 </view>
261 268 <view wx:if="{{item.yck_off==2}}">¥{{filters.toFix(item.yck,2)}}</view>
262 269 </view>
263 270 </view>
264 271  
265   - <!-- 留言 -->
266   - <view class="coupon-mes flex-vertical">
267   - <view>留言</view>
268   - <view class="leave-word">
269   - <input placeholder="给商家留言,最多100字" bindinput="keyUpChangeNum" data-index="{{pidx}}" value="{{user_note[pidx]}}" class="word-box" maxlength="100" name="user_note_{{item.pickup_id}}" />
270   -
271   - </view>
272   - </view>
273   -
274   - <!-- 是否参与店铺优惠 -->
275   - <view class="coupon-mes flex-vertical" data-index="{{index}}" bindtap="cart_pop_offline" wx:if="{{item.offline_price}}">
276   - <view>店铺优惠</view>
277   - <view class="leave-word fs32" style="color: #999;">
278   - 省{{filters.toFix(item.offline_price,2)}}元
279   - </view>
280   - <block wx:if="{{item.is_offline}}">
281   - <text style="color: #d7642b;">-¥{{filters.toFix(item.offline_price,2)}}</text>
282   - </block>
283   - <block wx:else>
284   - <text style="color: #d7642b;">不使用优惠</text>
285   - </block>
286   - <!-- 右边点击 -->
287   - <view class="xc-right" style="margin-right: 12rpx; border-color: #d7642b;"></view>
288   - </view>
289   -
290   - </view>
291   -
292   -
293   - <!-----使用佣金------>
294   - <view class="set-mes bdr_t-14" wx:if="{{cart_commission>0 && can_commission}}">
295   -
296   - <view class="use-item" bindtap='set_cart_commission'>
297   - <icon color="{{cart_use_commission?'red':'gray'}}" size="16" type="success"></icon>
298   - <view class="yu_er">使用佣金 :¥{{cart_commission}} </view>
299   - </view>
300   - </view>
301   -
302   - <!-- ---使用余额---- -->
303   - <view class="set-mes bdr_t-14" wx:if="{{yuer>0}}">
304   - <view class="use-item" bindtap='set_js_useyuer'>
305   - <icon color="{{js_use_money?'red':'gray'}}" size="16" type="success"></icon>
306   - <view class="yu_er">使用余额 :¥{{yuer}} </view>
307   - </view>
308   - </view>
309   -
310   - </block>
311   -
312   - <!-- ----立即购买------ -->
313   - <block wx:if="{{is_b_now==1}}">
314   - <view class="use-item bfff bdr_t-14 mgt20">
315   - <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image>
316   - <view>{{bn_pickname}}</view>
317   - </view>
318   - <view class="order-detail">
319   - <view class="goods-img" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}&prom_type={{bn_goods.prom_type}}&prom_id={{bn_goods.prom_id}}">
320   - <image class="wh100 bdr14" src="{{bn_goods.original_img}}" binderror='cart_set_err' data-err="bn_goods.original_img"></image>
321   - </view>
322   - <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
323   - <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
324   - <!-- 商品属性 -->
325   - <view class="flex-vertical fs28 xc-ash color-gray n_guige">
326   - <view class="goods-color">
327   - <block><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text></block>
328   - </view>
329   - </view>
330   -
331   - <!-- ---商品名称规格---- -->
332   - <view class="order-num flex-space-between">
333   - <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
334   - <view class="goods-num">x{{bn_goods.buynum}}</view>
335   - </view>
336   - </navigator>
337   -
338   - </view>
339   - <!-- 赠品的显示 -->
340   - <block wx:if="{{buy_now_gift_goods}}">
341   - <view class="order-detail" wx:for="{{buy_now_gift_goods}}">
342   - <view class="goods-img" style="position: relative">
343   - <image src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>
344   -
345   - <image class="wh100 bdr14" src="{{item.original_img}}" binderror='cart_set_err' data-err="buy_now_gift_goods[{{index}}].original_img"></image>
346   - </view>
347   - <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
348   - <view class="goods-name ellipsis-2">{{item.goods_name}}</view>
349   - <!-- 商品属性 -->
350   - <view class="flex-vertical fs28 xc-ash color-gray n_guige">
351   - <view class="goods-color">
352   - <block><text>{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</text></block>
353   - </view>
354   - </view>
355   - <!-- ---商品名称规格---- -->
356   - <view class="order-num flex-space-between">
357   - <view class="co-red">¥<text class="fs36">0</text></view>
358   - <view class="goods-num">x{{item.buynum}}</view>
359   - </view>
360   - </navigator>
361   - </view>
362   - </block>
363   -
364   -
365   - <block wx:if="{{collocation_goods}}">
366   - <!-- 搭配购买的功能实现 -->
367   - <view class="order-detail" wx:for="{{collocation_goods}}">
368   - <view class="goods-img">
369   - <image class="wh100 bdr14" src="{{imgUrl+item.original_img}}" binderror='cart_set_err1' data-err="collocation_goods[{{index}}].original_img"></image>
370   - </view>
371   - <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
372   - <view class="goods-name ellipsis-2">{{item.goods_name}}</view>
373   - <!-- 商品属性 -->
374   - <view class="flex-vertical fs28 xc-ash color-gray n_guige">
375   - <view class="goods-color">
376   - <block><text>{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</text></block>
377   - </view>
378   - </view>
379   - <!-- ---商品名称规格---- -->
380   - <view class="order-num flex-space-between">
381   - <view class="co-red">¥<text class="fs36">{{item.price}}</text></view>
382   - <view class="goods-num">x{{item.goods_num}}</view>
383   - </view>
384   - </navigator>
385   - </view>
386   - </block>
387   -
388   - <!-- 使用搭配 -->
389   - <cart_collect_temp bind:childFun="select_coll" all_collocation_list="{{all_collocation_list}}"
390   - appoint_pick_keyid="{{appoint_pick_keyid}}"
391   - sales_rules="{{sales_rules}}" pick="{{bn_pick}}" />
392   -
393   -
394   - <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
395   - <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
396   - <view class="flex">
397   - <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
398   - <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
399   - </ image>
400   - <text class="card_name">{{show_card.CardName}}</text>
401   - </view>
402   - <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
403   - </view>
404   - <view>
405   - <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
406   - </view>
407   - <!-- 三角形 -->
408   - <view class="car_tri_up"></view>
409   - <!-- 立即开通跳转 -->
410   - <view bindtap="buycard" class="card_op">立即开通</view>
411   - </view>
412   -
413   - <!-- 有送礼包 -->
414   - <view wx:if="{{bn_goods.s_libao}}">
415   - <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.s_libao}}" bindtap="viewLbDetails">
416   - <view class="flex ai_c">
417   - <view class="circle1">赠</view>{{bn_goods.lbtitle}}
418   - <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
419   - </view>
420   - <view class="flex ai_c">
421   - x{{bn_goods.s_lb_num}}<text class="bg_jj"></text>
422   - </view>
423   - </view>
424   - </view>
425   - <!-- 有送专享礼包 -->
426   - <view wx:if="{{bn_goods.zx_libao}}">
427   - <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.zx_libao}}" data-flag="1" bindtap="viewLbDetails">
428   - <view class="flex ai_c">
429   - <view class="circle1">赠</view>{{bn_goods.zxlbtitle}}
430   - <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
431   - </view>
432   - <view class="flex ai_c">
433   - x{{bn_goods.zx_lb_num}}<text class="bg_jj"></text>
434   - </view>
435   - </view>
436   - </view>
437   -
438   -
439   - <!-- 赠品的显示 -->
440   - <view wx:if="{{send_gf[bn_pick]}}">
441   - <block wx:for="{{send_gf[bn_pick]}}" wx:for-item="iter">
442   - <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-pk="{{bn_pick}}" data-index="{{index}}" bindtap="show_sele_gift">
443   - <view class="flex ai_c">
444   - <view class="circle1">赠</view>{{iter.name}} 可选赠品{{iter.zp_num}}个
445   - </view>
446   -
447   - <view class="flex ai_c" wx:if="{{iter.selected}}">
448   - 已选择<text class="bg_jj"></text>
449   - </view>
450   -
451   - <view class="flex ai_c" wx:else="{{}}">
452   - 未选择<text class="bg_jj"></text>
453   - </view>
454   -
455   - </view>
456   - </block>
457   - </view>
458   -
459   -
460   - <view class="set-mes bdr_b-14">
461   -
462   - <view wx:if="{{order.store_prom}}">
463   - <icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
464   - </view>
465   -
466   - <view class="xc-coupon-frame flex-center" data-bn="1" bindtap="open_coupon_list" data-pickid="{{bn_pick}}"
467   - hidden="{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list && bn_exp_type==0?get_by_quan_list.length:0)<=0}}"
468   - wx:if="{{is_coupon > 0 && ((selected_quan_list && selected_quan_list.length>0) || get_by_quan_list!=null)}}">
469   - <view class="work-frame flex-space-between">
470   - <view class="work">
471   - 优惠券 <text class="quan_num_show">{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list && bn_exp_type==0?get_by_quan_list.length:0)}}张可用</text>
472   - </view>
473   - <view class="xc-right-frame">
474   - <text wx:if="{{using_quan[bn_pick].is_nouse}}">不使用</text>
475   - <block wx:else>
476   - <text wx:if="{{using_quan[bn_pick].money}}">¥{{using_quan[bn_pick].money}}元优惠券</text>
477   - <text wx:if="{{using_quan[bn_pick].isby}}">包邮券</text>
478   - </block>
479   - <view class="xc-right"></view>
480   - </view>
481   - </view>
482   - </view>
483   -
484   - <view class="xc-coupon-frame" wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
485   - <view class="flex-space-between" style="padding: 20rpx 25rpx; font-size: 30rpx;">
486   - <view>选择物流</view>
487   - <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 12rpx;">
488   - <view class="logistics-name">{{wu_arr[index].name}}</view>
489   - <view class="xc-right"></view>
490   - </view>
491   - </view>
492   - </view>
493   - </view>
494   -
495   - <!-- 留言 -->
496   - <view class="coupon-mes flex-vertical">
497   - <view>留言</view>
498   - <view class="leave-word">
499   - <input placeholder-class="fs28" placeholder='给商家留言,最多100字' data-index="{{index}}" bindinput="keyUpChangeNum" class="word-box" maxlength="100" name="user_note"></input>
500   - </view>
501   - </view>
502   -
503   - <!-- 是否参与店铺优惠 -->
504   - <view class="coupon-mes flex-vertical" bindtap="bn_pop_offline" wx:if="{{bn_goods.offline_price}}">
505   - <view>店铺优惠</view>
506   - <view class="leave-word fs32" style="color: #999;">
507   - 省{{filters.toFix(bn_goods.shop_price-bn_goods.offline_price,2)}}元
508   - </view>
509   - <block wx:if="{{bn_goods.is_offline}}">
510   - <text style="color: #d7642b;">-¥{{filters.toFix(bn_goods.shop_price-bn_goods.offline_price,2)}}</text>
511   - </block>
512   - <block wx:else>
513   - <text style="color: #d7642b;">不使用优惠</text>
514   - </block>
515   - <!-- 右边点击 -->
516   - <view class="xc-right" style="margin-right: 12rpx; border-color: #d7642b;"></view>
517   - </view>
518   -
519   -
520   - <!-----使用佣金------>
521   - <view class="set-mes bdr_t-14" wx:if="{{bn_goods.use_commission>0 && can_commission}}">
522   - <view class="use-item" bindtap='set_bn_commission'>
523   - <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
524   - <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
525   - </view>
526   - </view>
527   -
528   -
529   - <!-----使用余额------>
530   - <view class="set-mes bdr_t-14" wx:if="{{yuer>0}}">
531   - <view class="use-item" bindtap='set_bn_useyuer'>
532   - <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
533   - <view class="yu_er">使用余额 :¥{{yuer}} </view>
534   - </view>
535   - </view>
536   - <!-- 预存款 -->
537   - <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
  272 + <!-- 是否参与店铺优惠 -->
  273 + <view class="coupon-mes flex-vertical" data-index="{{index}}" bindtap="cart_pop_offline" wx:if="{{item.offline_price}}">
  274 + <view>店铺优惠</view>
  275 + <view class="leave-word fs32" style="color: #999;">
  276 + 省{{filters.toFix(item.offline_price,2)}}元
  277 + </view>
  278 + <block wx:if="{{item.is_offline}}">
  279 + <text style="color: #d7642b;">-¥{{filters.toFix(item.offline_price,2)}}</text>
  280 + </block>
  281 + <block wx:else>
  282 + <text style="color: #d7642b;">不使用优惠</text>
  283 + </block>
  284 + <!-- 右边点击 -->
  285 + <view class="xc-right" style="margin-right: 12rpx; border-color: #d7642b;"></view>
  286 + </view>
  287 +
  288 + </view>
  289 +
  290 +
  291 + <!-----使用佣金------>
  292 + <view class="set-mes bdr_t-14" wx:if="{{cart_commission>0 && can_commission}}">
  293 +
  294 + <view class="use-item" bindtap='set_cart_commission'>
  295 + <icon color="{{cart_use_commission?'red':'gray'}}" size="16" type="success"></icon>
  296 + <view class="yu_er">使用佣金 :¥{{cart_commission}} </view>
  297 + </view>
  298 + </view>
  299 +
  300 + <!-- ---使用余额---- -->
  301 + <view class="set-mes bdr_t-14" wx:if="{{yuer>0}}">
  302 + <view class="use-item" bindtap='set_js_useyuer'>
  303 + <icon color="{{js_use_money?'red':'gray'}}" size="16" type="success"></icon>
  304 + <view class="yu_er">使用余额 :¥{{yuer}} </view>
  305 + </view>
  306 + </view>
  307 +
  308 + </block>
  309 +
  310 + <!-- ----立即购买------ -->
  311 + <block wx:if="{{is_b_now==1}}">
  312 + <view class="use-item bfff bdr_t-14 mgt20">
  313 + <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image>
  314 + <view>{{bn_pickname}}</view>
  315 + </view>
  316 + <view class="order-detail">
  317 + <view class="goods-img" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}&prom_type={{bn_goods.prom_type}}&prom_id={{bn_goods.prom_id}}">
  318 + <image class="wh100 bdr14" src="{{bn_goods.original_img}}" binderror='cart_set_err' data-err="bn_goods.original_img"></image>
  319 + </view>
  320 + <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
  321 + <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
  322 + <!-- 商品属性 -->
  323 + <view class="flex-vertical fs28 xc-ash color-gray n_guige">
  324 + <view class="goods-color">
  325 + <block><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text></block>
  326 + </view>
  327 + </view>
  328 +
  329 + <!-- ---商品名称规格---- -->
  330 + <view class="order-num flex-space-between">
  331 + <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
  332 + <view class="goods-num">x{{bn_goods.buynum}}</view>
  333 + </view>
  334 + </navigator>
  335 +
  336 + </view>
  337 + <!-- 赠品的显示 -->
  338 + <block wx:if="{{buy_now_gift_goods}}">
  339 + <view class="order-detail" wx:for="{{buy_now_gift_goods}}">
  340 + <view class="goods-img" style="position: relative">
  341 + <image src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>
  342 +
  343 + <image class="wh100 bdr14" src="{{item.original_img}}" binderror='cart_set_err' data-err="buy_now_gift_goods[{{index}}].original_img"></image>
  344 + </view>
  345 + <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
  346 + <view class="goods-name ellipsis-2">{{item.goods_name}}</view>
  347 + <!-- 商品属性 -->
  348 + <view class="flex-vertical fs28 xc-ash color-gray n_guige">
  349 + <view class="goods-color">
  350 + <block><text>{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</text></block>
  351 + </view>
  352 + </view>
  353 + <!-- ---商品名称规格---- -->
  354 + <view class="order-num flex-space-between">
  355 + <view class="co-red">¥<text class="fs36">0</text></view>
  356 + <view class="goods-num">x{{item.buynum}}</view>
  357 + </view>
  358 + </navigator>
  359 + </view>
  360 + </block>
  361 +
  362 +
  363 + <block wx:if="{{collocation_goods}}">
  364 + <!-- 搭配购买的功能实现 -->
  365 + <view class="order-detail" wx:for="{{collocation_goods}}">
  366 + <view class="goods-img">
  367 + <image class="wh100 bdr14" src="{{imgUrl+item.original_img}}" binderror='cart_set_err1' data-err="collocation_goods[{{index}}].original_img"></image>
  368 + </view>
  369 + <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
  370 + <view class="goods-name ellipsis-2">{{item.goods_name}}</view>
  371 + <!-- 商品属性 -->
  372 + <view class="flex-vertical fs28 xc-ash color-gray n_guige">
  373 + <view class="goods-color">
  374 + <block><text>{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</text></block>
  375 + </view>
  376 + </view>
  377 + <!-- ---商品名称规格---- -->
  378 + <view class="order-num flex-space-between">
  379 + <view class="co-red">¥<text class="fs36">{{item.price}}</text></view>
  380 + <view class="goods-num">x{{item.goods_num}}</view>
  381 + </view>
  382 + </navigator>
  383 + </view>
  384 + </block>
  385 +
  386 + <!-- 使用搭配 -->
  387 + <cart_collect_temp bind:childFun="select_coll" all_collocation_list="{{all_collocation_list}}" appoint_pick_keyid="{{appoint_pick_keyid}}" sales_rules="{{sales_rules}}" pick="{{bn_pick}}" />
  388 +
  389 +
  390 + <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
  391 + <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
  392 + <view class="flex">
  393 + <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
  394 + <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
  395 + </ image>
  396 + <text class="card_name">{{show_card.CardName}}</text>
  397 + </view>
  398 + <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
  399 + </view>
  400 + <view>
  401 + <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
  402 + </view>
  403 + <!-- 三角形 -->
  404 + <view class="car_tri_up"></view>
  405 + <!-- 立即开通跳转 -->
  406 + <view bindtap="buycard" class="card_op">立即开通</view>
  407 + </view>
  408 +
  409 + <!-- 有送礼包 -->
  410 + <view wx:if="{{bn_goods.s_libao}}">
  411 + <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.s_libao}}" bindtap="viewLbDetails">
  412 + <view class="flex ai_c">
  413 + <view class="circle1">赠</view>{{bn_goods.lbtitle}}
  414 + <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
  415 + </view>
  416 + <view class="flex ai_c">
  417 + x{{bn_goods.s_lb_num}}<text class="bg_jj"></text>
  418 + </view>
  419 + </view>
  420 + </view>
  421 + <!-- 有送专享礼包 -->
  422 + <view wx:if="{{bn_goods.zx_libao}}">
  423 + <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.zx_libao}}" data-flag="1" bindtap="viewLbDetails">
  424 + <view class="flex ai_c">
  425 + <view class="circle1">赠</view>{{bn_goods.zxlbtitle}}
  426 + <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
  427 + </view>
  428 + <view class="flex ai_c">
  429 + x{{bn_goods.zx_lb_num}}<text class="bg_jj"></text>
  430 + </view>
  431 + </view>
  432 + </view>
  433 +
  434 +
  435 + <!-- 赠品的显示 -->
  436 + <view wx:if="{{send_gf[bn_pick]}}">
  437 + <block wx:for="{{send_gf[bn_pick]}}" wx:for-item="iter">
  438 + <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-pk="{{bn_pick}}" data-index="{{index}}" bindtap="show_sele_gift">
  439 + <view class="flex ai_c">
  440 + <view class="circle1">赠</view>{{iter.name}} 可选赠品{{iter.zp_num}}个
  441 + </view>
  442 +
  443 + <view class="flex ai_c" wx:if="{{iter.selected}}">
  444 + 已选择<text class="bg_jj"></text>
  445 + </view>
  446 +
  447 + <view class="flex ai_c" wx:else="{{}}">
  448 + 未选择<text class="bg_jj"></text>
  449 + </view>
  450 +
  451 + </view>
  452 + </block>
  453 + </view>
  454 +
  455 +
  456 + <view class="set-mes bdr_b-14">
  457 +
  458 + <view wx:if="{{order.store_prom}}">
  459 + <icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
  460 + </view>
  461 +
  462 + <view class="xc-coupon-frame flex-center" data-bn="1" bindtap="open_coupon_list" data-pickid="{{bn_pick}}" hidden="{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list && bn_exp_type==0?get_by_quan_list.length:0)<=0}}" wx:if="{{is_coupon > 0 && ((selected_quan_list && selected_quan_list.length>0) || get_by_quan_list!=null)}}">
  463 + <view class="work-frame flex-space-between">
  464 + <view class="work">
  465 + 优惠券 <text class="quan_num_show">{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list && bn_exp_type==0?get_by_quan_list.length:0)}}张可用</text>
  466 + </view>
  467 + <view class="xc-right-frame">
  468 + <text wx:if="{{using_quan[bn_pick].is_nouse}}">不使用</text>
  469 + <block wx:else>
  470 + <text wx:if="{{using_quan[bn_pick].money}}">¥{{using_quan[bn_pick].money}}元优惠券</text>
  471 + <text wx:if="{{using_quan[bn_pick].isby}}">包邮券</text>
  472 + </block>
  473 + <view class="xc-right"></view>
  474 + </view>
  475 + </view>
  476 + </view>
  477 +
  478 + <view class="xc-coupon-frame" wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
  479 + <view class="flex-space-between" style="padding: 20rpx 25rpx; font-size: 30rpx;">
  480 + <view>选择物流</view>
  481 + <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 12rpx;">
  482 + <view class="logistics-name">{{wu_arr[index].name}}</view>
  483 + <view class="xc-right"></view>
  484 + </view>
  485 + </view>
  486 + </view>
  487 + </view>
  488 +
  489 + <!-- 留言 -->
  490 + <view class="coupon-mes flex-vertical">
  491 + <view>留言</view>
  492 + <view class="leave-word">
  493 + <input placeholder-class="fs28" placeholder='给商家留言,最多100字' data-index="{{index}}" bindinput="keyUpChangeNum" class="word-box" maxlength="100" name="user_note"></input>
  494 + </view>
  495 + </view>
  496 +
  497 + <!-- 是否参与店铺优惠 -->
  498 + <view class="coupon-mes flex-vertical" bindtap="bn_pop_offline" wx:if="{{bn_goods.offline_price}}">
  499 + <view>店铺优惠</view>
  500 + <view class="leave-word fs32" style="color: #999;">
  501 + 省{{filters.toFix(bn_goods.shop_price-bn_goods.offline_price,2)}}元
  502 + </view>
  503 + <block wx:if="{{bn_goods.is_offline}}">
  504 + <text style="color: #d7642b;">-¥{{filters.toFix(bn_goods.shop_price-bn_goods.offline_price,2)}}</text>
  505 + </block>
  506 + <block wx:else>
  507 + <text style="color: #d7642b;">不使用优惠</text>
  508 + </block>
  509 + <!-- 右边点击 -->
  510 + <view class="xc-right" style="margin-right: 12rpx; border-color: #d7642b;"></view>
  511 + </view>
  512 +
  513 + <!-- 预存款 -->
  514 + <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
538 515 <view class="use-item" style="justify-content: space-between;">
539 516 <view>
540   - <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
  517 + <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
541 518 <view class="yu_er">使用预存</view>
542 519 </view>
543 520 <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
544 521 </view>
545 522 </view>
546   - </block>
547   -
548   - <view class="information bdr14">
549   - <view class="item" wx:if="{{formData.all_price>0}}">
550   - <view>商品金额</view>
551   - <view class="co-red">¥ {{formData.all_price}}元</view>
552   - </view>
553   - <view class="item" wx:if="{{formData.shipping_price>0}}">
554   - <view>配送费用</view>
555   - <view class="co-red">¥ {{formData.shipping_price}}元</view>
556   - </view>
557   - <view class="item" wx:if="{{formData.coupon_price>0}}">
558   - <view>使用优惠券</view>
559   - <view class="co-red">- ¥ {{formData.coupon_price}}元</view>
560   - </view>
561   - <!-- 优惠活动优惠金额 -->
562   - <view class="item" wx:if="{{formData.cut_price>0}}">
563   - <view>优惠活动</view>
564   - <view class="co-red">- ¥ {{filters.toFix(formData.cut_price,2)}}元</view>
565   - </view>
566   - <!-- 组合购优惠金额 -->
567   - <view class="item" wx:if="{{formData.zh_cut_price>0 || formData.zh_cut_price<0}}">
568   - <view>组合购优惠</view>
569   - <view class="co-red">- ¥ {{filters.toFix(formData.zh_cut_price,2)}}元</view>
570   - </view>
571   - <!-- 组合购优惠金额 -->
572   - <view class="item" wx:if="{{formData.ladder_cut_price>0 || formData.ladder_cut_price<0}}">
573   - <view>阶梯促销优惠</view>
574   - <view class="co-red">- ¥ {{filters.toFix(formData.ladder_cut_price,2)}}元</view>
575   - </view>
576   -
577   - <!-- 订单优惠优惠金额 -->
578   - <view class="item" wx:if="{{formData.order_prom_amount>0}}">
579   - <view>订单优惠</view>
580   - <view class="co-red">- ¥ {{filters.toFix(formData.order_prom_amount,2)}}元</view>
581   - </view>
  523 +
  524 + <!-----使用佣金------>
  525 + <view class="set-mes bdr_t-14" wx:if="{{bn_goods.use_commission>0 && can_commission}}">
  526 + <view class="use-item" bindtap='set_bn_commission'>
  527 + <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
  528 + <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
  529 + </view>
  530 + </view>
  531 +
  532 +
  533 + <!-----使用余额------>
  534 + <view class="set-mes bdr_t-14" wx:if="{{yuer>0}}">
  535 + <view class="use-item" bindtap='set_bn_useyuer'>
  536 + <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
  537 + <view class="yu_er">使用余额 :¥{{yuer}} </view>
  538 + </view>
  539 + </view>
  540 +
  541 + </block>
  542 +
  543 + <view class="information bdr14">
  544 + <view class="item" wx:if="{{formData.all_price>0}}">
  545 + <view>商品金额</view>
  546 + <view class="co-red">¥ {{formData.all_price}}元</view>
  547 + </view>
  548 + <view class="item" wx:if="{{formData.shipping_price>0}}">
  549 + <view>配送费用</view>
  550 + <view class="co-red">¥ {{formData.shipping_price}}元</view>
  551 + </view>
  552 + <view class="item" wx:if="{{formData.coupon_price>0}}">
  553 + <view>使用优惠券</view>
  554 + <view class="co-red">- ¥ {{formData.coupon_price}}元</view>
  555 + </view>
  556 + <!-- 优惠活动优惠金额 -->
  557 + <view class="item" wx:if="{{formData.cut_price>0}}">
  558 + <view>优惠活动</view>
  559 + <view class="co-red">- ¥ {{filters.toFix(formData.cut_price,2)}}元</view>
  560 + </view>
  561 + <!-- 组合购优惠金额 -->
  562 + <view class="item" wx:if="{{formData.zh_cut_price>0 || formData.zh_cut_price<0}}">
  563 + <view>组合购优惠</view>
  564 + <view class="co-red">- ¥ {{filters.toFix(formData.zh_cut_price,2)}}元</view>
  565 + </view>
  566 + <!-- 组合购优惠金额 -->
  567 + <view class="item" wx:if="{{formData.ladder_cut_price>0 || formData.ladder_cut_price<0}}">
  568 + <view>阶梯促销优惠</view>
  569 + <view class="co-red">- ¥ {{filters.toFix(formData.ladder_cut_price,2)}}元</view>
  570 + </view>
  571 +
  572 + <!-- 订单优惠优惠金额 -->
  573 + <view class="item" wx:if="{{formData.order_prom_amount>0}}">
  574 + <view>订单优惠</view>
  575 + <view class="co-red">- ¥ {{filters.toFix(formData.order_prom_amount,2)}}元</view>
  576 + </view>
582 577 <!-- 使用预存优惠金额 -->
583 578 <view class="item" wx:if="{{formData.prestore>0}}">
584 579 <view>使用预存</view>
585 580 <view class="co-red">- ¥ {{filters.toFix(formData.prestore,2)}}元</view>
586 581 </view>
587   - <view class="item" wx:if="{{formData.user_money>0}}">
588   - <view>使用余额</view>
589   - <view class="co-red">- ¥ {{formData.user_money}}元</view>
590   - </view>
591   - </view>
592   - </view>
593   -
594   - <view class="btn-wrap shadow-1" wx:if="{{show_submit}}">
595   - <view class="pay-amount">
596   - <view class="payable">应付金额:<text class="co-red"><text class="fs24">¥</text>{{formData.order_amount}}</text></view>
597   - <!-- <view class="co-red big"></view> -->
598   - </view>
599   - <button class="tips-btn" formType="submit" id="submitOrder" disabled="{{submit}}" bindtap="requestSubscribe">提交订单</button>
600   - </view>
  582 + <view class="item" wx:if="{{formData.user_money>0}}">
  583 + <view>使用余额</view>
  584 + <view class="co-red">- ¥ {{formData.user_money}}元</view>
  585 + </view>
  586 + </view>
  587 + </view>
  588 +
  589 + <view class="btn-wrap shadow-1" wx:if="{{show_submit}}">
  590 + <view class="pay-amount">
  591 + <view class="payable">应付金额:<text class="co-red"><text class="fs24">¥</text>{{formData.order_amount}}</text></view>
  592 + <!-- <view class="co-red big"></view> -->
  593 + </view>
  594 + <button class="tips-btn" formType="submit" id="submitOrder" disabled="{{submit}}" bindtap="requestSubscribe">提交订单</button>
  595 + </view>
601 596 </form>
602 597  
603 598 <!-- 使用券列表的弹窗 -->
604 599 <view wx:if='{{open_quan==1}}'>
605   - <view class="cover-layer flex-center " bindtap='close_coupon'> </view>
606   - <view class="cx-popup {{open_quan==true?'up' : 'down'}}">
607   - <!-- 最上面 -->
608   - <view class="top flex">
609   - <view class="xc-top-content t-c">
610   - <view class="xc-title">优惠券使用</view>
611   - </view>
612   - <view class="xc-close-frame" bindtap='close_coupon'>
613   - <view class="xc-close">×</view>
614   - </view>
615   - </view>
616   - <!-- 使用优惠券和不使用优惠券层-->
617   - <view class="may_use_coupon fs28 flex"> 可使用的优惠券
618   - <view class=" is_use_coupon flex-vertical" bindtap="sele_quan_item" data-no="1">不使用优惠券
619   - <block wx:if="{{using_quan[selected_quan_pick].is_nouse_red}}">
620   - <view class="circle white xc-hooka fs20 red-b sn"><text>Γ</text></view>
621   - </block>
622   - <block wx:else>
623   - <view class="circle xc-hookst ons"></view>
624   - </block>
625   - </view>
626   - </view>
627   -
628   - <!-- 中间券内容显示 -->
629   - <view class="xc-frame flex-level">
630   - <view class="list-frame">
631   - <view wx:for="{{selected_quan_list}}" bindtap="sele_quan_item" wx:if="{{!item.is_using}}" data-ind="{{q_index}}" wx:for-item="item" wx:for-index="q_index">
632   - <view class="xc-coupon-frame flex-center" data-ind="{{q_index}}">
633   - <view class="coupon-frame flex rel">
634   - <!-- 锯齿 -->
635   - <include src="juchi_part.wxml" />
636   - <!-- 左边 -->
637   - <view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
638   - <view class="white xc-money-frames">
639   - <view class="f_text"><text class="xc-rmb-symbol">¥</text><text class="xc-rmb-val">{{item.Sum}}</text></view>
640   - <view class="coupon-explain t-c" wx:if="{{item.BuySum>0}}">满{{item.BuySum}}元可用</view>
641   - <view class="coupon-explain t-c" wx:else>满0元可用</view>
642   - </view>
643   - </view>
644   - <!-- 右边 -->
645   - <view class="coupon-right flex-center rel">
646   - <view class="coupon-annotation flex">
647   - <view class="flex top-frame">
648   - <view class="frame">
649   - <view class="coupon-wode ib flex ellipsis-2 ">
650   - <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(item.UseObjectType)}}</text>
651   - <block>{{item.Sum}}元优惠券</block>
652   - </view>
653   - <view class="coupon-time">{{filters.replace_time2(item.BeginDate)}}至{{item.ValidDate?filters.replace_time2(item.ValidDate):'不限'}}</view>
654   - </view>
655   - </view>
656   - <block wx:if="{{item.show_red}}">
657   - <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
658   - </block>
659   - <block wx:else>
660   - <view class="circle xc-hooks on"></view>
661   - </block>
662   - </view>
663   - <include src="remark_click_part.wxml" />
664   - </view>
665   - </view>
666   - </view>
667   - <!-- 打开是说明 -->
668   - <include src="remark_part.wxml" />
669   - </view>
670   - <!-- 包邮券的显示,立即购买 -->
671   - <block wx:if="{{ is_b_now && bn_exp_type==0}}">
672   - <view wx:for="{{get_by_quan_list}}" bindtap="sele_quan_item_by" wx:if="{{!item.is_using}}" data-ind="{{byq_index}}" wx:for-item="item" wx:for-index="byq_index">
673   - <view class="xc-coupon-frame flex-center" data-ind="{{byq_index}}">
674   - <view class="coupon-frame flex rel">
675   - <!-- 锯齿 -->
676   - <include src="juchi_part.wxml" />
677   - <!-- 左边 -->
678   - <view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
679   - <view class="white xc-money-frames">
680   - <view class="f_text"><text class="xc-rmb-val">包邮券</text></view>
681   - <view class="coupon-explain t-c" wx:if="{{item.condition>0}}">满{{item.condition}}元可用</view>
682   - <view class="coupon-explain t-c" wx:else>满0元可用</view>
683   - </view>
684   - </view>
685   - <!-- 右边 -->
686   - <view class="coupon-right flex-center rel">
687   - <view class="coupon-annotation flex">
688   - <view class="flex top-frame">
689   - <view class="frame">
690   - <view class="coupon-wode ib flex ellipsis-2 ">
691   - <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(0)}}</text>
692   - <block>包邮券</block>
693   - </view>
694   - <view class="coupon-time">{{filters.format_time(item.use_start_time)}}至{{item.use_end_time?filters.format_time(item.use_end_time):'不限'}}</view>
695   - </view>
696   - </view>
697   - <block wx:if="{{item.show_red}}">
698   - <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
699   - </block>
700   - <block wx:else>
701   - <view class="circle xc-hooks on"></view>
702   - </block>
703   - </view>
704   - <include src="remark_click_part2.wxml" />
705   - </view>
706   - </view>
707   - </view>
708   - <!-- 打开是说明 -->
709   - <include src="remark_part.wxml" />
710   - </view>
711   - </block>
712   -
713   - <!-- 包邮券的显示,购物车购买 -->
714   - <block wx:if="{{!is_b_now && sele_exp_type==0}}">
715   - <view wx:for="{{by_quan_list_cart}}" bindtap="sele_quan_item_by" wx:if="{{!item.is_using}}" data-ind="{{byq_index}}" wx:for-item="item" wx:for-index="byq_index">
716   - <view class="xc-coupon-frame flex-center" data-ind="{{byq_index}}">
717   - <view class="coupon-frame flex rel">
718   - <!-- 锯齿 -->
719   - <include src="juchi_part.wxml" />
720   - <!-- 左边 -->
721   - <view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
722   - <view class="white xc-money-frames">
723   - <view class="f_text"><text class="xc-rmb-val">包邮券</text></view>
724   - <view class="coupon-explain t-c" wx:if="{{item.condition>0}}">满{{item.condition}}元可用</view>
725   - <view class="coupon-explain t-c" wx:else>满0元可用</view>
726   - </view>
727   - </view>
728   - <!-- 右边 -->
729   - <view class="coupon-right flex-center rel">
730   - <view class="coupon-annotation flex">
731   - <view class="flex top-frame">
732   - <view class="frame">
733   - <view class="coupon-wode ib flex ellipsis-2 ">
734   - <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(0)}}</text>
735   - <block>包邮券</block>
736   - </view>
737   - <view class="coupon-time">{{filters.format_time(item.use_start_time)}}至{{item.use_end_time?filters.format_time(item.use_end_time):'不限'}}</view>
738   - </view>
739   - </view>
740   - <block wx:if="{{item.show_red}}">
741   - <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
742   - </block>
743   - <block wx:else>
744   - <view class="circle xc-hooks on"></view>
745   - </block>
746   - </view>
747   - <include src="remark_click_part2.wxml" />
748   - </view>
749   - </view>
750   - </view>
751   - <!-- 打开是说明 -->
752   - <include src="remark_part.wxml" />
753   - </view>
754   - </block>
755   -
756   -
757   - </view>
758   - </view>
759   - <!-- 最底下确定层-->
760   - <view class="determine-frame">
761   - <view class="xc-confirm flex-center" bindtap="confirm_quan"> 确定 </view>
762   - </view>
763   - </view>
  600 + <view class="cover-layer flex-center " bindtap='close_coupon'> </view>
  601 + <view class="cx-popup {{open_quan==true?'up' : 'down'}}">
  602 + <!-- 最上面 -->
  603 + <view class="top flex">
  604 + <view class="xc-top-content t-c">
  605 + <view class="xc-title">优惠券使用</view>
  606 + </view>
  607 + <view class="xc-close-frame" bindtap='close_coupon'>
  608 + <view class="xc-close">×</view>
  609 + </view>
  610 + </view>
  611 + <!-- 使用优惠券和不使用优惠券层-->
  612 + <view class="may_use_coupon fs28 flex"> 可使用的优惠券
  613 + <view class=" is_use_coupon flex-vertical" bindtap="sele_quan_item" data-no="1">不使用优惠券
  614 + <block wx:if="{{using_quan[selected_quan_pick].is_nouse_red}}">
  615 + <view class="circle white xc-hooka fs20 red-b sn"><text>Γ</text></view>
  616 + </block>
  617 + <block wx:else>
  618 + <view class="circle xc-hookst ons"></view>
  619 + </block>
  620 + </view>
  621 + </view>
  622 +
  623 + <!-- 中间券内容显示 -->
  624 + <view class="xc-frame flex-level">
  625 + <view class="list-frame">
  626 + <view wx:for="{{selected_quan_list}}" bindtap="sele_quan_item" wx:if="{{!item.is_using}}" data-ind="{{q_index}}" wx:for-item="item" wx:for-index="q_index">
  627 + <view class="xc-coupon-frame flex-center" data-ind="{{q_index}}">
  628 + <view class="coupon-frame flex rel">
  629 + <!-- 锯齿 -->
  630 + <include src="juchi_part.wxml" />
  631 + <!-- 左边 -->
  632 + <view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
  633 + <view class="white xc-money-frames">
  634 + <view class="f_text"><text class="xc-rmb-symbol">¥</text><text class="xc-rmb-val">{{item.Sum}}</text></view>
  635 + <view class="coupon-explain t-c" wx:if="{{item.BuySum>0}}">满{{item.BuySum}}元可用</view>
  636 + <view class="coupon-explain t-c" wx:else>满0元可用</view>
  637 + </view>
  638 + </view>
  639 + <!-- 右边 -->
  640 + <view class="coupon-right flex-center rel">
  641 + <view class="coupon-annotation flex">
  642 + <view class="flex top-frame">
  643 + <view class="frame">
  644 + <view class="coupon-wode ib flex ellipsis-2 ">
  645 + <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(item.UseObjectType)}}</text>
  646 + <block>{{item.Sum}}元优惠券</block>
  647 + </view>
  648 + <view class="coupon-time">{{filters.replace_time2(item.BeginDate)}}至{{item.ValidDate?filters.replace_time2(item.ValidDate):'不限'}}</view>
  649 + </view>
  650 + </view>
  651 + <block wx:if="{{item.show_red}}">
  652 + <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
  653 + </block>
  654 + <block wx:else>
  655 + <view class="circle xc-hooks on"></view>
  656 + </block>
  657 + </view>
  658 + <include src="remark_click_part.wxml" />
  659 + </view>
  660 + </view>
  661 + </view>
  662 + <!-- 打开是说明 -->
  663 + <include src="remark_part.wxml" />
  664 + </view>
  665 + <!-- 包邮券的显示,立即购买 -->
  666 + <block wx:if="{{ is_b_now && bn_exp_type==0}}">
  667 + <view wx:for="{{get_by_quan_list}}" bindtap="sele_quan_item_by" wx:if="{{!item.is_using}}" data-ind="{{byq_index}}" wx:for-item="item" wx:for-index="byq_index">
  668 + <view class="xc-coupon-frame flex-center" data-ind="{{byq_index}}">
  669 + <view class="coupon-frame flex rel">
  670 + <!-- 锯齿 -->
  671 + <include src="juchi_part.wxml" />
  672 + <!-- 左边 -->
  673 + <view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
  674 + <view class="white xc-money-frames">
  675 + <view class="f_text"><text class="xc-rmb-val">包邮券</text></view>
  676 + <view class="coupon-explain t-c" wx:if="{{item.condition>0}}">满{{item.condition}}元可用</view>
  677 + <view class="coupon-explain t-c" wx:else>满0元可用</view>
  678 + </view>
  679 + </view>
  680 + <!-- 右边 -->
  681 + <view class="coupon-right flex-center rel">
  682 + <view class="coupon-annotation flex">
  683 + <view class="flex top-frame">
  684 + <view class="frame">
  685 + <view class="coupon-wode ib flex ellipsis-2 ">
  686 + <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(0)}}</text>
  687 + <block>包邮券</block>
  688 + </view>
  689 + <view class="coupon-time">{{filters.format_time(item.use_start_time)}}至{{item.use_end_time?filters.format_time(item.use_end_time):'不限'}}</view>
  690 + </view>
  691 + </view>
  692 + <block wx:if="{{item.show_red}}">
  693 + <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
  694 + </block>
  695 + <block wx:else>
  696 + <view class="circle xc-hooks on"></view>
  697 + </block>
  698 + </view>
  699 + <include src="remark_click_part2.wxml" />
  700 + </view>
  701 + </view>
  702 + </view>
  703 + <!-- 打开是说明 -->
  704 + <include src="remark_part.wxml" />
  705 + </view>
  706 + </block>
  707 +
  708 + <!-- 包邮券的显示,购物车购买 -->
  709 + <block wx:if="{{!is_b_now && sele_exp_type==0}}">
  710 + <view wx:for="{{by_quan_list_cart}}" bindtap="sele_quan_item_by" wx:if="{{!item.is_using}}" data-ind="{{byq_index}}" wx:for-item="item" wx:for-index="byq_index">
  711 + <view class="xc-coupon-frame flex-center" data-ind="{{byq_index}}">
  712 + <view class="coupon-frame flex rel">
  713 + <!-- 锯齿 -->
  714 + <include src="juchi_part.wxml" />
  715 + <!-- 左边 -->
  716 + <view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
  717 + <view class="white xc-money-frames">
  718 + <view class="f_text"><text class="xc-rmb-val">包邮券</text></view>
  719 + <view class="coupon-explain t-c" wx:if="{{item.condition>0}}">满{{item.condition}}元可用</view>
  720 + <view class="coupon-explain t-c" wx:else>满0元可用</view>
  721 + </view>
  722 + </view>
  723 + <!-- 右边 -->
  724 + <view class="coupon-right flex-center rel">
  725 + <view class="coupon-annotation flex">
  726 + <view class="flex top-frame">
  727 + <view class="frame">
  728 + <view class="coupon-wode ib flex ellipsis-2 ">
  729 + <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(0)}}</text>
  730 + <block>包邮券</block>
  731 + </view>
  732 + <view class="coupon-time">{{filters.format_time(item.use_start_time)}}至{{item.use_end_time?filters.format_time(item.use_end_time):'不限'}}</view>
  733 + </view>
  734 + </view>
  735 + <block wx:if="{{item.show_red}}">
  736 + <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
  737 + </block>
  738 + <block wx:else>
  739 + <view class="circle xc-hooks on"></view>
  740 + </block>
  741 + </view>
  742 + <include src="remark_click_part2.wxml" />
  743 + </view>
  744 + </view>
  745 + </view>
  746 + <!-- 打开是说明 -->
  747 + <include src="remark_part.wxml" />
  748 + </view>
  749 + </block>
  750 +
  751 +
  752 + </view>
  753 + </view>
  754 + <!-- 最底下确定层-->
  755 + <view class="determine-frame">
  756 + <view class="xc-confirm flex-center" bindtap="confirm_quan"> 确定 </view>
  757 + </view>
  758 + </view>
764 759 </view>
765 760 <!----弹起选择物流名的列表---->
766 761 <view wx:if='{{open_express==1}}'>
767   - <view class="cover-layer flex-center " bindtap='close_express'>
768   - </view>
769   -
770   - <view class="cx-popup radius {{open_express==1?'up' : 'down'}}">
771   - <view class="tops flex">
772   - <view class="top-content fs32">
773   - <view>选择物流名字</view>
774   - </view>
775   - <view class="close-frame" bindtap='close_express'>
776   - <view class="xc-close-express">×</view>
777   - </view>
778   - </view>
779   - <view class="express_list">
780   - <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
781   - <view class="express_list_frame" bindtap="click_express_name" data-shippingcode="{{express_list.shipping_code}}" data-name="{{express_list.name}}" data-idxe="{{idx}}">
782   -
783   - <block wx:if="{{is_express==idx}}">
784   - <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
785   - </block>
786   - <block wx:else>
787   - <view class="circle xc-hooks"></view>
788   - </block>
789   - <view class="fs30">{{express_list.name}}</view>
790   -
791   - </view>
792   - </view>
793   - </view>
794   - <view class="flex click-buttem">
795   - <view class="xc-determine flex-center" bindtap="determine_expres">
796   - <view class="flex-vertical t-c">确定</view>
797   - </view>
798   - <view class="xc-confirms flex-center" bindtap="select_default_logistics">
799   - <view class="flex-vertical t-c">设为默认</view>
800   - </view>
801   - </view>
802   -
803   - </view>
  762 + <view class="cover-layer flex-center " bindtap='close_express'>
  763 + </view>
  764 +
  765 + <view class="cx-popup radius {{open_express==1?'up' : 'down'}}">
  766 + <view class="tops flex">
  767 + <view class="top-content fs32">
  768 + <view>选择物流名字</view>
  769 + </view>
  770 + <view class="close-frame" bindtap='close_express'>
  771 + <view class="xc-close-express">×</view>
  772 + </view>
  773 + </view>
  774 + <view class="express_list">
  775 + <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
  776 + <view class="express_list_frame" bindtap="click_express_name" data-shippingcode="{{express_list.shipping_code}}" data-name="{{express_list.name}}" data-idxe="{{idx}}">
  777 +
  778 + <block wx:if="{{is_express==idx}}">
  779 + <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
  780 + </block>
  781 + <block wx:else>
  782 + <view class="circle xc-hooks"></view>
  783 + </block>
  784 + <view class="fs30">{{express_list.name}}</view>
  785 +
  786 + </view>
  787 + </view>
  788 + </view>
  789 + <view class="flex click-buttem">
  790 + <view class="xc-determine flex-center" bindtap="determine_expres">
  791 + <view class="flex-vertical t-c">确定</view>
  792 + </view>
  793 + <view class="xc-confirms flex-center" bindtap="select_default_logistics">
  794 + <view class="flex-vertical t-c">设为默认</view>
  795 + </view>
  796 + </view>
  797 +
  798 + </view>
804 799 </view>
805 800 <warn id="warn"></warn>
806 801 <!-- 是不是使用店铺优惠pop -->
807 802 <view class="cover-layer flex ai-center" bindtap="close_offline" wx:if="{{is_offline_show}}">
808   - <view style="background-color: #fff; width: 540rpx; margin: 0 auto; border-radius: 20rpx;">
809   - <view class="fs32" style="text-align: center;height: 80rpx; line-height: 80rpx;">店铺优惠</view>
810   - <view class="flex jc_sb ai-center fs28" style="height: 80rpx; width: 400rpx; margin-left: 70rpx;">
811   - <view catchtap="sure_offline" class="flex ai-center">优惠¥{{show_off_price}}
812   - <icon style="margin-left: 10rpx;" color="{{is_get_offline?'red':'gray'}}" size="14" type="success" role="img"></icon>
813   - </view>
814   - <view catchtap="cancle_offline" class="flex ai-center">不用优惠
815   - <icon style="margin-left: 10rpx;" color="{{is_get_offline!=1?'red':'gray'}}" size="14" type="success" role="img"></icon>
816   - </view>
817   - </view>
818   - </view>
  803 + <view style="background-color: #fff; width: 540rpx; margin: 0 auto; border-radius: 20rpx;">
  804 + <view class="fs32" style="text-align: center;height: 80rpx; line-height: 80rpx;">店铺优惠</view>
  805 + <view class="flex jc_sb ai-center fs28" style="height: 80rpx; width: 400rpx; margin-left: 70rpx;">
  806 + <view catchtap="sure_offline" class="flex ai-center">优惠¥{{show_off_price}}
  807 + <icon style="margin-left: 10rpx;" color="{{is_get_offline?'red':'gray'}}" size="14" type="success" role="img"></icon>
  808 + </view>
  809 + <view catchtap="cancle_offline" class="flex ai-center">不用优惠
  810 + <icon style="margin-left: 10rpx;" color="{{is_get_offline!=1?'red':'gray'}}" size="14" type="success" role="img"></icon>
  811 + </view>
  812 + </view>
  813 + </view>
819 814 </view>
820 815  
821 816 <!-- 多赠品 -->
822 817 <view class="duo_gift_sele" wx:if="{{show_duo_gift}}">
823   - <!-- top search -->
824   - <view class="flex gift_top_v ai_c">
825   - <text bindtap="close_sele_gift" class="bg_jj1"></text>
826   - <view class="pdh20 pdv10 flex ai_c jc_sb">
827   - <view class="input-box" style="width: 580rpx;display: flex; padding-left: 20rpx">
828   - <view class="sear_box" bindtap="submitSearch"></view>
829   - <input autoFocus class="input-search" name="word" placeholder="搜索关键字" bindconfirm="submitSearch" bindinput="getInput" bindfocus="inputFocus" value="{{keyword}}" />
830   - </view>
831   - </view>
832   -
833   - </view>
834   - <!-- top act_name -->
835   - <view class="flex gift_top_v ai_c fs30" style="padding-left: 70rpx">
836   - {{gf_pr_name}},可任选{{zp_num}}件商品为赠品
837   - </view>
838   - <!-- 赠品选择 -->
839   - <scroll-view scroll-y="{{true}}" style="height:calc(100% - 300rpx);">
840   - <view class="order-item" hidden="{{items.hide_div}}" data-item="{{idx}}" wx:for="{{giftsinfo}}" wx:for-item="items" wx:for-index="idx">
841   -
842   - <view bindtap="check_th_item" class="order-raido flex-vertical " data-check="{{items.selected?items.selected:0}}" data-item="{{idx}}">
843   - <icon wx:if="{{items.selected}}" color="red" size="20" type="success"></icon>
844   - <text wx:else class="icon_no_sele"></text>
845   - </view>
846   -
847   - <navigator class="goods-img rel" bindtap="go_gd" data-gd="{{items.goods_id}}">
848   - <image class="wh100" src="{{imgUrl+items.goodsinfo.original_img}}" binderror="bind_bnerr2" data-errorimg="gift_goods[{{idx}}].goodsinfo.original_img"></image>
849   - </navigator>
850   - <view class="goods-cont">
851   - <view class="goods-name">
852   - <navigator bindtap="go_gd" class="ellipsis-2 fs30" data-gd="{{items.goods_id}}">{{items.goods_name}}</navigator>
853   -
854   - <view class="specifications ellipsis-1">
855   - <view wx:if="{{items.goodsinfo.goods_color || items.goodsinfo.goods_spec}}">
856   - {{items.goodsinfo.goods_color}}{{items.goodsinfo.goods_color?"/":''}}{{items.goodsinfo.goods_spec}}</view>
857   - <view wx:else>规格1</view>
858   - </view>
859   - </view>
860   -
861   - <view class="flex alend jc_sb">
862   - <view class="goods-price co-red baseline ellipsis-1">
863   - <view class="fs20">¥</view>
864   - <view class="fs28">{{items.goodsinfo.shop_price}}</view>
865   - </view>
866   - <view class="count">
867   - <view bindtap="{{items.goods_num <= 1 ? '':'subNum'}}" class="sub fs28 {{items.goods_num <= 1 ? 'active':''}}" data-pitems="{{pidx}}" data-item="{{idx}}">一</view>
868   - <input class="goodadd" bindblur="valueToNum" data-item="{{idx}}" bindinput="refresh_input" data-item="{{idx}}" type="number" value="{{items.goods_num}}"></input>
869   - <view class="add" bindtap="addNum" data-item="{{idx}}">+</view>
870   - </view>
871   - </view>
872   -
873   - </view>
874   - </view>
875   - </scroll-view>
876   - <!-- 确认选择 -->
877   - <view class="pay-for flex-vertical-between" style="bottom: 0">
878   - <view></view>
879   - <view>
880   - <button bindtap="sure_this_gift" class="pay-btn">确定</button>
881   - </view>
882   - </view>
  818 + <!-- top search -->
  819 + <view class="flex gift_top_v ai_c">
  820 + <text bindtap="close_sele_gift" class="bg_jj1"></text>
  821 + <view class="pdh20 pdv10 flex ai_c jc_sb">
  822 + <view class="input-box" style="width: 580rpx;display: flex; padding-left: 20rpx">
  823 + <view class="sear_box" bindtap="submitSearch"></view>
  824 + <input autoFocus class="input-search" name="word" placeholder="搜索关键字" bindconfirm="submitSearch" bindinput="getInput" bindfocus="inputFocus" value="{{keyword}}" />
  825 + </view>
  826 + </view>
  827 +
  828 + </view>
  829 + <!-- top act_name -->
  830 + <view class="flex gift_top_v ai_c fs30" style="padding-left: 70rpx">
  831 + {{gf_pr_name}},可任选{{zp_num}}件商品为赠品
  832 + </view>
  833 + <!-- 赠品选择 -->
  834 + <scroll-view scroll-y="{{true}}" style="height:calc(100% - 300rpx);">
  835 + <view class="order-item" hidden="{{items.hide_div}}" data-item="{{idx}}" wx:for="{{giftsinfo}}" wx:for-item="items" wx:for-index="idx">
  836 +
  837 + <view bindtap="check_th_item" class="order-raido flex-vertical " data-check="{{items.selected?items.selected:0}}" data-item="{{idx}}">
  838 + <icon wx:if="{{items.selected}}" color="red" size="20" type="success"></icon>
  839 + <text wx:else class="icon_no_sele"></text>
  840 + </view>
  841 +
  842 + <navigator class="goods-img rel" bindtap="go_gd" data-gd="{{items.goods_id}}">
  843 + <image class="wh100" src="{{imgUrl+items.goodsinfo.original_img}}" binderror="bind_bnerr2" data-errorimg="gift_goods[{{idx}}].goodsinfo.original_img"></image>
  844 + </navigator>
  845 + <view class="goods-cont">
  846 + <view class="goods-name">
  847 + <navigator bindtap="go_gd" class="ellipsis-2 fs30" data-gd="{{items.goods_id}}">{{items.goods_name}}</navigator>
  848 +
  849 + <view class="specifications ellipsis-1">
  850 + <view wx:if="{{items.goodsinfo.goods_color || items.goodsinfo.goods_spec}}">
  851 + {{items.goodsinfo.goods_color}}{{items.goodsinfo.goods_color?"/":''}}{{items.goodsinfo.goods_spec}}</view>
  852 + <view wx:else>规格1</view>
  853 + </view>
  854 + </view>
  855 +
  856 + <view class="flex alend jc_sb">
  857 + <view class="goods-price co-red baseline ellipsis-1">
  858 + <view class="fs20">¥</view>
  859 + <view class="fs28">{{items.goodsinfo.shop_price}}</view>
  860 + </view>
  861 + <view class="count">
  862 + <view bindtap="{{items.goods_num <= 1 ? '':'subNum'}}" class="sub fs28 {{items.goods_num <= 1 ? 'active':''}}" data-pitems="{{pidx}}" data-item="{{idx}}">一</view>
  863 + <input class="goodadd" bindblur="valueToNum" data-item="{{idx}}" bindinput="refresh_input" data-item="{{idx}}" type="number" value="{{items.goods_num}}"></input>
  864 + <view class="add" bindtap="addNum" data-item="{{idx}}">+</view>
  865 + </view>
  866 + </view>
  867 +
  868 + </view>
  869 + </view>
  870 + </scroll-view>
  871 + <!-- 确认选择 -->
  872 + <view class="pay-for flex-vertical-between" style="bottom: 0">
  873 + <view></view>
  874 + <view>
  875 + <button bindtap="sure_this_gift" class="pay-btn">确定</button>
  876 + </view>
  877 + </view>
883 878  
884 879 </view>
885 880 \ No newline at end of file
... ...
pages/cart/cart2_inte/cart2_inte.js
... ... @@ -287,7 +287,7 @@ Page({
287 287 if (res.data.code == 0 && res.data.data && res.data.data.length > 0) {
288 288 let resData = res.data.data
289 289 resData.map(ite => {
290   - yck += ite.advancesum
  290 + yck += ite.advancesum*1
291 291 yckIdArr.push(ite.advanceitemid)
292 292 })
293 293 pre_json = resData
... ... @@ -299,7 +299,7 @@ Page({
299 299 } else {
300 300 obj.yck_off = 0
301 301 }
302   - obj.yck = yck
  302 + obj.yck = yck.toFixed(2)
303 303 obj.yckid = yckid
304 304 obj.pre_json = pre_json
305 305 return obj
... ...
pages/cart/cart2_inte/cart2_inte.wxml
... ... @@ -129,7 +129,16 @@
129 129 class="word-box" maxlength="100" name="user_note"></input>
130 130 </view>
131 131 </view>
132   -
  132 + <!-- 预存款 -->
  133 + <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
  134 + <view class="use-item" style="justify-content: space-between;">
  135 + <view>
  136 + <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
  137 + <view class="yu_er">使用预存</view>
  138 + </view>
  139 + <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
  140 + </view>
  141 + </view>
133 142  
134 143 <!-----使用佣金抵扣,只有佣金小于尾款金额的时候------>
135 144 <view class="set-mes bdr_t-14"
... ... @@ -148,16 +157,7 @@
148 157 </view>
149 158 </view>
150 159  
151   - <!-- 预存款 -->
152   - <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
153   - <view class="use-item" style="justify-content: space-between;">
154   - <view>
155   - <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
156   - <view class="yu_er">使用预存</view>
157   - </view>
158   - <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
159   - </view>
160   - </view>
  160 +
161 161  
162 162 </block>
163 163  
... ...
pages/cart/cart2_pt/cart2_pt.js
... ... @@ -241,7 +241,7 @@ Page({
241 241 if (res.data.code == 0 && res.data.data && res.data.data.length > 0) {
242 242 let resData = res.data.data
243 243 resData.map(ite => {
244   - yck += ite.advancesum
  244 + yck += ite.advancesum*1
245 245 yckIdArr.push(ite.advanceitemid)
246 246 })
247 247 pre_json = resData
... ... @@ -253,7 +253,7 @@ Page({
253 253 } else {
254 254 obj.yck_off = 0
255 255 }
256   - obj.yck = yck
  256 + obj.yck = yck.toFixed(2)
257 257 obj.yckid = yckid
258 258 obj.pre_json = pre_json
259 259 return obj
... ...
pages/cart/cart2_pt/cart2_pt.wxml
1 1 <wxs module="filters" src="../../../utils/filter.wxs"></wxs>
2 2 <form bindsubmit="submitForm">
3   - <view class="container">
4   -
5   - <block wx:if="{{show_btn}}">
6   - <view class="tab-container" wx:if="{{kt_type!=3 || is_normal==1}}">
7   - <view class="tab-wrapper">
8   - <view hidden="{{bn_t_exp_t==2}}" bindtap='setexptype' data-t='1' class="tab {{bn_exp_type == 1? 'active':''}}"
9   - data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}" >门店自提</view>
10   -
11   - <view hidden="{{bn_t_exp_t==1}}" bindtap='setexptype' data-t='0' class="tab {{bn_exp_type== 0 ? 'active':''}}"
12   - data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}" >快递邮寄</view>
13   -
14   - <!-- 同城配送 -->
15   - <block wx:if="{{show_same_city}}">
16   - <view bindtap='setexptype' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
17   - </block>
18   -
19   - </view>
20   - </view>
21   - </block>
22   -
23   - <!--要进行判断地址是否显示---->
24   - <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{bn_exp_type==1 || kt_type==3}}'>
25   - <!---默认地址显示------>
26   - <block wx:if="{{user_addr!=null}}">
27   - <view class="user-contact">收货人:{{user_addr.consignee}}{{'  '}}{{user_addr.mobile}}</view>
28   - <view class="location">
29   - <view class="address">{{user_addr.more_address}}{{' '}}{{user_addr.address}}</view>
30   - <view class="pos-icon">
31   - <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
32   - </view>
33   - </view>
34   - <view class="update-logistics">
35   - <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/icon-arrowdown.png"></image>
36   - </view>
37   - </block>
38   - <!---先增地址------>
39   - <block wx:else>
40   - <view class="add_new">
41   - <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
42   - </view>
43   - </block>
44   - <!-- <view class="border-img"><image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/tt.png"></image></view> -->
  3 + <view class="container">
  4 +
  5 + <block wx:if="{{show_btn}}">
  6 + <view class="tab-container" wx:if="{{kt_type!=3 || is_normal==1}}">
  7 + <view class="tab-wrapper">
  8 + <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>
  9 +
  10 + <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>
  11 +
  12 + <!-- 同城配送 -->
  13 + <block wx:if="{{show_same_city}}">
  14 + <view bindtap='setexptype' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
  15 + </block>
  16 +
  17 + </view>
  18 + </view>
  19 + </block>
  20 +
  21 + <!--要进行判断地址是否显示---->
  22 + <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{bn_exp_type==1 || kt_type==3}}'>
  23 + <!---默认地址显示------>
  24 + <block wx:if="{{user_addr!=null}}">
  25 + <view class="user-contact">收货人:{{user_addr.consignee}}{{'  '}}{{user_addr.mobile}}</view>
  26 + <view class="location">
  27 + <view class="address">{{user_addr.more_address}}{{' '}}{{user_addr.address}}</view>
  28 + <view class="pos-icon">
  29 + <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
  30 + </view>
  31 + </view>
  32 + <view class="update-logistics">
  33 + <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/icon-arrowdown.png"></image>
  34 + </view>
  35 + </block>
  36 + <!---先增地址------>
  37 + <block wx:else>
  38 + <view class="add_new">
  39 + <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
45 40 </view>
  41 + </block>
  42 + <!-- <view class="border-img"><image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/tt.png"></image></view> -->
  43 + </view>
46 44  
47 45  
48   - <!------立即购买-------->
49   - <block>
50   - <!-- <view class="xc-border main-top"></view> -->
51   - <view class="use-item bfff bdr_t-14 mgt20">
52   - <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image> <view>{{bn_pickname}}</view></view>
53   - <view class="order-detail">
54   - <view class="goods-img">
55   - <image class="wh100 bdr14" src="{{bn_goods.original_img}}"
56   - binderror='cart_set_err' data-err="bn_goods.original_img"></image>
57   - </view>
58   - <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}">
59   - <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
60   - <!-- 商品属性 -->
61   - <view class="flex-vertical fs28 color-gray n_guige">
62   - <view class="goods-color"><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text>
63   - </view></view>
64   -
65   - <!-----商品名称规格------>
66   - <view class="order-num flex-space-between">
67   - <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
68   - <view class="goods-num">x{{bn_goods.buynum}}</view>
69   - </view>
70   - </navigator>
71   - <!-- <view class="order-num">
  46 + <!------立即购买-------->
  47 + <block>
  48 + <!-- <view class="xc-border main-top"></view> -->
  49 + <view class="use-item bfff bdr_t-14 mgt20">
  50 + <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image>
  51 + <view>{{bn_pickname}}</view>
  52 + </view>
  53 + <view class="order-detail">
  54 + <view class="goods-img">
  55 + <image class="wh100 bdr14" src="{{bn_goods.original_img}}" binderror='cart_set_err' data-err="bn_goods.original_img"></image>
  56 + </view>
  57 + <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}">
  58 + <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
  59 + <!-- 商品属性 -->
  60 + <view class="flex-vertical fs28 color-gray n_guige">
  61 + <view class="goods-color"><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text>
  62 + </view>
  63 + </view>
  64 +
  65 + <!-----商品名称规格------>
  66 + <view class="order-num flex-space-between">
  67 + <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
  68 + <view class="goods-num">x{{bn_goods.buynum}}</view>
  69 + </view>
  70 + </navigator>
  71 + <!-- <view class="order-num">
72 72 <view class="co-red">¥{{bn_goods.shop_price}}</view>
73 73 <view class="goods-num">x{{bn_goods.buynum}}</view>
74 74 </view> -->
75   - </view>
76   -
77   - <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
78   - <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
79   - <view class="flex">
80   - <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
81   - <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png"></ image>
82   - <text class="card_name">{{show_card.CardName}}</text>
83   - </view>
84   - <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
85   - </view>
86   - <view>
87   - <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
88   - </view>
89   - <!-- 三角形 -->
90   - <view class="car_tri_up"></view>
91   - <!-- 立即开通跳转 -->
92   - <view bindtap="buycard" class="card_op">立即开通</view>
93   - </view>
94   -
95   -
96   - <view class="set-mes bdr_b-14">
97   - <view wx:if="{{order.store_prom}}"><icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
98   - </view>
99   -
100   - <!--阶梯团是不显示的-->
101   - <block wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
102   - <view class="use-item flex-space-between" wx:if="{{kt_type!=3 || is_normal==1}}">
103   - <view>选择物流</view>
104   - <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 8rpx;">
105   - <view class="logistics-name">{{wu_arr[index].name}}</view><view class="xc-right"></view>
106   - </view>
107   - </view>
108   - </block>
109   -
110   - <!--阶梯团是不显示的
  75 + </view>
  76 +
  77 + <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
  78 + <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
  79 + <view class="flex">
  80 + <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
  81 + <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
  82 + </ image>
  83 + <text class="card_name">{{show_card.CardName}}</text>
  84 + </view>
  85 + <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> 元</view>
  86 + </view>
  87 + <view>
  88 + <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
  89 + </view>
  90 + <!-- 三角形 -->
  91 + <view class="car_tri_up"></view>
  92 + <!-- 立即开通跳转 -->
  93 + <view bindtap="buycard" class="card_op">立即开通</view>
  94 + </view>
  95 +
  96 +
  97 + <view class="set-mes bdr_b-14">
  98 + <view wx:if="{{order.store_prom}}">
  99 + <icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
  100 + </view>
  101 +
  102 + <!--阶梯团是不显示的-->
  103 + <block wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
  104 + <view class="use-item flex-space-between" wx:if="{{kt_type!=3 || is_normal==1}}">
  105 + <view>选择物流</view>
  106 + <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 8rpx;">
  107 + <view class="logistics-name">{{wu_arr[index].name}}</view>
  108 + <view class="xc-right"></view>
  109 + </view>
  110 + </view>
  111 + </block>
  112 +
  113 + <!--阶梯团是不显示的
111 114 <block wx:if="{{kt_type!=3 || is_normal==1 }}">
112 115 <view class="use-item" hidden='{{bn_exp_type==1}}'>
113 116 <view>使用物流:</view>
... ... @@ -117,128 +120,127 @@
117 120 </view>
118 121 </block>-->
119 122  
120   - </view>
121   -
122   -
123   - <view class="coupon-mes flex-vertical">
124   - <view>留言</view>
125   - <view class="leave-word">
126   - <input placeholder-class="fs28" placeholder='给商家留言,最多100字'bindinput="keyUpChangeNum" disabled="{{disabled}}" class="word-box" maxlength="100" name="user_note"></input>
127   -
128   - </view>
129   - </view>
130   - </block>
131   -
132   - <view class="information bdr14">
133   - <!-----使用佣金抵扣------>
134   - <view class="set-mes" wx:if="{{bn_goods.use_commission>0 && can_commission && kt_type!=3}}">
135   - <view class="use-item" bindtap='set_bn_commission' style="padding-left:0;padding-right:0;">
136   - <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
137   - <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
138   - </view>
139   - </view>
140   -
141   - <!-----使用余额------>
142   - <view class="set-mes" wx:if="{{userinfo.user_money>0 && yuer>0}}">
143   - <view class="use-item" bindtap='set_bn_useyuer' style="padding-left:0;padding-right:0;">
144   - <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
145   - <view class="yu_er">使用余额 :¥{{yuer}} </view>
146   - </view>
147   - </view>
148   - <!-- 预存款 -->
149   - <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
  123 + </view>
  124 +
  125 +
  126 + <view class="coupon-mes flex-vertical">
  127 + <view>留言</view>
  128 + <view class="leave-word">
  129 + <input placeholder-class="fs28" placeholder='给商家留言,最多100字' bindinput="keyUpChangeNum" disabled="{{disabled}}" class="word-box" maxlength="100" name="user_note"></input>
  130 +
  131 + </view>
  132 + </view>
  133 + </block>
  134 +
  135 + <view class="information bdr14">
  136 + <!-- 预存款 -->
  137 + <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
150 138 <view class="use-item" style="justify-content: space-between;padding: 0;">
151 139 <view>
152   - <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
  140 + <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
153 141 <view class="yu_er">使用预存</view>
154 142 </view>
155 143 <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
156 144 </view>
157 145 </view>
  146 + <!-----使用佣金抵扣------>
  147 + <view class="set-mes" wx:if="{{bn_goods.use_commission>0 && can_commission && kt_type!=3}}">
  148 + <view class="use-item" bindtap='set_bn_commission' style="padding-left:0;padding-right:0;">
  149 + <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
  150 + <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
  151 + </view>
  152 + </view>
158 153  
159   - <view class="item" wx:if="{{kt_type<3 || is_normal==1}}">
160   - <view>商品金额</view>
161   - <view class="co-red">¥ {{formData.all_price}}元</view>
162   - </view>
163   - <view class="item" wx:else>
164   - <view>定金金额</view>
165   - <view class="co-red">¥ {{formData.all_price}}元</view>
166   - </view>
  154 + <!-----使用余额------>
  155 + <view class="set-mes" wx:if="{{userinfo.user_money>0 && yuer>0}}">
  156 + <view class="use-item" bindtap='set_bn_useyuer' style="padding-left:0;padding-right:0;">
  157 + <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
  158 + <view class="yu_er">使用余额 :¥{{yuer}} </view>
  159 + </view>
  160 + </view>
167 161  
168   - <view class="item" wx:if="{{formData.shipping_price>0}}">
169   - <view>配送费用</view>
170   - <view class="co-red">¥ {{formData.shipping_price}}元</view>
171   - </view>
172   - <!-- 使用预存优惠金额 -->
173   - <view class="item" wx:if="{{formData.prestore>0}}">
174   - <view>使用预存</view>
175   - <view class="co-red">- ¥ {{filters.toFix(formData.prestore,2)}}元</view>
176   - </view>
177   - <view class="item" wx:if="{{formData.user_money>0}}">
178   - <view>使用余额</view>
179   - <view class="co-red">- ¥ {{formData.user_money}}元</view>
180   - </view>
181   - <!-- 订单优惠优惠金额 -->
182   - <view class="item" wx:if="{{formData.order_prom_amount>0}}">
183   - <view>订单优惠</view>
184   - <view class="co-red">- ¥ {{filters.toFix(formData.order_prom_amount,2)}}元</view>
185   - </view>
186 162  
187   - </view>
  163 + <view class="item" wx:if="{{kt_type<3 || is_normal==1}}">
  164 + <view>商品金额</view>
  165 + <view class="co-red">¥ {{formData.all_price}}元</view>
  166 + </view>
  167 + <view class="item" wx:else>
  168 + <view>定金金额</view>
  169 + <view class="co-red">¥ {{formData.all_price}}元</view>
  170 + </view>
  171 +
  172 + <view class="item" wx:if="{{formData.shipping_price>0}}">
  173 + <view>配送费用</view>
  174 + <view class="co-red">¥ {{formData.shipping_price}}元</view>
  175 + </view>
  176 + <!-- 使用预存优惠金额 -->
  177 + <view class="item" wx:if="{{formData.prestore>0}}">
  178 + <view>使用预存</view>
  179 + <view class="co-red">- ¥ {{filters.toFix(formData.prestore,2)}}元</view>
  180 + </view>
  181 + <view class="item" wx:if="{{formData.user_money>0}}">
  182 + <view>使用余额</view>
  183 + <view class="co-red">- ¥ {{formData.user_money}}元</view>
  184 + </view>
  185 + <!-- 订单优惠优惠金额 -->
  186 + <view class="item" wx:if="{{formData.order_prom_amount>0}}">
  187 + <view>订单优惠</view>
  188 + <view class="co-red">- ¥ {{filters.toFix(formData.order_prom_amount,2)}}元</view>
  189 + </view>
  190 +
188 191 </view>
  192 + </view>
189 193  
190   - <view class="btn-wrap" wx:if="{{show_btn}}">
191   - <view class="pay-amount">
192   - <view class="payable">应付金额:<text class="co-red">¥{{formData.order_amount}}</text></view>
193   - <!-- <view class="co-red big"></view> -->
194   - </view>
195   - <button disabled="{{submit}}" class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
196   - </view>
  194 + <view class="btn-wrap" wx:if="{{show_btn}}">
  195 + <view class="pay-amount">
  196 + <view class="payable">应付金额:<text class="co-red">¥{{formData.order_amount}}</text></view>
  197 + <!-- <view class="co-red big"></view> -->
  198 + </view>
  199 + <button disabled="{{submit}}" class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
  200 + </view>
197 201 </form>
198 202  
199 203 <!----弹起选择物流名的列表---->
200   -<view wx:if='{{open_express==1}}' >
201   - <view class="cover-layer flex-center " bindtap='close_express'>
  204 +<view wx:if='{{open_express==1}}'>
  205 + <view class="cover-layer flex-center " bindtap='close_express'>
  206 + </view>
  207 +
  208 + <view class="cx-popup radius {{open_express==1?'up' : 'down'}}">
  209 + <view class="tops flex">
  210 + <view class="top-content fs32">
  211 + <view>
  212 + 选择物流名字
  213 + </view>
  214 + </view>
  215 + <view class="close-frame" bindtap='close_express'>
  216 + <view class="xc-close-express">×</view>
  217 + </view>
202 218 </view>
  219 + <view class="express_list">
  220 + <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
  221 + <view class="express_list_frame" bindtap="click_express_name" data-shippingcode="{{express_list.shipping_code}}" data-name="{{express_list.name}}" data-idxe="{{idx}}">
  222 +
  223 + <block wx:if="{{is_express==idx}}">
  224 + <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
  225 + </block>
  226 + <block wx:else>
  227 + <view class="circle xc-hooks"></view>
  228 + </block>
  229 + <view class="fs30">{{express_list.name}}</view>
203 230  
204   - <view class="cx-popup radius {{open_express==1?'up' : 'down'}}" >
205   - <view class="tops flex">
206   - <view class="top-content fs32">
207   - <view>
208   - 选择物流名字
209   - </view>
210   - </view>
211   - <view class="close-frame" bindtap='close_express' >
212   - <view class="xc-close-express">×</view>
213   - </view>
214   - </view>
215   - <view class="express_list">
216   - <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
217   - <view class="express_list_frame" bindtap="click_express_name"
218   - data-shippingcode="{{express_list.shipping_code}}"
219   - data-name="{{express_list.name}}" data-idxe="{{idx}}">
220   -
221   - <block wx:if="{{is_express==idx}}">
222   - <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
223   - </block>
224   - <block wx:else>
225   - <view class="circle xc-hooks"></view>
226   - </block>
227   - <view class="fs30">{{express_list.name}}</view>
228   -
229   - </view>
230   - </view>
231   - </view>
232   - <view class="flex click-buttem" >
233   - <view class="xc-determine flex-center" bindtap="determine_expres">
234   - <view class="flex-vertical t-c">确定</view>
235   - </view>
236   - <view class="xc-confirms flex-center" bindtap="select_default_logistics">
237   - <view class="flex-vertical t-c">设为默认</view>
238   - </view>
239 231 </view>
  232 + </view>
  233 + </view>
  234 + <view class="flex click-buttem">
  235 + <view class="xc-determine flex-center" bindtap="determine_expres">
  236 + <view class="flex-vertical t-c">确定</view>
  237 + </view>
  238 + <view class="xc-confirms flex-center" bindtap="select_default_logistics">
  239 + <view class="flex-vertical t-c">设为默认</view>
  240 + </view>
  241 + </view>
240 242  
241   - </view >
  243 + </view>
242 244 </view>
243 245  
244 246 -<warn id="warn"></warn>
  247 +<warn id="warn"></warn>
245 248 \ No newline at end of file
... ...