Authored by biao

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

1 -<div class="shopping-cart-good clearfix" data-id="{{id}}"> 1 +<div class="shopping-cart-good clearfix" data-id="{{id}}" data-skn="{{skn}}">
2 {{#if inValid}} 2 {{#if inValid}}
3 <span class="few-tag-expire">失效</span> 3 <span class="few-tag-expire">失效</span>
4 {{/if}} 4 {{/if}}
@@ -224,8 +224,7 @@ class CartModel @@ -224,8 +224,7 @@ class CartModel
224 224
225 $product = CartData::cartProductData($uid, $skn); 225 $product = CartData::cartProductData($uid, $skn);
226 if (isset($product['code']) && $product['code'] === 200) { 226 if (isset($product['code']) && $product['code'] === 200) {
227 - $result['code'] = 200;  
228 - $result['data'] = self::procGoodsDetail($product['data'], $num); 227 + $result = self::procGoodsDetail($product['data'], $num);
229 } 228 }
230 229
231 return $result; 230 return $result;
@@ -244,7 +243,7 @@ class CartModel @@ -244,7 +243,7 @@ class CartModel
244 243
245 $product = CartData::giftProductData($skn, $promotionId); 244 $product = CartData::giftProductData($skn, $promotionId);
246 if (isset($product['code']) && $product['code'] === 200) { 245 if (isset($product['code']) && $product['code'] === 200) {
247 - $result['data'] = self::procGoodsDetail($product['data']); 246 + $result = self::procGoodsDetail($product['data']);
248 } 247 }
249 248
250 return $result; 249 return $result;
@@ -195,7 +195,9 @@ class IndexController extends AbstractAction @@ -195,7 +195,9 @@ class IndexController extends AbstractAction
195 $result['num'] = $num; 195 $result['num'] = $num;
196 } 196 }
197 197
198 - $this->echoJson($result); 198 + $this->_view->display('gift-info', array(
  199 + 'cartInfo' => $result
  200 + ));
199 } 201 }
200 202
201 // /* 203 // /*
@@ -223,7 +225,7 @@ class IndexController extends AbstractAction @@ -223,7 +225,7 @@ class IndexController extends AbstractAction
223 225
224 $this->_view->display('gift-info', array( 226 $this->_view->display('gift-info', array(
225 'promotionId' => $promotionId, 227 'promotionId' => $promotionId,
226 - 'cartInfo' => $result['data'] 228 + 'cartInfo' => $result
227 )); 229 ));
228 } 230 }
229 231