Authored by xuqi

yoho coin

... ... @@ -237,26 +237,14 @@ class HomeController extends AbstractAction
* YOHO币
*/
public function currencyAction() {
// $uid = $this->getUid();
$this->setNavHeader('YOHO币', true, false);
$this->setTitle('YOHO币');
$this->setNavHeader('优惠券', true, SITE_MAIN);
$uid = 967016;
$currency = \Index\UserModel::getYohoCoinData($uid);
$this->setTitle('优惠券');
$this->setNavHeader('优惠券', true, SITE_MAIN);
// $uid = $this->getUid();
$uid = 8826435;
$coupons = array(
'couponsUrl' => array(
\Index\UserModel::getCouponData($uid, 0),
\Index\UserModel::getCouponData($uid, 1),
),
'couponsPage' => true
);
print_r($coupons);
$this->_view->display('coupons', $coupons);
$currency['pageFooter'] = true;
$this->_view->display('currency', $currency);
}
/**
... ...