...
|
...
|
@@ -479,7 +479,7 @@ class HomeController extends AbstractAction |
|
|
|
|
|
|
|
|
//ajax请求订单页面
|
|
|
public function getorderAction() {
|
|
|
public function getOrderAction() {
|
|
|
//判断是不是ajax请求
|
|
|
if (!$this->isAjax()) {
|
|
|
$this->error();
|
...
|
...
|
@@ -492,8 +492,6 @@ 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);
|
|
|
//如果没有订单数据,就给一个随便逛逛链接
|
...
|
...
|
@@ -505,10 +503,9 @@ class HomeController extends AbstractAction |
|
|
$order['walkwayUrl'] = 'http://www.baidu.com';
|
|
|
}
|
|
|
//渲染模板
|
|
|
$this->_view->display('order', array(
|
|
|
$this->_view->display('orderContent', array(
|
|
|
'order' => $order,
|
|
|
'orderPage' => true,
|
|
|
'pageFooter' => true
|
|
|
));
|
|
|
}
|
|
|
|
...
|
...
|
|