Showing
1 changed file
with
42 additions
and
0 deletions
@@ -113,6 +113,48 @@ class ShoppingCartController extends AbstractAction | @@ -113,6 +113,48 @@ class ShoppingCartController extends AbstractAction | ||
113 | } | 113 | } |
114 | 114 | ||
115 | /* | 115 | /* |
116 | + * 赠品页面 | ||
117 | + */ | ||
118 | + public function giftAction() | ||
119 | + { | ||
120 | + $this->setTitle('赠品'); | ||
121 | + $this->setNavHeader('赠品'); | ||
122 | + | ||
123 | + $shoppingKey = Helpers::getShoppingKeyByCookie(); | ||
124 | + $uid = $this->getUid(true); | ||
125 | + | ||
126 | + $data = array( | ||
127 | + 'shoppingCartPage' => true, | ||
128 | + 'shoppingCart' => CartModel::getCartData($uid, $shoppingKey, true) | ||
129 | + ); | ||
130 | + print_r($data); | ||
131 | + | ||
132 | + // 渲染模板 | ||
133 | + $this->_view->display('gift-advance-good', $data); | ||
134 | + } | ||
135 | + | ||
136 | + /* | ||
137 | + * 加价购页面 | ||
138 | + */ | ||
139 | + public function advanceBuyAction() | ||
140 | + { | ||
141 | + $this->setTitle('加价购'); | ||
142 | + $this->setNavHeader('加价购'); | ||
143 | + | ||
144 | + $shoppingKey = Helpers::getShoppingKeyByCookie(); | ||
145 | + $uid = $this->getUid(true); | ||
146 | + | ||
147 | + $data = array( | ||
148 | + 'shoppingCartPage' => true, | ||
149 | + 'shoppingCart' => CartModel::getCartData($uid, $shoppingKey, false, true) | ||
150 | + ); | ||
151 | + print_r($data); | ||
152 | + | ||
153 | + // 渲染模板 | ||
154 | + $this->_view->display('gift-advance-good', $data); | ||
155 | + } | ||
156 | + | ||
157 | + /* | ||
116 | * 获取购物车商品数据 | 158 | * 获取购物车商品数据 |
117 | */ | 159 | */ |
118 | public function goodinfoAction() | 160 | public function goodinfoAction() |
-
Please register or login to post a comment