Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esf
fenzhan_zsb
Commits
54fc343d
Commit
54fc343d
authored
Dec 24, 2019
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Plain Diff
放心看
parents
b5aa9cbd
41d68646
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
9 deletions
+38
-9
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+3
-0
realHouse.php
new_admincp/applications/zsb/controllers/realHouse.php
+35
-9
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
54fc343d
...
...
@@ -16,6 +16,9 @@ class zsb_api_model extends MY_Model{
'realCheckPay'
=>
'/zsbapi/real-manage/real-check-pay'
,
//支付检查
'realHouseRemit'
=>
'/zsbapi/real-manage/real-house-remit'
,
//放心看提现
'setRealHouse'
=>
'/zsbapi/real-manage/set-real-house'
,
//放心看设置
'reportRecord'
=>
'/zsbapi/house/report-record'
,
//举报记录
'reportRecordAppeal'
=>
'/zsbapi/house/report-record-appeal'
,
//申诉记录展示
'realHouseAppeal'
=>
'/zsbapi/house/real-house-appeal'
,
//房源举报申诉
);
...
...
new_admincp/applications/zsb/controllers/realHouse.php
View file @
54fc343d
...
...
@@ -213,6 +213,9 @@ class realHouse extends MY_Controller {
*/
public
function
reportRecord
()
{
$model_param
=
$this
->
input
->
post
();
$data_page
=
$model_param
;
//经纪人参数
$info
=
$this
->
user_arr
;
$this
->
load
->
helper
(
array
(
'form'
,
'url'
));
...
...
@@ -221,9 +224,10 @@ class realHouse extends MY_Controller {
$data_page
[
'typeList'
]
=
array
(
'99'
=>
'选择举报原因'
)
+
array
(
'0'
=>
'房源不可看'
,
'1'
=>
'价格不准确'
,
'2'
=>
'图片不真实'
,
'3'
=>
'描述不真实'
);
$data_page
[
'reportList'
]
=
array
(
'99'
=>
'选择处理结果'
)
+
array
(
'1'
=>
'举报成功(扣罚)'
,
'2'
=>
'举报失败'
,
'0'
=>
'待处理'
,
'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['keyword'] = $this->input->post('keyword', true);
$data_page['type'] = $this->input->post('type', true);
...
...
@@ -242,13 +246,21 @@ class realHouse extends MY_Controller {
if ( (!empty($data_page['appeal']) || $data_page['appeal'] == '0') && $data_page['appeal'] != 99) {
$searchData['appeal'] = intval($data_page['appeal']);
}
}
}
*/
//分页参数
$page
=
$this
->
input
->
post
(
'page'
,
TRUE
);
$page
=
(
isset
(
$page
)
&&
intval
(
$page
)
>
0
)
?
intval
(
$page
)
:
1
;
$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
;
//是否显示分页
$pagination
=
NULL
;
...
...
@@ -256,7 +268,7 @@ class realHouse extends MY_Controller {
$pagination
=
helper_pagination
(
$this
->
_current_page
,
$pages
,
$this
->
_total_count
);
}
$data_page
[
'realHouseMoney'
]
=
$this
->
real_house_model
->
getBrokerRealHouseMoney
(
$this
->
user_arr
[
'uid'
]);
$data_page
[
'reportData'
]
=
$re
portData
;
$data_page
[
'reportData'
]
=
$re
sReportRecord
[
'data'
][
'page_data'
]
;
$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
[
'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 {
*/
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);
$searchData['uid'] = $this->user_arr['uid'];
$searchData['note'] = 1;
$searchData['rowid'] = intval($houseId);
...
...
@@ -292,8 +309,9 @@ class realHouse extends MY_Controller {
$houseInfo = $this->sell_model->find_by_id(intval($houseId));
$result['appealed'] = $houseInfo['is_true_visit'] > 0 ? 1 : 0;
$result['status'] = 1;
$result
[
'data'
]
=
$data
;
echo
json_encode
(
$result
);
exit
;
$result['data'] = $data;*/
echo
json_encode
(
$res
[
'data'
]);
exit
;
}
/**
...
...
@@ -455,6 +473,14 @@ class realHouse extends MY_Controller {
}
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
);
$images
=
$this
->
input
->
post
(
'p_filename'
,
TRUE
);
$reason
=
$this
->
input
->
post
(
'reason'
,
TRUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment