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
dec47f10
Commit
dec47f10
authored
May 30, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回客户搜索条件
parent
333e99ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
User.php
application/api_broker/controller/User.php
+52
-0
route.php
application/route.php
+5
-0
No files found.
application/api_broker/controller/User.php
0 → 100644
View file @
dec47f10
<?php
namespace
app\api_broker\controller
;
use
app\api_broker\extend\Basic
;
use
think\Request
;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/5/30
* Time : 16:49
* Intro:
*/
class
User
extends
Basic
{
public
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
}
/**
* 客户搜索条件
* @return \think\Response
*/
public
function
returnSearchCondition
()
{
$result
[
'industry_type'
]
=
array
(
'全部'
,
'轻餐饮'
,
'重餐饮'
,
'百货零售'
,
'服装'
,
'亲子教育'
,
'休闲娱乐'
);
//价格需求
$result
[
'price'
]
=
array
(
array
(
'id'
=>
'-1'
,
'value'
=>
'全部'
),
array
(
'id'
=>
'0'
,
'value'
=>
'3万以上'
),
array
(
'id'
=>
'1'
,
'value'
=>
'1万-3万'
),
array
(
'id'
=>
'2'
,
'value'
=>
'1万以下'
)
);
//面积
$result
[
'area'
]
=
array
(
array
(
'id'
=>
'-1'
,
'value'
=>
'全部'
),
array
(
'id'
=>
'0'
,
'value'
=>
'30m²以内'
),
array
(
'id'
=>
'1'
,
'value'
=>
'30-60m²'
),
array
(
'id'
=>
'2'
,
'value'
=>
'60-100m²'
),
array
(
'id'
=>
'3'
,
'value'
=>
'100m²以上'
)
);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
}
\ No newline at end of file
application/route.php
View file @
dec47f10
...
@@ -450,6 +450,10 @@ Route::group('broker', [
...
@@ -450,6 +450,10 @@ Route::group('broker', [
'houseFollowUpList'
=>
[
'api_broker/HomePageLog/houseFollowUpList'
,
[
'method'
=>
'post'
]
],
'houseFollowUpList'
=>
[
'api_broker/HomePageLog/houseFollowUpList'
,
[
'method'
=>
'post'
]
],
//user
'returnSearchCondition'
=>
[
'api_broker/User/returnSearchCondition'
,
[
'method'
=>
'get'
]
],
//客户搜索条件
]);
]);
//Route::miss('api/index/miss');//处理错误的url
//Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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