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
06daf716
Commit
06daf716
authored
Jan 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精选商铺
parent
9cc8ecc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
Houses.php
application/index/controller/Houses.php
+23
-0
route.php
application/route.php
+3
-2
No files found.
application/index/controller/Houses.php
View file @
06daf716
...
...
@@ -209,4 +209,26 @@ class Houses extends Basic
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
/**
* 是否精选商铺
*
* @return \think\Response
*/
public
function
carefullyChosen
()
{
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$data
[
'data'
]
=
''
;
$params
=
$this
->
request
->
param
();
if
(
$params
[
'houses_id'
]
!=
NULL
&&
$params
[
'is_carefully_chosen'
]
!=
NULL
)
{
$data
[
'is_carefully_chosen'
]
=
$params
[
'is_carefully_chosen'
];
$data
[
'data'
]
=
$this
->
house
->
editData
(
$data
,
$params
[
'houses_id'
],
'id'
);
}
else
{
$data
[
'status'
]
=
101
;
$data
[
'msg'
]
=
'houses_id or is_carefully_chosen is null'
;
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
\ No newline at end of file
application/route.php
View file @
06daf716
...
...
@@ -93,18 +93,19 @@ Route::group('index', [
'authClass'
=>
[
'index/auth/authClass'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//成员授权
//商圈
'BusinessDistrict'
=>
[
'index/BusinessDistrict/index'
,
[
'method'
=>
'get'
]],
//商圈列表
'editBusinessDistrict'
=>
[
'index/BusinessDistrict/edit'
,
[
'method'
=>
'get | post'
]],
//编辑商圈
'delBusinessDistrict'
=>
[
'index/BusinessDistrict/del'
,
[
'method'
=>
'post'
]],
//删除商圈列表
//商铺
'BusinessList'
=>
[
'index/BusinessDistrict/getBusiness'
,
[
'method'
=>
'get'
]],
//获取商铺列表数据
'houseList'
=>
[
'index/Houses/index'
,
[
'method'
=>
'get'
]],
//商铺列表
'houseEdit'
=>
[
'index/Houses/edit'
,
[
'method'
=>
'get|post'
]],
//编辑商铺
'houseDel'
=>
[
'index/Houses/del'
,
[
'method'
=>
'post'
]],
//删除商铺
'regions'
=>
[
'index/BusinessDistrict/regions'
,
[
'method'
=>
'get'
]],
//获取省市区数据
'getHouseList'
=>
[
'index/houses/getHouseList'
,
[
'method'
=>
'get'
]],
//楼盘列表
'carefullyChosen'
=>
[
'index/houses/carefullyChosen'
,
[
'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