Authored by xiaowei

add onlineservice foot

@@ -31,7 +31,7 @@ class HomeController extends AbstractAction @@ -31,7 +31,7 @@ class HomeController extends AbstractAction
31 if (!$uid) { 31 if (!$uid) {
32 $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true); 32 $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
33 } 33 }
34 - 34 +
35 $action = $this->getRequest()->getActionName(); 35 $action = $this->getRequest()->getActionName();
36 if (!$uid && $action !== 'index') { 36 if (!$uid && $action !== 'index') {
37 $this->go(Helpers::url('/signin.html')); 37 $this->go(Helpers::url('/signin.html'));
@@ -64,25 +64,25 @@ class HomeController extends AbstractAction @@ -64,25 +64,25 @@ class HomeController extends AbstractAction
64 $this->_view->display('index', $data); 64 $this->_view->display('index', $data);
65 } 65 }
66 66
67 - /**  
68 - * 为您优选  
69 - */  
70 - public function preferenceAction()  
71 - {  
72 - $result = array(); 67 + /**
  68 + * 为您优选
  69 + */
  70 + public function preferenceAction()
  71 + {
  72 + $result = array();
73 73
74 - if ($this->isAjax()) {  
75 - // 优选新品数据  
76 - $channel = Helpers::getChannelByCookie();  
77 - $result = UserModel::getPreferenceData($channel);  
78 - } 74 + if ($this->isAjax()) {
  75 + // 优选新品数据
  76 + $channel = Helpers::getChannelByCookie();
  77 + $result = UserModel::getPreferenceData($channel);
  78 + }
79 79
80 - if (empty($result)) {  
81 - echo ' ';  
82 - } else {  
83 - $this->_view->display('recommend-content', $result);  
84 - }  
85 - } 80 + if (empty($result)) {
  81 + echo ' ';
  82 + } else {
  83 + $this->_view->display('recommend-content', $result);
  84 + }
  85 + }
