Authored by 郝肖肖

'低档赠品判断-match_gift_ids'

@@ -606,7 +606,10 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => { @@ -606,7 +606,10 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => {
606 ensureUrl: helpers.urlFormat('/cart/ensure'), 606 ensureUrl: helpers.urlFormat('/cart/ensure'),
607 607
608 // 免运费提示 608 // 免运费提示
609 - tips: _.get(ordCartData, 'shipping_cost_prompt.shipping_cost_tips', '') 609 + tips: _.get(ordCartData, 'shipping_cost_prompt.shipping_cost_tips', ''),
  610 +
  611 + // 低档赠品
  612 + matchGiftIds: _.get(ordCartData, 'match_gift_ids', []).join(',')
610 }; 613 };
611 614
612 let advStat = result.advanceCart.stat; 615 let advStat = result.advanceCart.stat;
@@ -195,6 +195,12 @@ @@ -195,6 +195,12 @@
195 {{/if}} 195 {{/if}}
196 </div> 196 </div>
197 {{/soldOutPools}} 197 {{/soldOutPools}}
  198 +
  199 + {{#if matchGiftIds}}
  200 + <div class="gift-sell-info hide" data-role="promotion-wrap" data-promotionid="{{matchGiftIds}}">
  201 + <span data-role="gift-resel-btn"></span>
  202 + </div>
  203 + {{/if}}
198 </div> 204 </div>
199 {{/ordinaryCart}} 205 {{/ordinaryCart}}
200 206