Authored by hf

code review by hf: fixes some bugs to help detail page

@@ -23,15 +23,17 @@ class Yohobuy @@ -23,15 +23,17 @@ class Yohobuy
23 // const SERVICE_URL = 'http://service.api.yohobuy.com/'; 23 // const SERVICE_URL = 'http://service.api.yohobuy.com/';
24 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 24 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 - // const API_URL = 'http://apih5.yoho.cn/'; 26 +// const API_URL = 'http://apih5.yoho.cn/';
27 // const API_URL2 = 'http://apih5.yoho.cn/'; 27 // const API_URL2 = 'http://apih5.yoho.cn/';
28 // const SERVICE_URL = 'http://serviceh5.yoho.cn/'; 28 // const SERVICE_URL = 'http://serviceh5.yoho.cn/';
29 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 29 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
  30 +// const API_OLD = 'http://api2.open.yohobuy.com/';
30 31
31 /* 测试环境 */ 32 /* 测试环境 */
32 const API_URL = 'http://testapi.yoho.cn:28078/'; 33 const API_URL = 'http://testapi.yoho.cn:28078/';
33 const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; 34 const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
34 const YOHOBUY_URL = 'http://www.yohobuy.com/'; 35 const YOHOBUY_URL = 'http://www.yohobuy.com/';
  36 + const API_OLD = 'http://test2.open.yohobuy.com/';
35 37
36 38
37 /** 39 /**
@@ -38,7 +38,7 @@ class HelpData @@ -38,7 +38,7 @@ class HelpData
38 $param['code'] = $code; 38 $param['code'] = $code;
39 $param['return_type'] = 'html'; 39 $param['return_type'] = 'html';
40 $param['client_secret'] = Sign::getSign($param); 40 $param['client_secret'] = Sign::getSign($param);
41 - return Yohobuy::post(Yohobuy::API_URL, $param, true); 41 + return Yohobuy::post(Yohobuy::API_OLD, $param, true);
42 } 42 }
43 43
44 44
@@ -640,16 +640,13 @@ class HomeController extends AbstractAction @@ -640,16 +640,13 @@ class HomeController extends AbstractAction
640 * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders) 640 * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders)
641 * 641 *
642 */ 642 */
643 -  
644 public function ordersAction() 643 public function ordersAction()
645 { 644 {
646 // 审判跳转登录页 645 // 审判跳转登录页
647 $this->auditJumpLogin(); 646 $this->auditJumpLogin();
648 647
649 - $backUrl = Helpers::url('/home');  
650 -  
651 $this->setTitle('我的订单'); 648 $this->setTitle('我的订单');
652 - $this->setNavHeader('我的订单', $backUrl); 649 + $this->setNavHeader('我的订单', Helpers::url('/home') );
653 650
654 $order = array(); 651 $order = array();
655 //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论 652 //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论
@@ -887,7 +884,7 @@ class HomeController extends AbstractAction @@ -887,7 +884,7 @@ class HomeController extends AbstractAction
887 $this->setTitle($caption); 884 $this->setTitle($caption);
888 $this->setNavHeader($caption); 885 $this->setNavHeader($caption);
889 886
890 - $this->_view->display('helpDetail', array( 887 + $this->_view->display('help-detail', array(
891 'iHelp' => Home\HelpModel::serviceDetail($code), 888 'iHelp' => Home\HelpModel::serviceDetail($code),
892 )); 889 ));
893 } 890 }
@@ -289,7 +289,6 @@ class IndexController extends AbstractAction @@ -289,7 +289,6 @@ class IndexController extends AbstractAction
289 $this->go(Helpers::url('/cart/index/index')); 289 $this->go(Helpers::url('/cart/index/index'));
290 } 290 }
291 291
292 -  
293 $cookieData = $this->getCookie('order-info', null); 292 $cookieData = $this->getCookie('order-info', null);
294 $uid = $this->getUid(true); 293 $uid = $this->getUid(true);
295 $data = array( 294 $data = array(