|
@@ -849,32 +849,31 @@ class HomeController extends AbstractAction |
|
@@ -849,32 +849,31 @@ class HomeController extends AbstractAction |
849
|
));
|
849
|
));
|
850
|
}
|
850
|
}
|
851
|
|
851
|
|
852
|
- /**
|
|
|
853
|
- * 帮助中心列表页
|
|
|
854
|
- */
|
852
|
+ /**
|
|
|
853
|
+ * 帮助中心列表页
|
|
|
854
|
+ */
|
855
|
public function helpAction()
|
855
|
public function helpAction()
|
856
|
- {
|
856
|
+ {
|
857
|
$service = Home\HelpModel::serviceInfo();
|
857
|
$service = Home\HelpModel::serviceInfo();
|
858
|
$this->setTitle('帮助中心');
|
858
|
$this->setTitle('帮助中心');
|
859
|
$this->setNavHeader('帮助中心');
|
859
|
$this->setNavHeader('帮助中心');
|
860
|
$data = array(
|
860
|
$data = array(
|
861
|
- 'iHelp' =>$service,
|
861
|
+ 'iHelp' => $service,
|
862
|
);
|
862
|
);
|
863
|
- $this->_view->display('i-help', $data);
|
863
|
+ $this->_view->display('help', $data);
|
864
|
}
|
864
|
}
|
865
|
|
865
|
|
866
|
-
|
|
|
867
|
/**
|
866
|
/**
|
868
|
* 帮助中心列表详细信息
|
867
|
* 帮助中心列表详细信息
|
869
|
*/
|
868
|
*/
|
870
|
- public function helpDetailAction()
|
869
|
+ public function helpDetailAction()
|
871
|
{
|
870
|
{
|
872
|
$caption = $this->get('caption', '帮助中心');
|
871
|
$caption = $this->get('caption', '帮助中心');
|
873
|
$code = $this->get('code', 0);
|
872
|
$code = $this->get('code', 0);
|
874
|
if (empty($code)) {
|
873
|
if (empty($code)) {
|
875
|
$this->error();
|
874
|
$this->error();
|
876
|
}
|
875
|
}
|
877
|
-
|
876
|
+
|
878
|
$this->setTitle($caption);
|
877
|
$this->setTitle($caption);
|
879
|
$this->setNavHeader($caption);
|
878
|
$this->setNavHeader($caption);
|
880
|
|
879
|
|
|
@@ -883,27 +882,24 @@ class HomeController extends AbstractAction |
|
@@ -883,27 +882,24 @@ class HomeController extends AbstractAction |
883
|
));
|
882
|
));
|
884
|
}
|
883
|
}
|
885
|
|
884
|
|
886
|
-
|
|
|
887
|
- /**
|
885
|
+ /**
|
888
|
* YOHO币详情 新版
|
886
|
* YOHO币详情 新版
|
889
|
*/
|
887
|
*/
|
890
|
public function currencyDetailAction()
|
888
|
public function currencyDetailAction()
|
891
|
{
|
889
|
{
|
|
|
890
|
+ // 审判跳转登录页
|
|
|
891
|
+ $this->auditJumpLogin();
|
|
|
892
|
+
|
892
|
$this->setTitle('YOHO币');
|
893
|
$this->setTitle('YOHO币');
|
893
|
$this->setNavHeader('YOHO币', true, false);
|
894
|
$this->setNavHeader('YOHO币', true, false);
|
894
|
|
895
|
|
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);
|
896
|
+ $data = UserModel::getYohoCoinLists($this->_uid, 0, 20);
|
900
|
$this->_view->display('currency-detail', array(
|
897
|
$this->_view->display('currency-detail', array(
|
901
|
'money' => $data['money'],
|
898
|
'money' => $data['money'],
|
902
|
'pageFooter' => true,
|
899
|
'pageFooter' => true,
|
903
|
'currencyDetail' => true,
|
900
|
'currencyDetail' => true,
|
904
|
'currencyDetailPage' => true
|
901
|
'currencyDetailPage' => true
|
905
|
));
|
902
|
));
|
906
|
-
|
|
|
907
|
}
|
903
|
}
|
908
|
|
904
|
|
909
|
/**
|
905
|
/**
|
|
@@ -911,18 +907,18 @@ class HomeController extends AbstractAction |
|
@@ -911,18 +907,18 @@ class HomeController extends AbstractAction |
911
|
*/
|
907
|
*/
|
912
|
public function ajaxCurrencyDetailAction()
|
908
|
public function ajaxCurrencyDetailAction()
|
913
|
{
|
909
|
{
|
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);
|
|
|
920
|
- $this->_view->display('ajax-currency-detail', array(
|
|
|
921
|
- 'currency' => $data['list'],
|
|
|
922
|
- 'pageFooter' => true,
|
|
|
923
|
- 'currencyDetailPage' => true
|
|
|
924
|
- ));
|
|
|
925
|
-
|
910
|
+ if ($this->isAjax()) {
|
|
|
911
|
+ $uid = $this->getUid();
|
|
|
912
|
+ $page = $this->post('page', 1);
|
|
|
913
|
+ $data = UserModel::getYohoCoinLists($uid, $page, 20);
|
|
|
914
|
+ $this->_view->display('ajax-currency-detail', array(
|
|
|
915
|
+ 'currency' => $data['list'],
|
|
|
916
|
+ 'pageFooter' => true,
|
|
|
917
|
+ 'currencyDetailPage' => true
|
|
|
918
|
+ ));
|
|
|
919
|
+ } else {
|
|
|
920
|
+ echo ' ';
|
|
|
921
|
+ }
|
926
|
}
|
922
|
}
|
927
|
|
923
|
|
928
|
} |
924
|
} |