Showing
4 changed files
with
4 additions
and
3 deletions
@@ -310,7 +310,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() { | @@ -310,7 +310,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() { | ||
310 | 310 | ||
311 | if (2 === $chosed.length && 0 === $chosed.closest('.zero-stock').length) { | 311 | if (2 === $chosed.length && 0 === $chosed.closest('.zero-stock').length) { |
312 | productSku = $curSizeBlock.data('skuid'); | 312 | productSku = $curSizeBlock.data('skuid'); |
313 | - promotionId = $('[data-id="' + productSku + '"]').closest('.advance-block').data('promotion-id'); | 313 | + promotionId = $('#promotionId').val(); |
314 | if (confirming) { | 314 | if (confirming) { |
315 | return false; | 315 | return false; |
316 | } | 316 | } |
@@ -256,7 +256,6 @@ class CartModel | @@ -256,7 +256,6 @@ class CartModel | ||
256 | 256 | ||
257 | $product = CartData::giftProductData($skn, $promotionId); | 257 | $product = CartData::giftProductData($skn, $promotionId); |
258 | if (isset($product['code']) && $product['code'] === 200) { | 258 | if (isset($product['code']) && $product['code'] === 200) { |
259 | - $result['code'] = 200; | ||
260 | $result['data'] = self::procGoodsDetail($product['data']); | 259 | $result['data'] = self::procGoodsDetail($product['data']); |
261 | } | 260 | } |
262 | 261 |
@@ -216,6 +216,7 @@ class IndexController extends AbstractAction | @@ -216,6 +216,7 @@ class IndexController extends AbstractAction | ||
216 | } | 216 | } |
217 | 217 | ||
218 | $this->_view->display('gift-info', array( | 218 | $this->_view->display('gift-info', array( |
219 | + 'promotionId' => $promotionId, | ||
219 | 'cartInfo' => $result['data'] | 220 | 'cartInfo' => $result['data'] |
220 | )); | 221 | )); |
221 | } | 222 | } |
-
Please register or login to post a comment