modify fixes bug to my center
Showing
1 changed file
with
9 additions
and
10 deletions
@@ -417,7 +417,7 @@ class HomeController extends AbstractAction | @@ -417,7 +417,7 @@ class HomeController extends AbstractAction | ||
417 | $gender = Helpers::getGenderByCookie(); | 417 | $gender = Helpers::getGenderByCookie(); |
418 | $channel = Helpers::getChannelByCookie(); | 418 | $channel = Helpers::getChannelByCookie(); |
419 | $uid = $this->getUid(); | 419 | $uid = $this->getUid(); |
420 | - $data = GradeModel::getGrade($gender, $channel, $uid); | 420 | + $data = \Home\GradeModel::getGrade($gender, $channel, $uid); |
421 | $data['pageFooter'] = true; | 421 | $data['pageFooter'] = true; |
422 | $this->_view->display('vip-grade', $data); | 422 | $this->_view->display('vip-grade', $data); |
423 | } | 423 | } |
@@ -425,7 +425,6 @@ class HomeController extends AbstractAction | @@ -425,7 +425,6 @@ class HomeController extends AbstractAction | ||
425 | /* | 425 | /* |
426 | * 会员特权查看页 | 426 | * 会员特权查看页 |
427 | */ | 427 | */ |
428 | - | ||
429 | public function preferentialAction() | 428 | public function preferentialAction() |
430 | { | 429 | { |
431 | //设置网站seo信息 | 430 | //设置网站seo信息 |
@@ -435,22 +434,22 @@ class HomeController extends AbstractAction | @@ -435,22 +434,22 @@ class HomeController extends AbstractAction | ||
435 | 434 | ||
436 | $channel = Helpers::getChannelByCookie(); | 435 | $channel = Helpers::getChannelByCookie(); |
437 | $uid = $this->getUid(); | 436 | $uid = $this->getUid(); |
438 | - $data = GradeModel::getPreferential($channel, $uid); | 437 | + $data = \Home\GradeModel::getPreferential($channel, $uid); |
439 | $data['pageFooter'] = true; | 438 | $data['pageFooter'] = true; |
439 | + | ||
440 | $this->_view->display('privilege', $data); | 440 | $this->_view->display('privilege', $data); |
441 | } | 441 | } |
442 | 442 | ||
443 | /* | 443 | /* |
444 | * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders) | 444 | * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders) |
445 | */ | 445 | */ |
446 | - | ||
447 | public function orderAction() | 446 | public function orderAction() |
448 | { | 447 | { |
449 | //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。 | 448 | //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。 |
450 | $type = $this->get('type', 1); | 449 | $type = $this->get('type', 1); |
451 | $this->setTitle('我的订单'); | 450 | $this->setTitle('我的订单'); |
452 | $this->setNavHeader('我的订单'); | 451 | $this->setNavHeader('我的订单'); |
453 | - $data = OrderModel::getNavs($type); | 452 | + $data = \Home\OrderModel::getNavs($type); |
454 | if (!empty($data)) { | 453 | if (!empty($data)) { |
455 | $order['navs'] = $data; | 454 | $order['navs'] = $data; |
456 | } else { | 455 | } else { |
@@ -479,7 +478,7 @@ class HomeController extends AbstractAction | @@ -479,7 +478,7 @@ class HomeController extends AbstractAction | ||
479 | $yh_channel = $this->get('yh_channel', 1); | 478 | $yh_channel = $this->get('yh_channel', 1); |
480 | $uid = $this->getUid(); | 479 | $uid = $this->getUid(); |
481 | //调用模型层getOrder方法获得并处理数据 | 480 | //调用模型层getOrder方法获得并处理数据 |
482 | - $data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); | 481 | + $data = \Home\OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); |
483 | /* 如果取不到订单数据时,分两种情况: | 482 | /* 如果取不到订单数据时,分两种情况: |
484 | 1、page>1时,echo一个空格字符串到浏览器。 | 483 | 1、page>1时,echo一个空格字符串到浏览器。 |
485 | 2、page=1时,就给一个随便逛逛的链接。 | 484 | 2、page=1时,就给一个随便逛逛的链接。 |
@@ -516,7 +515,7 @@ class HomeController extends AbstractAction | @@ -516,7 +515,7 @@ class HomeController extends AbstractAction | ||
516 | $yh_channel = $this->get('yh_channel', 1); | 515 | $yh_channel = $this->get('yh_channel', 1); |
517 | $method = 'app.SpaceOrders.close'; | 516 | $method = 'app.SpaceOrders.close'; |
518 | //调用取消订单接口,返回订单取消状态 | 517 | //调用取消订单接口,返回订单取消状态 |
519 | - $data = OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method); | 518 | + $data = \Home\OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method); |
520 | //将取消状态返回至浏览器 | 519 | //将取消状态返回至浏览器 |
521 | $this->echoJson($data); | 520 | $this->echoJson($data); |
522 | } | 521 | } |
@@ -538,7 +537,7 @@ class HomeController extends AbstractAction | @@ -538,7 +537,7 @@ class HomeController extends AbstractAction | ||
538 | $yh_channel = $this->get('yh_channel', 1); | 537 | $yh_channel = $this->get('yh_channel', 1); |
539 | $method = 'app.SpaceOrders.delOrderByCode'; | 538 | $method = 'app.SpaceOrders.delOrderByCode'; |
540 | //调用接口删除订单,并返回订单删除状态 | 539 | //调用接口删除订单,并返回订单删除状态 |
541 | - $data = OrderData::deleteOrderData($order_code, $uid, $gender, $yh_channel, $method); | 540 | + $data = \Home\OrderData::deleteOrderData($order_code, $uid, $gender, $yh_channel, $method); |
542 | //将订单删除状态返回至浏览器 | 541 | //将订单删除状态返回至浏览器 |
543 | $this->echoJson($data); | 542 | $this->echoJson($data); |
544 | } | 543 | } |
@@ -551,7 +550,7 @@ class HomeController extends AbstractAction | @@ -551,7 +550,7 @@ class HomeController extends AbstractAction | ||
551 | { | 550 | { |
552 | $gender = Helpers::getGenderByCookie(); | 551 | $gender = Helpers::getGenderByCookie(); |
553 | $yh_channel = $this->get('yh_channel', 1); | 552 | $yh_channel = $this->get('yh_channel', 1); |
554 | - OrderModel::payment($gender, $yh_channel); | 553 | + \Home\OrderModel::payment($gender, $yh_channel); |
555 | } | 554 | } |
556 | 555 | ||
557 | /* | 556 | /* |
@@ -564,7 +563,7 @@ class HomeController extends AbstractAction | @@ -564,7 +563,7 @@ class HomeController extends AbstractAction | ||
564 | $gender = Helpers::getGenderByCookie(); | 563 | $gender = Helpers::getGenderByCookie(); |
565 | $yh_channel = $this->get('yh_channel', 1); | 564 | $yh_channel = $this->get('yh_channel', 1); |
566 | //调用接口获取随便逛逛url地址,并return数据 | 565 | //调用接口获取随便逛逛url地址,并return数据 |
567 | - $data = OrderModel::stroll($gender, $yh_channel); | 566 | + $data = \Home\OrderModel::stroll($gender, $yh_channel); |
568 | return $data; | 567 | return $data; |
569 | } | 568 | } |
570 | 569 |
-
Please register or login to post a comment