Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
e778ef57
Commit
e778ef57
authored
Nov 23, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页显示对内地址控制
parent
c97dd8b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
7 deletions
+52
-7
Report.php
application/api_broker/controller/Report.php
+3
-2
Shop.php
application/api_broker/controller/Shop.php
+43
-0
route.php
application/route.php
+6
-5
No files found.
application/api_broker/controller/Report.php
View file @
e778ef57
...
@@ -39,6 +39,9 @@ class Report extends Basic
...
@@ -39,6 +39,9 @@ class Report extends Basic
/**
/**
* 报备
* 报备
* @return \think\Response
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
report
()
public
function
report
()
{
{
...
@@ -58,8 +61,6 @@ class Report extends Basic
...
@@ -58,8 +61,6 @@ class Report extends Basic
"intro" => "123123123",//备注
"intro" => "123123123",//备注
"predict_see_time" => time(),//预计到看时间
"predict_see_time" => time(),//预计到看时间
);*/
);*/
//todo 检查经纪人状态 basic类做
$agent_id
=
$params
[
"report_agent_id"
];
$agent_id
=
$params
[
"report_agent_id"
];
$agent_phone
=
$params
[
"report_agent_phone"
];
$agent_phone
=
$params
[
"report_agent_phone"
];
...
...
application/api_broker/controller/Shop.php
View file @
e778ef57
...
@@ -300,6 +300,49 @@ class Shop extends Basic
...
@@ -300,6 +300,49 @@ class Shop extends Basic
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
}
/**
* 报备搜索商铺
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getShopListByReport
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/* $params = array(
"keyword" => "vv", //1,2 external_title ,3,4internal_title
"pageNo" => 1,
"pageSize" => 15
);*/
$conditions
=
[];
$field
=
"id,internal_title as title,internal_address as address"
;
if
(
empty
(
$params
[
"city"
])){
$conditions
[
"city"
]
=
trim
(
$this
->
city
);
}
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
if
(
isset
(
$params
[
'keyword'
])
&&
!
empty
(
$params
[
'keyword'
])
)
{
$conditions
[
'id|internal_title'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'keyword'
])
.
"%"
);
}
$order_
=
"status asc,id desc"
;
$conditions
[
'status'
]
=
array
(
'eq'
,
1
);
//只显示上架
$result
=
$this
->
gHousesModel
->
getHousesList
(
$pageNo
,
$pageSize
,
$order_
,
$field
,
$conditions
,
[]);
if
(
empty
(
$result
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
/**
/**
* 返回楼盘id
* 返回楼盘id
* @param $landlord_phone
* @param $landlord_phone
...
...
application/route.php
View file @
e778ef57
...
@@ -571,11 +571,12 @@ Route::group('broker', [
...
@@ -571,11 +571,12 @@ Route::group('broker', [
'all_user'
=>
[
'api_broker/Client/all_user'
,
[
'method'
=>
'post|get'
]],
//全部客户 朱伟
'all_user'
=>
[
'api_broker/Client/all_user'
,
[
'method'
=>
'post|get'
]],
//全部客户 朱伟
'inviteList'
=>
[
'api_broker/Client/inviteList'
,
[
'method'
=>
'get'
]],
//邀请记录
'inviteList'
=>
[
'api_broker/Client/inviteList'
,
[
'method'
=>
'get'
]],
//邀请记录
//商铺
//商铺
'getShopList'
=>
[
'api_broker/Shop/getShopList'
,
[
'method'
=>
'get|post'
]],
'getShopList'
=>
[
'api_broker/Shop/getShopList'
,
[
'method'
=>
'get|post'
]],
'getShopListByMap'
=>
[
'api_broker/MapFindHouse/getShopListByMap'
,
[
'method'
=>
'get|post'
]],
'getShopListByReport'
=>
[
'api_broker/Shop/getShopListByReport'
,
[
'method'
=>
'get|post'
]],
'getCityInfoByMap'
=>
[
'api_broker/MapFindHouse/getCityInfoByMap'
,
[
'method'
=>
'get|post'
]],
'getShopListByMap'
=>
[
'api_broker/MapFindHouse/getShopListByMap'
,
[
'method'
=>
'get|post'
]],
'getShopDetail'
=>
[
'api_broker/Shop/getShopDetail'
,
[
'method'
=>
'get'
]],
'getCityInfoByMap'
=>
[
'api_broker/MapFindHouse/getCityInfoByMap'
,
[
'method'
=>
'get|post'
]],
'addShopFollowUp'
=>
[
'api_broker/Shop/addShopFollowUp'
,
[
'method'
=>
'post'
]],
//新增商铺跟进记录
'getShopDetail'
=>
[
'api_broker/Shop/getShopDetail'
,
[
'method'
=>
'get'
]],
'addShopFollowUp'
=>
[
'api_broker/Shop/addShopFollowUp'
,
[
'method'
=>
'post'
]],
//新增商铺跟进记录
'reportList'
=>
[
'api_broker/Report/reportList'
,
[
'method'
=>
'get'
]],
'reportList'
=>
[
'api_broker/Report/reportList'
,
[
'method'
=>
'get'
]],
...
...
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