Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
11 additions
and
8 deletions
@@ -454,18 +454,22 @@ class HomeController extends AbstractAction | @@ -454,18 +454,22 @@ class HomeController extends AbstractAction | ||
454 | /* | 454 | /* |
455 | * 我的订单页面 | 455 | * 我的订单页面 |
456 | */ | 456 | */ |
457 | - public function orderAction(){ | ||
458 | - $type = $this -> get('type',1); | 457 | + |
458 | + public function orderAction() { | ||
459 | + //获得type值 | ||
460 | + $type = $this->get('type', 1); | ||
461 | + $this->setTitle('我的订单'); | ||
462 | + $this->setNavHeader('我的订单'); | ||
459 | $data = OrderModel::getNavs($type); | 463 | $data = OrderModel::getNavs($type); |
460 | - if(!empty($data)){ | 464 | + if (!empty($data)) { |
461 | $order['navs'] = $data; | 465 | $order['navs'] = $data; |
462 | } | 466 | } |
463 | $this->_view->display('order', array( | 467 | $this->_view->display('order', array( |
464 | - 'order' => $order | 468 | + 'order' => $order, |
469 | + 'pageFooter' => true | ||
465 | )); | 470 | )); |
466 | } | 471 | } |
467 | 472 | ||
468 | - | ||
469 | //ajax请求订单页面 | 473 | //ajax请求订单页面 |
470 | public function getOrderAction() { | 474 | public function getOrderAction() { |
471 | //判断是不是ajax请求 | 475 | //判断是不是ajax请求 |
@@ -542,6 +546,7 @@ class HomeController extends AbstractAction | @@ -542,6 +546,7 @@ class HomeController extends AbstractAction | ||
542 | } | 546 | } |
543 | } | 547 | } |
544 | 548 | ||
549 | + | ||
545 | /** | 550 | /** |
546 | * 订单详情页 | 551 | * 订单详情页 |
547 | */ | 552 | */ |
@@ -554,9 +559,7 @@ class HomeController extends AbstractAction | @@ -554,9 +559,7 @@ class HomeController extends AbstractAction | ||
554 | 'orderStatus' => '订单取消', | 559 | 'orderStatus' => '订单取消', |
555 | 'orderNum' => '418358063', | 560 | 'orderNum' => '418358063', |
556 | 'orderTime' => '2014-03-10 17:25:10', | 561 | 'orderTime' => '2014-03-10 17:25:10', |
557 | - | ||
558 | 'orderCancel' => true, | 562 | 'orderCancel' => true, |
559 | - | ||
560 | 'goods' => array( | 563 | 'goods' => array( |
561 | array( | 564 | array( |
562 | 'id' => 1, | 565 | 'id' => 1, |
@@ -578,7 +581,6 @@ class HomeController extends AbstractAction | @@ -578,7 +581,6 @@ class HomeController extends AbstractAction | ||
578 | 'count' => '1' | 581 | 'count' => '1' |
579 | ) | 582 | ) |
580 | ), | 583 | ), |
581 | - | ||
582 | 'sumPrice' => 799, | 584 | 'sumPrice' => 799, |
583 | 'salePrice' => 80, | 585 | 'salePrice' => 80, |
584 | 'freight' => 5, | 586 | 'freight' => 5, |
@@ -588,4 +590,5 @@ class HomeController extends AbstractAction | @@ -588,4 +590,5 @@ class HomeController extends AbstractAction | ||
588 | ); | 590 | ); |
589 | $this->_view->display('order-detail', array('orderDetail' => $data, 'orderDetailPage' => true)); | 591 | $this->_view->display('order-detail', array('orderDetail' => $data, 'orderDetailPage' => true)); |
590 | } | 592 | } |
593 | + | ||
591 | } | 594 | } |
-
Please register or login to post a comment