86 86
87 /** 87 /**
88 * 用户收藏的商品 88 * 用户收藏的商品
@@ -147,9 +147,9 @@ class HomeController extends AbstractAction @@ -147,9 +147,9 @@ class HomeController extends AbstractAction
147 147
148 if ($this->isAjax()) { 148 if ($this->isAjax()) {
149 $uid = $this->getUid(); 149 $uid = $this->getUid();
150 - $udid = $this->getUdid();  
151 - $page = $this->get('page', 1);  
152 - $limit = $this->get('limit', 100); 150 + $udid = $this->getUdid();
  151 + $page = $this->get('page', 1);
  152 + $limit = $this->get('limit', 100);
153 153
154 $result = UserModel::browserRecord($uid, $udid, $page, $limit); 154 $result = UserModel::browserRecord($uid, $udid, $page, $limit);
155 } 155 }
@@ -310,7 +310,7 @@ class HomeController extends AbstractAction @@ -310,7 +310,7 @@ class HomeController extends AbstractAction
310 } 310 }
311 } 311 }
312 312
313 - /** 313 + /**
314 * 在线客服 314 * 在线客服
315 */ 315 */
316 public function onlineServiceAction() 316 public function onlineServiceAction()
@@ -323,7 +323,7 @@ class HomeController extends AbstractAction @@ -323,7 +323,7 @@ class HomeController extends AbstractAction
323 323
324 $this->_view->display('online-service', array( 324 $this->_view->display('online-service', array(
325 'onlineServicePage' => true, 325 'onlineServicePage' => true,
326 - // 'pageFooter' => true, 326 + 'pageFooter' => true,
327 'service' => $service 327 'service' => $service
328 )); 328 ));
329 } 329 }
@@ -469,14 +469,13 @@ class HomeController extends AbstractAction @@ -469,14 +469,13 @@ class HomeController extends AbstractAction
469 $uid = $this->getUid(); 469 $uid = $this->getUid();
470 $data = GradeModel::getGrade($gender, $channel, $uid); 470 $data = GradeModel::getGrade($gender, $channel, $uid);
471 $data['pageFooter'] = true; 471 $data['pageFooter'] = true;
472 - 472 +
473 $this->_view->display('vip-grade', $data); 473 $this->_view->display('vip-grade', $data);
474 } 474 }
475 475
476 /* 476 /*
477 * 会员特权查看页 477 * 会员特权查看页
478 */ 478 */
479 -  
480 public function preferentialAction() 479 public function preferentialAction()
481 { 480 {
482 //设置网站seo信息 481 //设置网站seo信息
@@ -495,7 +494,6 @@ class HomeController extends AbstractAction @@ -495,7 +494,6 @@ class HomeController extends AbstractAction
495 /* 494 /*
496 * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders) 495 * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders)
497 */ 496 */
498 -  
499 public function orderAction() 497 public function orderAction()
500 { 498 {
501 //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。 499 //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。
@@ -556,7 +554,6 @@ class HomeController extends AbstractAction @@ -556,7 +554,6 @@ class HomeController extends AbstractAction
556 /* 554 /*
557 * 我的订单-取消订单 555 * 我的订单-取消订单
558 */ 556 */
559 -  
560 public function cancelOrderAction() 557 public function cancelOrderAction()
561 { 558 {
562 //判断是不是ajax请求 559 //判断是不是ajax请求
@@ -577,7 +574,6 @@ class HomeController extends AbstractAction @@ -577,7 +574,6 @@ class HomeController extends AbstractAction
577 /* 574 /*
578 * 我的订单-删除订单 575 * 我的订单-删除订单
579 */ 576 */
580 -  
581 public function delOrderAction() 577 public function delOrderAction()
582 { 578 {
583 //判断是不是ajax请求 579 //判断是不是ajax请求
@@ -598,7 +594,6 @@ class HomeController extends AbstractAction @@ -598,7 +594,6 @@ class HomeController extends AbstractAction
598 /* 594 /*
599 * 我的订单-支付链接获取 595 * 我的订单-支付链接获取
600 */ 596 */
601 -  
602 private function paymentAction() 597 private function paymentAction()
603 { 598 {
604 $gender = Helpers::getGenderByCookie(); 599 $gender = Helpers::getGenderByCookie();
@@ -609,7 +604,6 @@ class HomeController extends AbstractAction @@ -609,7 +604,6 @@ class HomeController extends AbstractAction
609 /* 604 /*
610 * 我的订单-随便逛逛链接获取 605 * 我的订单-随便逛逛链接获取
611 */ 606 */
612 -  
613 private function strollAction() 607 private function strollAction()
614 { 608 {
615 //获取性别、频道数据 609 //获取性别、频道数据
@@ -668,25 +662,24 @@ class HomeController extends AbstractAction @@ -668,25 +662,24 @@ class HomeController extends AbstractAction
668 * 帮助列表页 662 * 帮助列表页
669 */ 663 */
670 private function IHelpAction() 664 private function IHelpAction()
671 - { 665 + {
672 $this->setTitle('帮助中心'); 666 $this->setTitle('帮助中心');
673 $this->setNavHeader('帮助中心'); 667 $this->setNavHeader('帮助中心');
674 $data = array( 668 $data = array(
675 'iHelp' => array( 669 'iHelp' => array(
676 - array('name' => '新用户注册', 'url' => 'http://m.dev.yohobuy.com/'),  
677 - array('name' => '交款须知', 'url' => 'http://m.dev.yohobuy.com/'),  
678 - array('name' => '服务条款', 'url' => 'http://m.dev.yohobuy.com/'),  
679 - array('name' => '网站订购流程', 'url' => 'http://m.dev.yohobuy.com/'),  
680 - array('name' => '会员登录', 'url' => 'http://m.dev.yohobuy.com/'),  
681 - array('name' => '网站订单修改', 'url' => 'http://m.dev.yohobuy.com/'),  
682 - array('name' => 'YOHO币', 'url' => 'http://m.dev.yohobuy.com/'),  
683 - array('name' => '常见问题', 'url' => 'http://m.dev.yohobuy.com/'),  
684 - array('name' => '支付方式', 'url' => 'http://m.dev.yohobuy.com/'),  
685 - array('name' => '发票制度说明', 'url' => 'http://m.dev.yohobuy.com/'),  
686 - array('name' => '配送时间', 'url' => 'http://m.dev.yohobuy.com/') 670 + array('name' => '新用户注册','url' => 'http://m.dev.yohobuy.com/' ),
  671 + array('name' => '交款须知' ,'url' => 'http://m.dev.yohobuy.com/'),
  672 + array('name' => '服务条款' ,'url' => 'http://m.dev.yohobuy.com/'),
  673 + array('name' => '网站订购流程' ,'url' => 'http://m.dev.yohobuy.com/'),
  674 + array('name' => '会员登录' ,'url' => 'http://m.dev.yohobuy.com/'),
  675 + array('name' => '网站订单修改' ,'url' => 'http://m.dev.yohobuy.com/'),
  676 + array('name' => 'YOHO币' ,'url' => 'http://m.dev.yohobuy.com/'),
  677 + array('name' => '常见问题' ,'url' => 'http://m.dev.yohobuy.com/'),
  678 + array('name' => '支付方式' ,'url' => 'http://m.dev.yohobuy.com/'),
  679 + array('name' => '发票制度说明' ,'url' => 'http://m.dev.yohobuy.com/'),
  680 + array('name' => '配送时间' ,'url' => 'http://m.dev.yohobuy.com/')
687 ) 681 )
688 ); 682 );
689 $this->_view->display('i-help', $data); 683 $this->_view->display('i-help', $data);
690 } 684 }
691 -  
692 -} 685 +}