Showing
3 changed files
with
12 additions
and
5 deletions
framework @ 75bbc3b0
@@ -528,6 +528,8 @@ class HomeController extends AbstractAction | @@ -528,6 +528,8 @@ class HomeController extends AbstractAction | ||
528 | $yh_channel = $this->get('yh_channel', 1); | 528 | $yh_channel = $this->get('yh_channel', 1); |
529 | $uid = $this->getUid(); | 529 | $uid = $this->getUid(); |
530 | $uid = '7566245'; //测试用 | 530 | $uid = '7566245'; //测试用 |
531 | + $this -> setTitle('我的订单'); | ||
532 | + $this -> setNavHeader('我的订单'); | ||
531 | //调用模型层getOrder方法获得并处理数据 | 533 | //调用模型层getOrder方法获得并处理数据 |
532 | $data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); | 534 | $data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); |
533 | //如果没有订单数据,就给一个随便逛逛链接 | 535 | //如果没有订单数据,就给一个随便逛逛链接 |
@@ -535,12 +537,13 @@ class HomeController extends AbstractAction | @@ -535,12 +537,13 @@ class HomeController extends AbstractAction | ||
535 | if (!empty($data)) { | 537 | if (!empty($data)) { |
536 | $order['orders'] = $data; | 538 | $order['orders'] = $data; |
537 | } else { | 539 | } else { |
538 | - $order['walkwayUrl'] = 'http://www.baidu.com'; | 540 | + $order['walkwayUrl'] = 'http://www.baidu.com'; |
539 | } | 541 | } |
540 | //渲染模板 | 542 | //渲染模板 |
541 | $this->_view->display('order', array( | 543 | $this->_view->display('order', array( |
542 | 'order' => $order, | 544 | 'order' => $order, |
543 | - 'orderPage' => true | 545 | + 'orderPage' => true, |
546 | + 'pageFooter' => true | ||
544 | )); | 547 | )); |
545 | } | 548 | } |
546 | 549 |
@@ -57,9 +57,13 @@ class OrderModel | @@ -57,9 +57,13 @@ class OrderModel | ||
57 | case 0: | 57 | case 0: |
58 | $result[$key]['unpaid'] = true; | 58 | $result[$key]['unpaid'] = true; |
59 | break; | 59 | break; |
60 | - case 1 || 2 || 3 || 4 || 5: | 60 | + case 1: |
61 | + case 2: | ||
62 | + case 3: | ||
63 | + case 4: | ||
64 | + case 5: | ||
61 | $result[$key]['unreceived'] = true; | 65 | $result[$key]['unreceived'] = true; |
62 | - $resault[$key]['logisticsUrl'] = "暂无logisticsUrl数据"; | 66 | + $result[$key]['logisticsUrl'] = "暂无logisticsUrl数据"; |
63 | break; | 67 | break; |
64 | case 6: | 68 | case 6: |
65 | $result[$key]['completed'] = true; | 69 | $result[$key]['completed'] = true; |
-
Please register or login to post a comment