|
@@ -835,17 +835,24 @@ class HomeController extends AbstractAction |
|
@@ -835,17 +835,24 @@ class HomeController extends AbstractAction |
835
|
// 审判跳转登录页
|
835
|
// 审判跳转登录页
|
836
|
$this->auditJumpLogin();
|
836
|
$this->auditJumpLogin();
|
837
|
|
837
|
|
|
|
838
|
+ /* 判断订单号是否传 */
|
838
|
$orderCode = $this->get('order_code');
|
839
|
$orderCode = $this->get('order_code');
|
839
|
if (empty($orderCode)) {
|
840
|
if (empty($orderCode)) {
|
840
|
$this->error();
|
841
|
$this->error();
|
841
|
}
|
842
|
}
|
842
|
|
843
|
|
|
|
844
|
+ /* 订单信息不存在 */
|
|
|
845
|
+ $orderDetail = OrderModel::orderDetail($orderCode, $this->_uid, $this->_usession);
|
|
|
846
|
+ if (empty($orderDetail)) {
|
|
|
847
|
+ $this->error();
|
|
|
848
|
+ }
|
|
|
849
|
+
|
843
|
$this->setTitle('订单详情');
|
850
|
$this->setTitle('订单详情');
|
844
|
$this->setNavHeader('订单详情');
|
851
|
$this->setNavHeader('订单详情');
|
845
|
|
852
|
|
846
|
$this->_view->display('order-detail', array(
|
853
|
$this->_view->display('order-detail', array(
|
847
|
'orderDetailPage' => true,
|
854
|
'orderDetailPage' => true,
|
848
|
- 'orderDetail' => OrderModel::orderDetail($orderCode, $this->_uid, $this->_usession),
|
855
|
+ 'orderDetail' => $orderDetail,
|
849
|
));
|
856
|
));
|
850
|
}
|
857
|
}
|
851
|
|
858
|
|
|
@@ -854,15 +861,13 @@ class HomeController extends AbstractAction |
|
@@ -854,15 +861,13 @@ class HomeController extends AbstractAction |
854
|
*/
|
861
|
*/
|
855
|
public function helpAction()
|
862
|
public function helpAction()
|
856
|
{
|
863
|
{
|
857
|
- $service = Home\HelpModel::serviceInfo();
|
|
|
858
|
$this->setTitle('帮助中心');
|
864
|
$this->setTitle('帮助中心');
|
859
|
$this->setNavHeader('帮助中心');
|
865
|
$this->setNavHeader('帮助中心');
|
860
|
- $data = array(
|
|
|
861
|
- 'iHelp' =>$service,
|
|
|
862
|
- );
|
|
|
863
|
- $this->_view->display('i-help', $data);
|
|
|
864
|
- }
|
|
|
865
|
|
866
|
|
|
|
867
|
+ $this->_view->display('help', array(
|
|
|
868
|
+ 'iHelp' => Home\HelpModel::serviceInfo(),
|
|
|
869
|
+ ));
|
|
|
870
|
+ }
|
866
|
|
871
|
|
867
|
/**
|
872
|
/**
|
868
|
* 帮助中心列表详细信息
|
873
|
* 帮助中心列表详细信息
|
|
@@ -883,27 +888,24 @@ class HomeController extends AbstractAction |
|
@@ -883,27 +888,24 @@ class HomeController extends AbstractAction |
883
|
));
|
888
|
));
|
884
|
}
|
889
|
}
|
885
|
|
890
|
|
886
|
-
|
|
|
887
|
/**
|
891
|
/**
|
888
|
* YOHO币详情 新版
|
892
|
* YOHO币详情 新版
|
889
|
*/
|
893
|
*/
|
890
|
public function currencyDetailAction()
|
894
|
public function currencyDetailAction()
|
891
|
{
|
895
|
{
|
|
|
896
|
+ // 审判跳转登录页
|
|
|
897
|
+ $this->auditJumpLogin();
|
|
|
898
|
+
|
892
|
$this->setTitle('YOHO币');
|
899
|
$this->setTitle('YOHO币');
|
893
|
$this->setNavHeader('YOHO币', true, false);
|
900
|
$this->setNavHeader('YOHO币', true, false);
|
894
|
|
901
|
|
895
|
- $data['money'] = '0';
|
|
|
896
|
- $page = $this->post('page',1);
|
|
|
897
|
- $size = $this->post('size', 20);
|
|
|
898
|
- // $data = UserModel::getYohoCoinLists($this->_uid,$page,$size);
|
|
|
899
|
- $data = UserModel::getYohoCoinLists(3965746,$page,$size);
|
902
|
+ $data = UserModel::getYohoCoinLists($this->_uid, 0, 20);
|
900
|
$this->_view->display('currency-detail', array(
|
903
|
$this->_view->display('currency-detail', array(
|
901
|
'money' => $data['money'],
|
904
|
'money' => $data['money'],
|
902
|
'pageFooter' => true,
|
905
|
'pageFooter' => true,
|
903
|
'currencyDetail' => true,
|
906
|
'currencyDetail' => true,
|
904
|
'currencyDetailPage' => true
|
907
|
'currencyDetailPage' => true
|
905
|
));
|
908
|
));
|
906
|
-
|
|
|
907
|
}
|
909
|
}
|
908
|
|
910
|
|
909
|
/**
|
911
|
/**
|
|
@@ -911,18 +913,18 @@ class HomeController extends AbstractAction |
|
@@ -911,18 +913,18 @@ class HomeController extends AbstractAction |
911
|
*/
|
913
|
*/
|
912
|
public function ajaxCurrencyDetailAction()
|
914
|
public function ajaxCurrencyDetailAction()
|
913
|
{
|
915
|
{
|
914
|
- $data['list'] = array();
|
|
|
915
|
- $data['money'] = 0;
|
|
|
916
|
- $page = $this->post('page',1);
|
|
|
917
|
- $size = $this->post('size', 20);
|
|
|
918
|
- $data = UserModel::getYohoCoinLists($this->_uid,$page,$size);
|
|
|
919
|
- //$data = UserModel::getYohoCoinLists(3965746,$page,$size);
|
916
|
+ if ($this->isAjax()) {
|
|
|
917
|
+ $uid = $this->getUid();
|
|
|
918
|
+ $page = $this->post('page', 1);
|
|
|
919
|
+ $data = UserModel::getYohoCoinLists($uid, $page, 20);
|
920
|
$this->_view->display('ajax-currency-detail', array(
|
920
|
$this->_view->display('ajax-currency-detail', array(
|
921
|
'currency' => $data['list'],
|
921
|
'currency' => $data['list'],
|
922
|
'pageFooter' => true,
|
922
|
'pageFooter' => true,
|
923
|
'currencyDetailPage' => true
|
923
|
'currencyDetailPage' => true
|
924
|
));
|
924
|
));
|
925
|
-
|
925
|
+ } else {
|
|
|
926
|
+ echo ' ';
|
|
|
927
|
+ }
|
926
|
}
|
928
|
}
|
927
|
|
929
|
|
928
|
} |
930
|
} |