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
c3b32684
Commit
c3b32684
authored
Sep 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商圈列表
parent
dd00f400
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
BusinessDistrict.php
application/index/controller/BusinessDistrict.php
+41
-0
route.php
application/route.php
+2
-1
No files found.
application/index/controller/BusinessDistrict.php
View file @
c3b32684
...
@@ -134,6 +134,47 @@ class BusinessDistrict extends Basic
...
@@ -134,6 +134,47 @@ class BusinessDistrict extends Basic
}
}
}
}
/**
* 获取全部商圈列表
*
* @return \think\Response
*/
public
function
getBusinessAll
()
{
$code
=
200
;
$msg
=
''
;
$where
[
'is_del'
]
=
0
;
if
(
$this
->
params
[
'name'
]
!=
NULL
)
{
$where
[
'name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'province'
]))
{
$where
[
'province'
]
=
$this
->
params
[
'province'
];
}
if
(
!
empty
(
$this
->
params
[
'city'
]))
{
$where
[
'city'
]
=
$this
->
params
[
'city'
];
}
if
(
!
empty
(
$this
->
params
[
'disc'
]))
{
$where
[
'disc'
]
=
$this
->
params
[
'disc'
];
}
$fields
=
'id,name,province,city,disc,status,create_time'
;
try
{
$auth_group
=
New
GBusinessDistrict
();
$data
=
$auth_group
->
getList
(
1
,
1000
,
'id desc'
,
$fields
,
$where
);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
$e
->
getMessage
();
$data
=
[];
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
/**
/**
* 获取省市区数据
* 获取省市区数据
*
*
...
...
application/route.php
View file @
c3b32684
...
@@ -156,7 +156,8 @@ Route::group('index', [
...
@@ -156,7 +156,8 @@ Route::group('index', [
'delBusinessDistrict'
=>
[
'index/BusinessDistrict/del'
,
[
'method'
=>
'post'
]
],
//删除商圈列表
'delBusinessDistrict'
=>
[
'index/BusinessDistrict/del'
,
[
'method'
=>
'post'
]
],
//删除商圈列表
//商铺
//商铺
'BusinessList'
=>
[
'index/BusinessDistrict/getBusiness'
,
[
'method'
=>
'get'
]
],
//获取商铺列表数据
'BusinessList'
=>
[
'index/BusinessDistrict/getBusiness'
,
[
'method'
=>
'get'
]
],
//获取商圈
'getBusinessAll'
=>
[
'index/BusinessDistrict/getBusinessAll'
,
[
'method'
=>
'get'
]
],
//获取商圈,不带分页
'houseEdit'
=>
[
'index/Houses/editV2'
,
[
'method'
=>
'get|post'
]
],
//编辑商铺
'houseEdit'
=>
[
'index/Houses/editV2'
,
[
'method'
=>
'get|post'
]
],
//编辑商铺
'houseAdd'
=>
[
'index/Houses/editV2'
,
[
'method'
=>
'get'
]
],
//新增商铺
'houseAdd'
=>
[
'index/Houses/editV2'
,
[
'method'
=>
'get'
]
],
//新增商铺
'houseDel'
=>
[
'index/Houses/del'
,
[
'method'
=>
'post'
]
],
//删除商铺
'houseDel'
=>
[
'index/Houses/del'
,
[
'method'
=>
'post'
]
],
//删除商铺
...
...
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