Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
7 additions
and
8 deletions
@@ -188,7 +188,7 @@ class HomeController extends AbstractAction | @@ -188,7 +188,7 @@ class HomeController extends AbstractAction | ||
188 | */ | 188 | */ |
189 | public function currencyAction() { | 189 | public function currencyAction() { |
190 | $this->setTitle('YOHO币'); | 190 | $this->setTitle('YOHO币'); |
191 | - $this->setNavHeader('优惠券', true, SITE_MAIN); | 191 | + $this->setNavHeader('优惠券', true, SITE_MAIN); |
192 | 192 | ||
193 | $uid = 967016; | 193 | $uid = 967016; |
194 | $currency = \Index\UserModel::getYohoCoinData($uid); | 194 | $currency = \Index\UserModel::getYohoCoinData($uid); |
@@ -463,7 +463,11 @@ class HomeController extends AbstractAction | @@ -463,7 +463,11 @@ class HomeController extends AbstractAction | ||
463 | $data = OrderModel::getNavs($type); | 463 | $data = OrderModel::getNavs($type); |
464 | if (!empty($data)) { | 464 | if (!empty($data)) { |
465 | $order['navs'] = $data; | 465 | $order['navs'] = $data; |
466 | + $order['orderPage'] = true; | ||
467 | + } else { | ||
468 | + $this->error(); | ||
466 | } | 469 | } |
470 | + | ||
467 | $this->_view->display('order', array( | 471 | $this->_view->display('order', array( |
468 | 'order' => $order, | 472 | 'order' => $order, |
469 | 'pageFooter' => true | 473 | 'pageFooter' => true |
@@ -490,14 +494,11 @@ class HomeController extends AbstractAction | @@ -490,14 +494,11 @@ class HomeController extends AbstractAction | ||
490 | $order = array(); | 494 | $order = array(); |
491 | if (!empty($data)) { | 495 | if (!empty($data)) { |
492 | $order['orders'] = $data; | 496 | $order['orders'] = $data; |
493 | - $order['orderPage'] = true; | ||
494 | } else { | 497 | } else { |
495 | $order['walkwayUrl'] = 'http://www.baidu.com'; | 498 | $order['walkwayUrl'] = 'http://www.baidu.com'; |
496 | - $order['orderPage'] = true; | ||
497 | } | 499 | } |
498 | - print_r($order); | ||
499 | //渲染模板 | 500 | //渲染模板 |
500 | - $this->_view->display('order-content',$order); | 501 | + $this->_view->display('order-content', $order); |
501 | } | 502 | } |
502 | 503 | ||
503 | /* | 504 | /* |
@@ -545,12 +546,10 @@ class HomeController extends AbstractAction | @@ -545,12 +546,10 @@ class HomeController extends AbstractAction | ||
545 | } | 546 | } |
546 | } | 547 | } |
547 | 548 | ||
548 | - | ||
549 | /** | 549 | /** |
550 | * 订单详情页 | 550 | * 订单详情页 |
551 | */ | 551 | */ |
552 | - public function orderDetailAction() | ||
553 | - { | 552 | + public function orderDetailAction() { |
554 | $data = array( | 553 | $data = array( |
555 | 'name' => '毛毛莉Lydia', | 554 | 'name' => '毛毛莉Lydia', |
556 | 'phoneNum' => '18600001133', | 555 | 'phoneNum' => '18600001133', |
-
Please register or login to post a comment