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,7 +1919,7 @@ Page({ | ||
1919 | storeId: os.stoid | 1919 | storeId: os.stoid |
1920 | } | 1920 | } |
1921 | if (sales_rules == 2) { | 1921 | if (sales_rules == 2) { |
1922 | - sto_req.storageNos = item.pickup_no | 1922 | + sto_req.storageNos = pick.pickup_no |
1923 | } else { | 1923 | } else { |
1924 | sto_req.storageIds = encodeURIComponent(this.data.appoint_pick_keyid) | 1924 | sto_req.storageIds = encodeURIComponent(this.data.appoint_pick_keyid) |
1925 | } | 1925 | } |
packageA/pages/prom_list/prom_list.wxml
@@ -92,7 +92,7 @@ | @@ -92,7 +92,7 @@ | ||
92 | <view style="clear: both"></view> | 92 | <view style="clear: both"></view> |
93 | <!-- 选择门店模块 --> | 93 | <!-- 选择门店模块 --> |
94 | <view class="flex-space-between address ai_end xc-width "> | 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 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> | 96 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
97 | <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> | 97 | <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> |
98 | 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} | 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,6 +173,8 @@ | ||
173 | } | 173 | } |
174 | .shop_name{ | 174 | .shop_name{ |
175 | margin-right: 10rpx; | 175 | margin-right: 10rpx; |
176 | + width: 350rpx; | ||
177 | + flex-shrink: 0; | ||
176 | } | 178 | } |
177 | .address{ | 179 | .address{ |
178 | width: 99%; | 180 | width: 99%; |
@@ -188,6 +190,8 @@ | @@ -188,6 +190,8 @@ | ||
188 | color: #999; | 190 | color: #999; |
189 | height: 38rpx; | 191 | height: 38rpx; |
190 | line-height: 38rpx; | 192 | line-height: 38rpx; |
193 | + position: relative; | ||
194 | + top: 5rpx; | ||
191 | } | 195 | } |
192 | .sto_v .title,.sto_v .stitle{ border-top: 1rpx solid #dedede;border-bottom: 1rpx solid #dedede; height: 78rpx; line-height: 78rpx;} | 196 | .sto_v .title,.sto_v .stitle{ border-top: 1rpx solid #dedede;border-bottom: 1rpx solid #dedede; height: 78rpx; line-height: 78rpx;} |
193 | .sto_v .title .tubiao,.sto_v .stitle .tubiao{width: 32rpx; height: 32rpx; margin-top: 23rpx;} | 197 | .sto_v .title .tubiao,.sto_v .stitle .tubiao{width: 32rpx; height: 32rpx; margin-top: 23rpx;} |
@@ -235,6 +239,7 @@ | @@ -235,6 +239,7 @@ | ||
235 | } | 239 | } |
236 | .address_name{ | 240 | .address_name{ |
237 | margin-right: 10rpx; | 241 | margin-right: 10rpx; |
242 | + width: 360rpx; | ||
238 | 243 | ||
239 | } | 244 | } |
240 | .address-val{ | 245 | .address-val{ |
pages/cart/cart2/cart2.js
@@ -140,7 +140,8 @@ Page({ | @@ -140,7 +140,8 @@ Page({ | ||
140 | cart_commission:0, | 140 | cart_commission:0, |
141 | 141 | ||
142 | //订单所有搭配购的 | 142 | //订单所有搭配购的 |
143 | - all_collocation_list:[] | 143 | + all_collocation_list:[], |
144 | + appoint_pick_keyid:'' | ||
144 | 145 | ||
145 | }, | 146 | }, |
146 | onLoad: function (t) { | 147 | onLoad: function (t) { |
pages/cart/cart2/cart2.wxml
@@ -110,7 +110,7 @@ | @@ -110,7 +110,7 @@ | ||
110 | 110 | ||
111 | <!-- 使用搭配 --> | 111 | <!-- 使用搭配 --> |
112 | <cart_collect_temp bind:childFun="select_coll" sales_rules="{{sales_rules}}" pick="{{item.pickup_id}}" | 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 | all_collocation_list="{{item.collocationList}}" /> | 114 | all_collocation_list="{{item.collocationList}}" /> |
115 | 115 | ||
116 | <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 --> | 116 | <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 --> |
@@ -377,7 +377,9 @@ | @@ -377,7 +377,9 @@ | ||
377 | </block> | 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 | <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 --> |