Authored by Rock Zhang

加价购商品可以勾选

@@ -591,6 +591,7 @@ class Helpers @@ -591,6 +591,7 @@ class Helpers
591 } elseif ($value['goods_type'] == 'gift' && !isset($value['isAdvanceBuy'])) { 591 } elseif ($value['goods_type'] == 'gift' && !isset($value['isAdvanceBuy'])) {
592 $oneGoods['isGift'] = true; 592 $oneGoods['isGift'] = true;
593 } elseif ($value['goods_type'] == 'price_gift') { 593 } elseif ($value['goods_type'] == 'price_gift') {
  594 + $oneGoods['showCheckbox'] = true;
594 $oneGoods['isAdvanceBuy'] = true; 595 $oneGoods['isAdvanceBuy'] = true;
595 } else { 596 } else {
596 $oneGoods['showCheckbox'] = true; 597 $oneGoods['showCheckbox'] = true;
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <ul class="freebie-and-advance-buy"> 13 <ul class="freebie-and-advance-buy">
14 {{# freebie}} 14 {{# freebie}}
15 <li class="freebie"> 15 <li class="freebie">
16 - <a href="/cart/index/gift?cartType="> 16 + <a href="/cart/index/gift?cartType={{cartType}}">
17 <span class="iconfont">&#xe620;</span> 17 <span class="iconfont">&#xe620;</span>
18 赠品 18 赠品
19 <span class="count">{{count}}</span> 19 <span class="count">{{count}}</span>
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 {{/ freebie}} 23 {{/ freebie}}
24 {{#if advanceBuy}} 24 {{#if advanceBuy}}
25 <li class="advance-buy"> 25 <li class="advance-buy">
26 - <a href="/cart/index/advanceBuy?cartType="> 26 + <a href="/cart/index/advanceBuy?cartType={{cartType}}">
27 <span class="iconfont">&#xe61b;</span> 27 <span class="iconfont">&#xe61b;</span>
28 加价购 28 加价购
29 <span class="count">{{advanceBuyCount}}</span> 29 <span class="count">{{advanceBuyCount}}</span>