Authored by xuqi

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

framework @ 75bbc3b0
1 -Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -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,13 +537,14 @@ class HomeController extends AbstractAction @@ -535,13 +537,14 @@ 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 //渲染模板 543 //渲染模板
542 $this->_view->display('order', array( 544 $this->_view->display('order', array(
543 'order' => $order, 545 'order' => $order,
544 - 'orderPage' => true 546 + 'orderPage' => true,
  547 + 'pageFooter' => true
545 )); 548 ));
546 } 549 }
547 550
@@ -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;