Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
4 additions
and
5 deletions
@@ -487,18 +487,17 @@ class HomeController extends AbstractAction | @@ -487,18 +487,17 @@ class HomeController extends AbstractAction | ||
487 | //调用模型层getOrder方法获得并处理数据 | 487 | //调用模型层getOrder方法获得并处理数据 |
488 | $data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); | 488 | $data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); |
489 | //如果没有订单数据,就给一个随便逛逛链接 | 489 | //如果没有订单数据,就给一个随便逛逛链接 |
490 | - //print_r($data); | ||
491 | $order = array(); | 490 | $order = array(); |
492 | if (!empty($data)) { | 491 | if (!empty($data)) { |
493 | $order['orders'] = $data; | 492 | $order['orders'] = $data; |
493 | + $order['orderPage'] = true; | ||
494 | } else { | 494 | } else { |
495 | $order['walkwayUrl'] = 'http://www.baidu.com'; | 495 | $order['walkwayUrl'] = 'http://www.baidu.com'; |
496 | + $order['orderPage'] = true; | ||
496 | } | 497 | } |
498 | + print_r($order); | ||
497 | //渲染模板 | 499 | //渲染模板 |
498 | - $this->_view->display('orderContent', array( | ||
499 | - 'order' => $order, | ||
500 | - 'orderPage' => true, | ||
501 | - )); | 500 | + $this->_view->display('order-content',$order); |
502 | } | 501 | } |
503 | 502 | ||
504 | /* | 503 | /* |
-
Please register or login to post a comment