Commit 94ff61d74776e1bbb6b6444eb18b133345675ebf
1 parent
87358ad0
搭配购 优化
Showing
6 changed files
with
17 additions
and
5 deletions
components/cart_collect_temp/cart_collect_temp.js
packageA/pages/prom_list/prom_list.js
... | ... | @@ -1919,7 +1919,7 @@ Page({ |
1919 | 1919 | storeId: os.stoid |
1920 | 1920 | } |
1921 | 1921 | if (sales_rules == 2) { |
1922 | - sto_req.storageNos = item.pickup_no | |
1922 | + sto_req.storageNos = pick.pickup_no | |
1923 | 1923 | } else { |
1924 | 1924 | sto_req.storageIds = encodeURIComponent(this.data.appoint_pick_keyid) |
1925 | 1925 | } | ... | ... |
packageA/pages/prom_list/prom_list.wxml
... | ... | @@ -92,7 +92,7 @@ |
92 | 92 | <view style="clear: both"></view> |
93 | 93 | <!-- 选择门店模块 --> |
94 | 94 | <view class="flex-space-between address ai_end xc-width "> |
95 | - <view class="flex ai_end" wx:if="{{def_pick_store}}"> | |
95 | + <view class="flex" style="align-items: flex-start;" wx:if="{{def_pick_store}}"> | |
96 | 96 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
97 | 97 | <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> |
98 | 98 | 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} | ... | ... |
packageA/pages/prom_list/prom_list.wxss
... | ... | @@ -173,6 +173,8 @@ |
173 | 173 | } |
174 | 174 | .shop_name{ |
175 | 175 | margin-right: 10rpx; |
176 | + width: 350rpx; | |
177 | + flex-shrink: 0; | |
176 | 178 | } |
177 | 179 | .address{ |
178 | 180 | width: 99%; |
... | ... | @@ -188,6 +190,8 @@ |
188 | 190 | color: #999; |
189 | 191 | height: 38rpx; |
190 | 192 | line-height: 38rpx; |
193 | + position: relative; | |
194 | + top: 5rpx; | |
191 | 195 | } |
192 | 196 | .sto_v .title,.sto_v .stitle{ border-top: 1rpx solid #dedede;border-bottom: 1rpx solid #dedede; height: 78rpx; line-height: 78rpx;} |
193 | 197 | .sto_v .title .tubiao,.sto_v .stitle .tubiao{width: 32rpx; height: 32rpx; margin-top: 23rpx;} |
... | ... | @@ -235,6 +239,7 @@ |
235 | 239 | } |
236 | 240 | .address_name{ |
237 | 241 | margin-right: 10rpx; |
242 | + width: 360rpx; | |
238 | 243 | |
239 | 244 | } |
240 | 245 | .address-val{ | ... | ... |
pages/cart/cart2/cart2.js
pages/cart/cart2/cart2.wxml
... | ... | @@ -110,7 +110,7 @@ |
110 | 110 | |
111 | 111 | <!-- 使用搭配 --> |
112 | 112 | <cart_collect_temp bind:childFun="select_coll" sales_rules="{{sales_rules}}" pick="{{item.pickup_id}}" |
113 | - is_cart="1" cart_index="{{index}}" | |
113 | + is_cart="1" cart_index="{{index}}" appoint_pick_keyid="{{appoint_pick_keyid}}" | |
114 | 114 | all_collocation_list="{{item.collocationList}}" /> |
115 | 115 | |
116 | 116 | <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 --> |
... | ... | @@ -377,7 +377,9 @@ |
377 | 377 | </block> |
378 | 378 | |
379 | 379 | <!-- 使用搭配 --> |
380 | - <cart_collect_temp bind:childFun="select_coll" all_collocation_list="{{all_collocation_list}}" sales_rules="{{sales_rules}}" pick="{{bn_pick}}" /> | |
380 | + <cart_collect_temp bind:childFun="select_coll" all_collocation_list="{{all_collocation_list}}" | |
381 | + appoint_pick_keyid="{{appoint_pick_keyid}}" | |
382 | + sales_rules="{{sales_rules}}" pick="{{bn_pick}}" /> | |
381 | 383 | |
382 | 384 | |
383 | 385 | <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 --> | ... | ... |