|
@@ -26,7 +26,7 @@ class HomeController extends AbstractAction |
|
@@ -26,7 +26,7 @@ class HomeController extends AbstractAction |
26
|
$this->setNavHeader('个人中心', true, SITE_MAIN);
|
26
|
$this->setNavHeader('个人中心', true, SITE_MAIN);
|
27
|
|
27
|
|
28
|
// $uid = $this->getUid();
|
28
|
// $uid = $this->getUid();
|
29
|
- $uid = 967016;
|
29
|
+ $uid = 8826435;
|
30
|
$data = \Index\UserModel::getUserProfileData($uid);
|
30
|
$data = \Index\UserModel::getUserProfileData($uid);
|
31
|
$data += \Index\UserModel::getInfoNumData($uid);
|
31
|
$data += \Index\UserModel::getInfoNumData($uid);
|
32
|
|
32
|
|
|
@@ -46,10 +46,15 @@ class HomeController extends AbstractAction |
|
@@ -46,10 +46,15 @@ class HomeController extends AbstractAction |
46
|
*/
|
46
|
*/
|
47
|
public function ordersAction()
|
47
|
public function ordersAction()
|
48
|
{
|
48
|
{
|
49
|
- // $uid = $this->getUid();
|
|
|
50
|
- // $type = $this->get('type', 1);
|
49
|
+ // 设置网站标题
|
|
|
50
|
+ $this->setTitle('我的订单');
|
|
|
51
|
+ $this->setNavHeader('我的订单', true, SITE_MAIN);
|
51
|
|
52
|
|
52
|
- // $orders = \Index\UserModel::getUserOrderData(967016, $type);
|
53
|
+ $uid = $this->getUid();
|
|
|
54
|
+ $uid = 8826435;
|
|
|
55
|
+ $type = $this->get('type', 1);
|
|
|
56
|
+
|
|
|
57
|
+ $order = \Index\UserModel::getUserOrderData($uid, $type);
|
53
|
|
58
|
|
54
|
$order = array(
|
59
|
$order = array(
|
55
|
'orders' => array(
|
60
|
'orders' => array(
|
|
@@ -85,7 +90,6 @@ class HomeController extends AbstractAction |
|
@@ -85,7 +90,6 @@ class HomeController extends AbstractAction |
85
|
);
|
90
|
);
|
86
|
|
91
|
|
87
|
$this->_view->display('order', array('order' => $order, 'orderPage' => true));
|
92
|
$this->_view->display('order', array('order' => $order, 'orderPage' => true));
|
88
|
- // print_r($orders);
|
|
|
89
|
}
|
93
|
}
|
90
|
|
94
|
|
91
|
/**
|
95
|
/**
|
|
@@ -380,7 +384,7 @@ class HomeController extends AbstractAction |
|
@@ -380,7 +384,7 @@ class HomeController extends AbstractAction |
380
|
$this->setTitle('会员等级');
|
384
|
$this->setTitle('会员等级');
|
381
|
//显示网站导航头部信息
|
385
|
//显示网站导航头部信息
|
382
|
$this->setNavHeader('会员等级');
|
386
|
$this->setNavHeader('会员等级');
|
383
|
-
|
387
|
+
|
384
|
$gender = Helpers::getGenderByCookie();
|
388
|
$gender = Helpers::getGenderByCookie();
|
385
|
$channel = Helpers::getChannelByCookie();
|
389
|
$channel = Helpers::getChannelByCookie();
|
386
|
$uid = $this -> getUid();
|
390
|
$uid = $this -> getUid();
|