Authored by Rock Zhang

加价购和赠品页面添加cartType字段

@@ -149,7 +149,7 @@ class IndexController extends AbstractAction @@ -149,7 +149,7 @@ class IndexController extends AbstractAction
149 $shoppingKey = Helpers::getShoppingKeyByCookie(); 149 $shoppingKey = Helpers::getShoppingKeyByCookie();
150 $uid = $this->getUid(true); 150 $uid = $this->getUid(true);
151 $cartType = $this->get('cartType', 'ordinary'); 151 $cartType = $this->get('cartType', 'ordinary');
152 - $data = array('giftPage' => true); 152 + $data = array('giftPage' => true, 'cartType' => $cartType);
153 $data += CartModel::getCartData($uid, $shoppingKey, $cartType, true); 153 $data += CartModel::getCartData($uid, $shoppingKey, $cartType, true);
154 154
155 // 渲染模板 155 // 渲染模板
@@ -167,7 +167,7 @@ class IndexController extends AbstractAction @@ -167,7 +167,7 @@ class IndexController extends AbstractAction
167 $shoppingKey = Helpers::getShoppingKeyByCookie(); 167 $shoppingKey = Helpers::getShoppingKeyByCookie();
168 $uid = $this->getUid(true); 168 $uid = $this->getUid(true);
169 $cartType = $this->get('cartType', 'ordinary'); 169 $cartType = $this->get('cartType', 'ordinary');
170 - $data = array('advanceBuyPage' => true); 170 + $data = array('advanceBuyPage' => true, 'cartType' => $cartType);
171 $data += CartModel::getCartData($uid, $shoppingKey, $cartType, false, true); 171 $data += CartModel::getCartData($uid, $shoppingKey, $cartType, false, true);
172 172
173 // 渲染模板 173 // 渲染模板