Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
Project
Project
Details
Activity
Releases
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
章建武
fashion_group
Commits
4e853ce6
Commit
4e853ce6
authored
Jun 06, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adp
parent
b75c29a0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
10 deletions
+23
-10
ArticleController.php
admin/application/admin/controller/ArticleController.php
+3
-2
index.html
admin/application/admin/view/article/index.html
+6
-6
IndexController.php
app/Http/Controllers/Index/IndexController.php
+1
-1
index.blade.php
resources/views/Index/index.blade.php
+12
-0
index.blade.php
resources/views/Index/join_us/index.blade.php
+1
-1
No files found.
admin/application/admin/controller/ArticleController.php
View file @
4e853ce6
...
@@ -18,11 +18,12 @@ class ArticleController extends Controller
...
@@ -18,11 +18,12 @@ class ArticleController extends Controller
{
{
$param
=
$request
->
param
();
$param
=
$request
->
param
();
$model
=
$model
->
scope
(
'where'
,
$param
);
$model
=
$model
->
scope
(
'where'
,
$param
);
if
(
isset
(
$param
[
'
_
type'
])){
if
(
isset
(
$param
[
'type'
])){
$where
=
[
'status'
=>
0
,
'type'
=>
$param
[
'
_
type'
]];
$where
=
[
'status'
=>
0
,
'type'
=>
$param
[
'type'
]];
}
else
{
}
else
{
$where
=
[
'status'
=>
0
];
$where
=
[
'status'
=>
0
];
}
}
$data
=
$model
->
where
(
$where
)
->
paginate
(
$this
->
admin
[
'per_page'
],
false
,
[
'query'
=>
$request
->
get
()]);
$data
=
$model
->
where
(
$where
)
->
paginate
(
$this
->
admin
[
'per_page'
],
false
,
[
'query'
=>
$request
->
get
()]);
foreach
(
$data
as
&
$v
){
foreach
(
$data
as
&
$v
){
$v
[
'language_type'
]
=
$v
[
'language_type'
]
===
1
?
'英语'
:
'中文'
;
$v
[
'language_type'
]
=
$v
[
'language_type'
]
===
1
?
'英语'
:
'中文'
;
...
...
admin/application/admin/view/article/index.html
View file @
4e853ce6
...
@@ -30,13 +30,13 @@
...
@@ -30,13 +30,13 @@
</script>
</script>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<select
name=
"
_
type"
id=
"_cat"
class=
"form-control input-sm index-order"
>
<select
name=
"type"
id=
"_cat"
class=
"form-control input-sm index-order"
>
<option
value=
""
>
分类筛选
</option>
<option
value=
""
>
分类筛选
</option>
<option
value=
"1"
{
if
isset
($
_type
)
&&
$
_
type=
=1}selected{/if}
>
新闻中心
</option>
<option
value=
"1"
{
if
isset
($
type
)
&&
$
type=
=1}selected{/if}
>
新闻中心
</option>
<option
value=
"2"
{
if
isset
($
_type
)
&&
$
_
type=
=2}selected{/if}
>
集团新闻
</option>
<option
value=
"2"
{
if
isset
($
type
)
&&
$
type=
=2}selected{/if}
>
集团新闻
</option>
<option
value=
"3"
{
if
isset
($
_type
)
&&
$
_
type=
=3}selected{/if}
>
项目动态
</option>
<option
value=
"3"
{
if
isset
($
type
)
&&
$
type=
=3}selected{/if}
>
项目动态
</option>
<option
value=
"4"
{
if
isset
($
_type
)
&&
$
_
type=
=4}selected{/if}
>
媒体聚焦
</option>
<option
value=
"4"
{
if
isset
($
type
)
&&
$
type=
=4}selected{/if}
>
媒体聚焦
</option>
<option
value=
"5"
{
if
isset
($
_type
)
&&
$
_
type=
=5}selected{/if}
>
首页弹窗
</option>
<option
value=
"5"
{
if
isset
($
type
)
&&
$
type=
=5}selected{/if}
>
首页弹窗
</option>
</select>
</select>
</div>
</div>
<script>
<script>
...
...
app/Http/Controllers/Index/IndexController.php
View file @
4e853ce6
...
@@ -38,7 +38,7 @@ class IndexController extends Controller
...
@@ -38,7 +38,7 @@ class IndexController extends Controller
$banner4
=
IndexBanner
::
query
()
$banner4
=
IndexBanner
::
query
()
->
where
(
'type'
,
4
)
->
where
(
'type'
,
4
)
->
get
();
->
get
();
$audio
=
Audio
::
query
()
->
limit
(
1
)
->
value
(
'url'
);
$audio
=
Audio
::
query
()
->
limit
(
3
)
->
value
(
'url'
);
$audio_url
[]
=
IndexVideoUrl
::
query
()
$audio_url
[]
=
IndexVideoUrl
::
query
()
->
where
(
'type'
,
'='
,
3
)
->
where
(
'type'
,
'='
,
3
)
...
...
resources/views/Index/index.blade.php
View file @
4e853ce6
...
@@ -184,18 +184,30 @@
...
@@ -184,18 +184,30 @@
<ul class="
swiper
-
wrapper
" style="
width
:
9515
px
;
transform
:
translate3d
(
-
5709
px
,
0
px
,
0
px
);
transition
-
duration
:
0.3
s
;
height
:
720
px
;
">@foreach(
$banner3
as
$vl
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<ul class="
swiper
-
wrapper
" style="
width
:
9515
px
;
transform
:
translate3d
(
-
5709
px
,
0
px
,
0
px
);
transition
-
duration
:
0.3
s
;
height
:
720
px
;
">@foreach(
$banner3
as
$vl
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<a class="
slide
-
a
"><img src="
{{
$vl
->
path
}}
" style="
height
:
720
px
;
"></a>
<a class="
slide
-
a
"><img src="
{{
$vl
->
path
}}
" style="
height
:
720
px
;
"></a>
<div class="
panel
-
more
">
<div class="
panel
-
more
">
@if(
$language_type
== 1)
<a href="
{{
$vl
->
img_title
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@else
<a href="
{{
$vl
->
anchor
}}
">
<a href="
{{
$vl
->
anchor
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
</a>
@endif
</div>
</div>
</li>@endforeach
</li>@endforeach
@foreach (
$banner3
as
$vl
)
@foreach (
$banner3
as
$vl
)
<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<a class="
slide
-
a
"><img src="
{{
asset
(
$vl
->
path
)}}
" style="
height
:
720
px
;
"></a>
<a class="
slide
-
a
"><img src="
{{
asset
(
$vl
->
path
)}}
" style="
height
:
720
px
;
"></a>
<div class="
panel
-
more
">
<div class="
panel
-
more
">
@if(
$language_type
== 1)
<a href="
{{
$vl
->
img_title
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@else
<a href="
{{
$vl
->
anchor
}}
">
<a href="
{{
$vl
->
anchor
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
</a>
@endif
</div>
</div>
</li>@endforeach </ul>
</li>@endforeach </ul>
</div>
</div>
...
...
resources/views/Index/join_us/index.blade.php
View file @
4e853ce6
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<
p
>
深圳市迈超商业运营有限责任公司
</
p
>
<
p
>
深圳市迈超商业运营有限责任公司
</
p
>
<
p
>
地址
:
深圳市福田区华强北地铁三号线
(
龙岗线
)
华新站A口
</
p
>
<
p
>
地址
:
深圳市福田区华强北地铁三号线
(
龙岗线
)
华新站A口
</
p
>
<
p
>
电话
:
<
a
href
=
"tel:"
>
0755
-
83225879
</
a
></
p
>
<
p
>
电话
:
<
a
href
=
"tel:"
>
0755
-
83225879
</
a
></
p
>
<
p
><
a
href
=
"
{
{url('
index
')}
}
/#page11"
class
="
more
">查看更多联系方式</a></p>
<
p
><
a
href
=
"
{
{url('')}
}
/#page11"
class
="
more
">查看更多联系方式</a></p>
@endif
@endif
</li>
</li>
...
...
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