...
|
...
|
@@ -528,6 +528,8 @@ class HomeController extends AbstractAction |
|
|
$yh_channel = $this->get('yh_channel', 1);
|
|
|
$uid = $this->getUid();
|
|
|
$uid = '7566245'; //测试用
|
|
|
$this -> setTitle('我的订单');
|
|
|
$this -> setNavHeader('我的订单');
|
|
|
//调用模型层getOrder方法获得并处理数据
|
|
|
$data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid);
|
|
|
//如果没有订单数据,就给一个随便逛逛链接
|
...
|
...
|
@@ -535,12 +537,13 @@ class HomeController extends AbstractAction |
|
|
if (!empty($data)) {
|
|
|
$order['orders'] = $data;
|
|
|
} else {
|
|
|
$order['walkwayUrl'] = 'http://www.baidu.com';
|
|
|
$order['walkwayUrl'] = 'http://www.baidu.com';
|
|
|
}
|
|
|
//渲染模板
|
|
|
$this->_view->display('order', array(
|
|
|
'order' => $order,
|
|
|
'orderPage' => true
|
|
|
'orderPage' => true,
|
|
|
'pageFooter' => true
|
|
|
));
|
|
|
}
|
|
|
|
...
|
...
|
|