Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
19 additions
and
16 deletions
@@ -341,9 +341,9 @@ class HomeController extends AbstractAction | @@ -341,9 +341,9 @@ class HomeController extends AbstractAction | ||
341 | * 意见反馈 | 341 | * 意见反馈 |
342 | */ | 342 | */ |
343 | public function suggestAction() { | 343 | public function suggestAction() { |
344 | - // 设置网站标题 | ||
345 | - $this->setTitle('意见反馈'); | ||
346 | - $this->setNavHeader('意见反馈', true, SITE_MAIN); | 344 | + // 设置网站标题 |
345 | + $this->setTitle('意见反馈'); | ||
346 | + $this->setNavHeader('意见反馈', true, SITE_MAIN); | ||
347 | 347 | ||
348 | $udid = $this->getUdid(); | 348 | $udid = $this->getUdid(); |
349 | $page = $this->get('page', 1); | 349 | $page = $this->get('page', 1); |
@@ -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 | - | ||
468 | - | 472 | + |
469 | //ajax请求订单页面 | 473 | //ajax请求订单页面 |
470 | public function getOrderAction() { | 474 | public function getOrderAction() { |
471 | //判断是不是ajax请求 | 475 | //判断是不是ajax请求 |
@@ -485,11 +489,11 @@ class HomeController extends AbstractAction | @@ -485,11 +489,11 @@ class HomeController extends AbstractAction | ||
485 | //如果没有订单数据,就给一个随便逛逛链接 | 489 | //如果没有订单数据,就给一个随便逛逛链接 |
486 | //print_r($data); | 490 | //print_r($data); |
487 | $order = array(); | 491 | $order = array(); |
488 | - if (!empty($data)) { | ||
489 | - $order['orders'] = $data; | ||
490 | - } else { | 492 | + if (!empty($data)) { |
493 | + $order['orders'] = $data; | ||
494 | + } else { | ||
491 | $order['walkwayUrl'] = 'http://www.baidu.com'; | 495 | $order['walkwayUrl'] = 'http://www.baidu.com'; |
492 | - } | 496 | + } |
493 | //渲染模板 | 497 | //渲染模板 |
494 | $this->_view->display('orderContent', array( | 498 | $this->_view->display('orderContent', array( |
495 | 'order' => $order, | 499 | 'order' => $order, |
@@ -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