Commit 54fc343d authored by zhangkuanguang's avatar zhangkuanguang

放心看

parents b5aa9cbd 41d68646
...@@ -16,6 +16,9 @@ class zsb_api_model extends MY_Model{ ...@@ -16,6 +16,9 @@ class zsb_api_model extends MY_Model{
'realCheckPay'=>'/zsbapi/real-manage/real-check-pay',//支付检查 'realCheckPay'=>'/zsbapi/real-manage/real-check-pay',//支付检查
'realHouseRemit'=>'/zsbapi/real-manage/real-house-remit',//放心看提现 'realHouseRemit'=>'/zsbapi/real-manage/real-house-remit',//放心看提现
'setRealHouse'=>'/zsbapi/real-manage/set-real-house',//放心看设置 'setRealHouse'=>'/zsbapi/real-manage/set-real-house',//放心看设置
'reportRecord'=>'/zsbapi/house/report-record',//举报记录
'reportRecordAppeal'=>'/zsbapi/house/report-record-appeal',//申诉记录展示
'realHouseAppeal'=>'/zsbapi/house/real-house-appeal',//房源举报申诉
); );
......
...@@ -213,6 +213,9 @@ class realHouse extends MY_Controller { ...@@ -213,6 +213,9 @@ class realHouse extends MY_Controller {
*/ */
public function reportRecord() public function reportRecord()
{ {
$model_param = $this->input->post();
$data_page = $model_param;
//经纪人参数 //经纪人参数
$info = $this->user_arr; $info = $this->user_arr;
$this->load->helper(array('form', 'url')); $this->load->helper(array('form', 'url'));
...@@ -221,9 +224,10 @@ class realHouse extends MY_Controller { ...@@ -221,9 +224,10 @@ class realHouse extends MY_Controller {
$data_page['typeList'] = array('99' => '选择举报原因') + array('0' => '房源不可看', '1' => '价格不准确', '2' => '图片不真实', '3' => '描述不真实'); $data_page['typeList'] = array('99' => '选择举报原因') + array('0' => '房源不可看', '1' => '价格不准确', '2' => '图片不真实', '3' => '描述不真实');
$data_page['reportList'] = array('99' => '选择处理结果') + array('1' => '举报成功(扣罚)', '2' => '举报失败', '0' => '待处理' ,'3'=> '举报成功(不扣罚)'); $data_page['reportList'] = array('99' => '选择处理结果') + array('1' => '举报成功(扣罚)', '2' => '举报失败', '0' => '待处理' ,'3'=> '举报成功(不扣罚)');
$data_page['appealList'] = array('99' => '选择申诉状态') + array('0' => '未申诉', '1' => '已申诉', '2' => '申诉成功', '3' => '申诉失败'); $data_page['appealList'] = array('99' => '选择申诉状态') + array('0' => '未申诉', '1' => '已申诉', '2' => '申诉成功', '3' => '申诉失败');
$searchData = array('uid' => $info['uid'], 'note' => 1); //$searchData = array('uid' => $info['uid'], 'note' => 1);
//获取参数 //获取参数
if (!empty($_POST)) { /*if (!empty($_POST)) {
$data_page['search'] = $this->input->post('search', true); $data_page['search'] = $this->input->post('search', true);
$data_page['keyword'] = $this->input->post('keyword', true); $data_page['keyword'] = $this->input->post('keyword', true);
$data_page['type'] = $this->input->post('type', true); $data_page['type'] = $this->input->post('type', true);
...@@ -242,13 +246,21 @@ class realHouse extends MY_Controller { ...@@ -242,13 +246,21 @@ class realHouse extends MY_Controller {
if ( (!empty($data_page['appeal']) || $data_page['appeal'] == '0') && $data_page['appeal'] != 99) { if ( (!empty($data_page['appeal']) || $data_page['appeal'] == '0') && $data_page['appeal'] != 99) {
$searchData['appeal'] = intval($data_page['appeal']); $searchData['appeal'] = intval($data_page['appeal']);
} }
} }*/
//分页参数 //分页参数
$page = $this->input->post( 'page' , TRUE); $page = $this->input->post( 'page' , TRUE);
$page = (isset($page)&& intval($page) > 0) ? intval($page) : 1; $page = (isset($page)&& intval($page) > 0) ? intval($page) : 1;
$this->_init_pagination($page); $this->_init_pagination($page);
$this->_total_count = $this->real_house_model->getReportCount($searchData);
$reportData = $this->real_house_model->getReport($searchData, $this->_offset, $this->_limit); $model_param['page'] = $page;
$model_param['limit'] = $this->_limit;
$this->load->model('zsb_api_model');
$resReportRecord = $this->zsb_api_model->getRequrstData('reportRecord', $model_param);
$this->_total_count = $resReportRecord['data']['page_info']['total'];
//$this->_total_count = $this->real_house_model->getReportCount($searchData);
//$reportData = $this->real_house_model->getReport($searchData, $this->_offset, $this->_limit);
$pages = $this->_total_count > 0 ? ceil( $this->_total_count / $this->_limit ) : 0; $pages = $this->_total_count > 0 ? ceil( $this->_total_count / $this->_limit ) : 0;
//是否显示分页 //是否显示分页
$pagination = NULL; $pagination = NULL;
...@@ -256,7 +268,7 @@ class realHouse extends MY_Controller { ...@@ -256,7 +268,7 @@ class realHouse extends MY_Controller {
$pagination = helper_pagination( $this->_current_page , $pages , $this->_total_count ); $pagination = helper_pagination( $this->_current_page , $pages , $this->_total_count );
} }
$data_page['realHouseMoney'] = $this->real_house_model->getBrokerRealHouseMoney($this->user_arr['uid']); $data_page['realHouseMoney'] = $this->real_house_model->getBrokerRealHouseMoney($this->user_arr['uid']);
$data_page['reportData'] = $reportData; $data_page['reportData'] = $resReportRecord['data']['page_data'];
$data_page['page_title'] = '放心看管理-举报记录'; $data_page['page_title'] = '放心看管理-举报记录';
$data_page['css'] = load_css('zsb/css/v1.0/style1.css,zsb/css/v1.0/realhouse.css,zsb/css/v1.0/feedback.css'); $data_page['css'] = load_css('zsb/css/v1.0/style1.css,zsb/css/v1.0/realhouse.css,zsb/css/v1.0/feedback.css');
$data_page['js'] = load_js('common/js/swf/swfupload.js,zsb/js/v1.0/swfu.js,zsb/js/v1.0/handlers.js'); $data_page['js'] = load_js('common/js/swf/swfupload.js,zsb/js/v1.0/swfu.js,zsb/js/v1.0/handlers.js');
...@@ -272,8 +284,13 @@ class realHouse extends MY_Controller { ...@@ -272,8 +284,13 @@ class realHouse extends MY_Controller {
*/ */
public function appealAjax() public function appealAjax()
{ {
$tbl = $this->input->get( 'tbl' , TRUE); $model_param = $this->input->get();
$this->load->model('zsb_api_model');
$res = $this->zsb_api_model->getRequrstData('reportRecordAppeal', $model_param);
/*$tbl = $this->input->get( 'tbl' , TRUE);
$houseId = $this->input->get( 'houseId' , TRUE); $houseId = $this->input->get( 'houseId' , TRUE);
$searchData['uid'] = $this->user_arr['uid']; $searchData['uid'] = $this->user_arr['uid'];
$searchData['note'] = 1; $searchData['note'] = 1;
$searchData['rowid'] = intval($houseId); $searchData['rowid'] = intval($houseId);
...@@ -292,8 +309,9 @@ class realHouse extends MY_Controller { ...@@ -292,8 +309,9 @@ class realHouse extends MY_Controller {
$houseInfo = $this->sell_model->find_by_id(intval($houseId)); $houseInfo = $this->sell_model->find_by_id(intval($houseId));
$result['appealed'] = $houseInfo['is_true_visit'] > 0 ? 1 : 0; $result['appealed'] = $houseInfo['is_true_visit'] > 0 ? 1 : 0;
$result['status'] = 1; $result['status'] = 1;
$result['data'] = $data; $result['data'] = $data;*/
echo json_encode($result);exit;
echo json_encode($res['data']);exit;
} }
/** /**
...@@ -455,6 +473,14 @@ class realHouse extends MY_Controller { ...@@ -455,6 +473,14 @@ class realHouse extends MY_Controller {
} }
public function appeal() public function appeal()
{ {
print_R($this->input->post());exit;
$model_param = $this->input->post();
$this->load->model('zsb_api_model');
$res = $this->zsb_api_model->getRequrstData('realHouseAppeal', $model_param);
print_R($res);exit;
$ids = $this->input->post( 'ids' , TRUE); $ids = $this->input->post( 'ids' , TRUE);
$images = $this->input->post( 'p_filename' , TRUE); $images = $this->input->post( 'p_filename' , TRUE);
$reason = $this->input->post( 'reason' , TRUE); $reason = $this->input->post( 'reason' , TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment