...
|
...
|
@@ -26,7 +26,7 @@ class HomeController extends AbstractAction |
|
|
$this->setNavHeader('个人中心', true, SITE_MAIN);
|
|
|
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$uid = 8826435;
|
|
|
$data = \Index\UserModel::getUserProfileData($uid);
|
|
|
$data += \Index\UserModel::getInfoNumData($uid);
|
|
|
|
...
|
...
|
@@ -44,10 +44,17 @@ class HomeController extends AbstractAction |
|
|
/**
|
|
|
* 用户订单
|
|
|
*/
|
|
|
public function ordersAction() {
|
|
|
// $uid = $this->getUid();
|
|
|
// $type = $this->get('type', 1);
|
|
|
// $orders = \Index\UserModel::getUserOrderData(967016, $type);
|
|
|
public function ordersAction()
|
|
|
{
|
|
|
// 设置网站标题
|
|
|
$this->setTitle('我的订单');
|
|
|
$this->setNavHeader('我的订单', true, SITE_MAIN);
|
|
|
|
|
|
$uid = $this->getUid();
|
|
|
$uid = 8826435;
|
|
|
$type = $this->get('type', 1);
|
|
|
|
|
|
$order = \Index\UserModel::getUserOrderData($uid, $type);
|
|
|
|
|
|
$order = array(
|
|
|
'orders' => array(
|
...
|
...
|
@@ -83,7 +90,6 @@ class HomeController extends AbstractAction |
|
|
);
|
|
|
|
|
|
$this->_view->display('order', array('order' => $order, 'orderPage' => true));
|
|
|
// print_r($orders);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -380,7 +386,6 @@ class HomeController extends AbstractAction |
|
|
/*
|
|
|
* 会员特权查看页
|
|
|
*/
|
|
|
|
|
|
public function preferentialAction() {
|
|
|
//设置网站seo信息
|
|
|
$this->setTitle('会员等级');
|
...
|
...
|
@@ -397,7 +402,6 @@ class HomeController extends AbstractAction |
|
|
/*
|
|
|
* 我的订单页面
|
|
|
*/
|
|
|
|
|
|
public function orderAction() {
|
|
|
//获取基本参数:type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论
|
|
|
$type = $this->get('type', 1);
|
...
|
...
|
@@ -426,7 +430,6 @@ class HomeController extends AbstractAction |
|
|
/*
|
|
|
* 我的订单-处理ajax请求页面(切换订单状态)
|
|
|
*/
|
|
|
|
|
|
public function orderAjaxAction() {
|
|
|
|
|
|
//判断是不是ajax请求
|
...
|
...
|
|