Authored by xuqi

yoho coin

@@ -237,26 +237,14 @@ class HomeController extends AbstractAction @@ -237,26 +237,14 @@ class HomeController extends AbstractAction
237 * YOHO币 237 * YOHO币
238 */ 238 */
239 public function currencyAction() { 239 public function currencyAction() {
240 - // $uid = $this->getUid();  
241 - $this->setNavHeader('YOHO币', true, false); 240 + $this->setTitle('YOHO币');
  241 + $this->setNavHeader('优惠券', true, SITE_MAIN);
242 242
243 $uid = 967016; 243 $uid = 967016;
244 $currency = \Index\UserModel::getYohoCoinData($uid); 244 $currency = \Index\UserModel::getYohoCoinData($uid);
245 245
246 - $this->setTitle('优惠券');  
247 - $this->setNavHeader('优惠券', true, SITE_MAIN);  
248 - // $uid = $this->getUid();  
249 - $uid = 8826435;  
250 - $coupons = array(  
251 - 'couponsUrl' => array(  
252 - \Index\UserModel::getCouponData($uid, 0),  
253 - \Index\UserModel::getCouponData($uid, 1),  
254 - ),  
255 - 'couponsPage' => true  
256 - );  
257 -  
258 - print_r($coupons);  
259 - $this->_view->display('coupons', $coupons); 246 + $currency['pageFooter'] = true;
  247 + $this->_view->display('currency', $currency);
260 } 248 }
261 249
262 /** 250 /**