Authored by 毕凯

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -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 }
@@ -67,4 +67,5 @@ @@ -67,4 +67,5 @@
67 </div> 67 </div>
68 </div> 68 </div>
69 </div> 69 </div>
70 -{{/cartInfo}}  
  70 +{{/cartInfo}}
  71 +<input id="promotionId" type="hidden" value="{{promotionId}}">
@@ -243,7 +243,6 @@ class CartModel @@ -243,7 +243,6 @@ class CartModel
243 243
244 $product = CartData::giftProductData($skn, $promotionId); 244 $product = CartData::giftProductData($skn, $promotionId);
245 if (isset($product['code']) && $product['code'] === 200) { 245 if (isset($product['code']) && $product['code'] === 200) {
246 - $result['code'] = 200;  
247 $result['data'] = self::procGoodsDetail($product['data']); 246 $result['data'] = self::procGoodsDetail($product['data']);
248 } 247 }
249 248
@@ -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 }