...
|
...
|
@@ -237,26 +237,14 @@ class HomeController extends AbstractAction |
|
|
* YOHO币
|
|
|
*/
|
|
|
public function currencyAction() {
|
|
|
// $uid = $this->getUid();
|
|
|
$this->setTitle('YOHO币');
|
|
|
$this->setNavHeader('YOHO币', true, false);
|
|
|
|
|
|
// $uid = $this->getUid();
|
|
|
$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);
|
|
|
$this->_view->display('currency', $currency);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -273,8 +261,8 @@ class HomeController extends AbstractAction |
|
|
'couponsUrl' => \Index\UserModel::getCouponData($uid, $status),
|
|
|
'couponsPage' => true
|
|
|
);
|
|
|
print_r($coupons);
|
|
|
|
|
|
print_r($coupons);
|
|
|
$this->_view->display('coupons', $coupons);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -413,31 +401,11 @@ class HomeController extends AbstractAction |
|
|
|
|
|
$suggest = \Index\UserModel::getSuggestData($udid, $page, $limit);
|
|
|
|
|
|
print_r($suggest);
|
|
|
$this->_view->display('suggest', array(
|
|
|
'suggestPage' => true, //加载js
|
|
|
'pageFooter' => true,
|
|
|
'suggest' => true,
|
|
|
'suggestContent' => array(
|
|
|
0 => array(
|
|
|
'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/12/06/0115bdfeb4a7dca4b4bfdf0e850f82f2a1.jpg?imageView/2/w/640/h/240',
|
|
|
'title' => '为什么手机不能退换货?',
|
|
|
'content' => 'YOHO!有货的退换货承诺:自您签收商品7日内可以退货,15日内可以换货,在商品吊牌、标签、包装完整,不影响二次销售的情况下,YOHO!有货将为您办理退换货服务。',
|
|
|
'good' => true,
|
|
|
'bad' => false),
|
|
|
1 => array(
|
|
|
'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/12/06/0115bdfeb4a7dca4b4bfdf0e850f82f2a1.jpg?imageView/2/w/640/h/240',
|
|
|
'title' => '为什么手机不能退换货?',
|
|
|
'content' => 'YOHO!有货的退换货承诺:自您签收商品7日内可以退货,15日内可以换货,在商品吊牌、标签、包装完整,不影响二次销售的情况下,YOHO!有货将为您办理退换货服务。',
|
|
|
'good' => false,
|
|
|
'bad' => true),
|
|
|
2 => array(
|
|
|
'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/12/06/0115bdfeb4a7dca4b4bfdf0e850f82f2a1.jpg?imageView/2/w/640/h/240',
|
|
|
'title' => '为什么手机不能退换货?',
|
|
|
'content' => 'YOHO!有货的退换货承诺:自您签收商品7日内可以退货,15日内可以换货,在商品吊牌、标签、包装完整,不影响二次销售的情况下,YOHO!有货将为您办理退换货服务。',
|
|
|
'good' => false,
|
|
|
'bad' => false)
|
|
|
)
|
|
|
'suggestContent' => $suggest
|
|
|
));
|
|
|
}
|
|
|
|
...
|
...
|
|