Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ruer_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡闯
ruer_cms
Commits
b9137ca7
Commit
b9137ca7
authored
Jan 12, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner修改
parent
25b6b0e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
app/shequ/controller/Village.php
app/shequ/controller/Village.php
+17
-2
No files found.
app/shequ/controller/Village.php
View file @
b9137ca7
...
...
@@ -90,7 +90,7 @@ class Village extends Base
public
function
villageInfo
()
{
$where
[
'village_id'
]
=
$this
->
village_id
;
$data
=
DB
::
name
(
'house_village'
)
->
where
(
$where
)
->
field
(
'village_id,property_price,water_price,electric_price,gas_price,park_price,village_
L
ogo,village_name,village_address,province_id,province_name,city_id,city_name,area_id,area_name'
)
->
find
();
->
field
(
'village_id,property_price,water_price,electric_price,gas_price,park_price,village_
l
ogo,village_name,village_address,province_id,province_name,city_id,city_name,area_id,area_name'
)
->
find
();
return
$this
->
returnJson
(
$data
,
'success'
);
}
...
...
@@ -138,7 +138,7 @@ class Village extends Base
$data
[
'city_name'
]
=
Request
::
param
(
'city_name'
);
$data
[
'area_id'
]
=
Request
::
param
(
'area_id'
);
$data
[
'area_name'
]
=
Request
::
param
(
'area_name'
);
$data
[
'village_logo'
]
=
Request
::
param
(
'logo'
);
$data
[
'village_logo'
]
=
Request
::
param
(
'
village_
logo'
);
$change
=
DB
::
name
(
'house_village'
)
->
where
(
$where
)
->
save
(
$data
);
if
(
!
$change
)
{
return
$this
->
returnJson
([],
'修改失败'
,
400
);
...
...
@@ -152,6 +152,7 @@ class Village extends Base
$banner_id
=
Request
::
param
(
'banner_id'
);
$data
[
'pic'
]
=
Request
::
param
(
'pic'
);
$data
[
'url'
]
=
Request
::
param
(
'url'
);
$data
[
'title'
]
=
Request
::
param
(
'title'
);
$data
[
'sort_id'
]
=
Request
::
param
(
'sort_id'
,
1
);
if
(
$banner_id
){
$where
[
'banner_id'
]
=
$banner_id
;
...
...
@@ -190,6 +191,20 @@ class Village extends Base
}
//查看具体的banner
public
function
detailBanner
()
{
$where
[
'banner_id'
]
=
Request
::
param
(
'banner_id'
);
$where
[
'village_id'
]
=
$this
->
village_id
;
$data
=
Db
::
name
(
'village_banner'
)
->
where
(
$where
)
->
find
();
if
(
!
$data
)
{
$data
=
[];
}
return
$this
->
returnJson
(
$data
);
}
}
\ 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