...
|
...
|
@@ -25,11 +25,10 @@ class ShoppingCartController extends AbstractAction |
|
|
'shoppingCartPage' => true,
|
|
|
'shoppingCart' => CartModel::getCartData($uid, $shoppingKey)
|
|
|
);
|
|
|
//print_r($data);
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 异步获取购物车数据
|
|
|
*/
|
...
|
...
|
@@ -136,47 +135,6 @@ class ShoppingCartController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 赠品页面
|
|
|
*/
|
|
|
public function giftAction()
|
|
|
{
|
|
|
$this->setTitle('赠品');
|
|
|
$this->setNavHeader('赠品');
|
|
|
|
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$uid = $this->getUid(true);
|
|
|
|
|
|
$data = array(
|
|
|
'shoppingCartPage' => true,
|
|
|
'shoppingCart' => CartModel::getCartData($uid, $shoppingKey, true)
|
|
|
);
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('gift-advance-good', $data);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 加价购页面
|
|
|
*/
|
|
|
public function advanceBuyAction()
|
|
|
{
|
|
|
$this->setTitle('加价购');
|
|
|
$this->setNavHeader('加价购');
|
|
|
|
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$uid = $this->getUid(true);
|
|
|
|
|
|
$data = array(
|
|
|
'shoppingCartPage' => true,
|
|
|
'shoppingCart' => CartModel::getCartData($uid, $shoppingKey, false, true)
|
|
|
);
|
|
|
print_r($data);
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('gift-advance-good', $data);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 获取购物车加价购商品数据
|
|
|
*/
|
|
|
public function giftinfoAction()
|
...
|
...
|
|