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
b9cd0ff0
Commit
b9cd0ff0
authored
Jun 01, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dp
parent
819130ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
16 deletions
+85
-16
IndexController.php
app/Http/Controllers/Index/IndexController.php
+39
-1
index.blade.php
resources/views/Index/index.blade.php
+41
-11
web.php
routes/web.php
+5
-4
No files found.
app/Http/Controllers/Index/IndexController.php
View file @
b9cd0ff0
...
@@ -119,6 +119,44 @@ class IndexController extends Controller
...
@@ -119,6 +119,44 @@ class IndexController extends Controller
public
function
map
()
public
function
map
()
{
{
return
view
(
'index.map'
);
$url
=
url
()
->
full
();
$pathinfo
=
parse_url
(
$url
);
$path
=
$pathinfo
[
'path'
];
$en
=
substr
(
$path
,
1
,
2
);
if
(
$en
==
'en'
){
$language_type
=
1
;
$en_url
=
$_SERVER
[
'REQUEST_URI'
];
$zh_url
=
substr
(
$_SERVER
[
'REQUEST_URI'
],
3
);
}
else
{
$language_type
=
0
;
$en_url
=
'/en'
.
$_SERVER
[
'REQUEST_URI'
];
$zh_url
=
$_SERVER
[
'REQUEST_URI'
];
}
$zh
=
$zh_url
;
$en
=
$en_url
;
$navigation
=
IndexNavigation
::
query
()
->
where
(
'is_link'
,
0
)
->
where
(
'parent_id'
,
0
)
->
where
(
'is_show'
,
0
)
->
where
(
'language_type'
,
$language_type
)
->
orderBy
(
'id'
,
'asc'
)
->
get
()
->
toArray
();
foreach
(
$navigation
as
$k
=>
&
$v
){
$children
=
IndexNavigation
::
query
()
->
where
(
'is_link'
,
0
)
->
where
(
'is_show'
,
0
)
->
where
(
'parent_id'
,
$v
[
'id'
])
->
get
()
->
toArray
();
$v
[
'children'
]
=
$children
;
}
return
view
(
'Index.map'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
}
}
}
resources/views/Index/index.blade.php
View file @
b9cd0ff0
...
@@ -28,9 +28,15 @@
...
@@ -28,9 +28,15 @@
<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(
$banner1
as
$val
)<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(
$banner1
as
$val
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<a class="
slide
-
a
"><img src="
{{
$val
->
path
}}
" style="
height
:
720
px
;
"></a>
<a class="
slide
-
a
"><img src="
{{
$val
->
path
}}
" style="
height
:
720
px
;
"></a>
<div class="
panel
-
more
">
<div class="
panel
-
more
">
@if(
$language_type
== 1)
<a href="
{{
route
(
'enabout'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@else
<a href="
{{
$val
->
anchor
}}
">
<a href="
{{
$val
->
anchor
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)
}}
">
</a>
</a>
@endif
</div>
</div>
</li>@endforeach
</li>@endforeach
</ul>
</ul>
...
@@ -134,12 +140,20 @@
...
@@ -134,12 +140,20 @@
<a href="
javascript
:
void
(
0
);
" class="
swiper6
-
left
swiper
-
l
"></a>
<a href="
javascript
:
void
(
0
);
" class="
swiper6
-
left
swiper
-
l
"></a>
<a href="
javascript
:
void
(
0
);
" class="
swiper6
-
right
swiper
-
r
"></a>
<a href="
javascript
:
void
(
0
);
" class="
swiper6
-
right
swiper
-
r
"></a>
<ul class="
swiper
-
wrapper
" style="
width
:
7612
px
;
transform
:
translate3d
(
-
3806
px
,
0
px
,
0
px
);
transition
-
duration
:
0.3
s
;
height
:
720
px
;
">@foreach(
$banner2
as
$val
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<ul class="
swiper
-
wrapper
" style="
width
:
7612
px
;
transform
:
translate3d
(
-
3806
px
,
0
px
,
0
px
);
transition
-
duration
:
0.3
s
;
height
:
720
px
;
">
@foreach(
$banner2
as
$val
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<a class="
slide
-
a
"><img src="
{{
$val
->
path
}}
" style="
height
:
720
px
;
"></a>
<a class="
slide
-
a
"><img src="
{{
$val
->
path
}}
" style="
height
:
720
px
;
"></a>
<div class="
panel
-
more
">
<div class="
panel
-
more
">
@if(
$language_type
== 1)
<a href="
{{
route
(
'enbrand_culture'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@else
<a href="
{{
$val
->
anchor
}}
">
<a href="
{{
$val
->
anchor
}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
</a>
@endif
</div>
</div>
</li>@endforeach
</li>@endforeach
</ul>
</ul>
...
@@ -153,19 +167,29 @@
...
@@ -153,19 +167,29 @@
<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
">
<a href="
{{
$vl
->
anchor
}}
">
@if(
$language_type
== 1)
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
<a href="
{{
route
(
'ensuccess_story'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@else
<a href="
{{
route
(
'success_story'
)}}
">
<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
">
@if(
$language_type
== 1)
<a href="
{{
$vl
->
anchor
}}
">
<a href="
{{
route
(
'enbusiness'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
</a>
</div>
@else
<a href="
{{
route
(
'business'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@endif
</li>@endforeach </ul>
</li>@endforeach </ul>
</div>
</div>
<!--=============加入我们结束================-->
<!--=============加入我们结束================-->
...
@@ -283,9 +307,15 @@
...
@@ -283,9 +307,15 @@
<ul class="
swiper
-
wrapper
" style="
width
:
7612
px
;
transform
:
translate3d
(
-
3806
px
,
0
px
,
0
px
);
transition
-
duration
:
0.3
s
;
height
:
720
px
;
">@foreach(
$banner4
as
$v
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<ul class="
swiper
-
wrapper
" style="
width
:
7612
px
;
transform
:
translate3d
(
-
3806
px
,
0
px
,
0
px
);
transition
-
duration
:
0.3
s
;
height
:
720
px
;
">@foreach(
$banner4
as
$v
)<li class="
swiper
-
slide
swiper
-
slide
-
duplicate
" style="
width
:
1903
px
;
height
:
720
px
;
">
<a class="
slide
-
a
"><img src="
{{
asset
(
$v
->
path
)}}
" style="
height
:
720
px
;
"></a>
<a class="
slide
-
a
"><img src="
{{
asset
(
$v
->
path
)}}
" style="
height
:
720
px
;
"></a>
<div class="
panel
-
more
">
<div class="
panel
-
more
">
<a href="
{{
asset
(
$v
->
anchor
)
}}
">
@if(
$language_type
== 1)
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)
}}
">
<a href="
{{
route
(
'enbusiness'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
</a>
@else
<a href="
{{
route
(
'business'
)}}
">
<img src="
{{
asset
(
'images/ea1b4947d173a224e8dcbca0549db8a2.png'
)}}
">
</a>
@endif
</div>
</div>
</li>@endforeach
</li>@endforeach
</ul>
</ul>
...
...
routes/web.php
View file @
b9cd0ff0
...
@@ -16,8 +16,9 @@ use Illuminate\Support\Facades\Route;
...
@@ -16,8 +16,9 @@ use Illuminate\Support\Facades\Route;
Route
::
get
(
'/'
,
'Index\IndexController@index'
);
//网站首页
Route
::
get
(
'/'
,
'Index\IndexController@index'
);
//网站首页
Route
::
get
(
'en/index'
,
'Index\IndexController@index'
);
Route
::
get
(
'en/index'
,
'Index\IndexController@index'
);
Route
::
get
(
'/map'
,
'Index\IndexController@map'
)
->
name
(
'map'
);
Route
::
get
(
'/map'
,
'Index\IndexController@map'
)
->
name
(
'map'
);
Route
::
get
(
'/about'
,
'Index\AboutController@index'
)
->
name
(
'/about'
);
//关于页
Route
::
get
(
'/en/map'
,
'Index\IndexController@map'
)
->
name
(
'map'
);
Route
::
get
(
'en/about'
,
'Index\AboutController@index'
)
->
name
(
'/about'
);
//en关于页
Route
::
get
(
'/about'
,
'Index\AboutController@index'
)
->
name
(
'about'
);
//关于页
Route
::
get
(
'en/about'
,
'Index\AboutController@index'
)
->
name
(
'enabout'
);
//en关于页
Route
::
get
(
'/about/group_strategy'
,
'Index\AboutController@groupStrategy'
)
->
name
(
'group_strategy'
);
//关于页-集团战略页
Route
::
get
(
'/about/group_strategy'
,
'Index\AboutController@groupStrategy'
)
->
name
(
'group_strategy'
);
//关于页-集团战略页
Route
::
get
(
'en/about/group_strategy'
,
'Index\AboutController@groupStrategy'
)
->
name
(
'engroup_strategy'
);
//en关于页-集团战略页
Route
::
get
(
'en/about/group_strategy'
,
'Index\AboutController@groupStrategy'
)
->
name
(
'engroup_strategy'
);
//en关于页-集团战略页
Route
::
get
(
'/about/core_strengths'
,
'Index\AboutController@coreStrengths'
)
->
name
(
'core_strengths'
);
//关于页-核心优势页
Route
::
get
(
'/about/core_strengths'
,
'Index\AboutController@coreStrengths'
)
->
name
(
'core_strengths'
);
//关于页-核心优势页
...
@@ -27,8 +28,8 @@ Route::get('en/about/dev_history','Index\AboutController@devHistory')->name('end
...
@@ -27,8 +28,8 @@ Route::get('en/about/dev_history','Index\AboutController@devHistory')->name('end
Route
::
get
(
'/about/achievement'
,
'Index\AboutController@achievement'
)
->
name
(
'achievement'
);
//关于页-奖项成就页
Route
::
get
(
'/about/achievement'
,
'Index\AboutController@achievement'
)
->
name
(
'achievement'
);
//关于页-奖项成就页
Route
::
get
(
'en/about/achievement'
,
'Index\AboutController@achievement'
)
->
name
(
'enachievement'
);
//en关于页-奖项成就页
Route
::
get
(
'en/about/achievement'
,
'Index\AboutController@achievement'
)
->
name
(
'enachievement'
);
//en关于页-奖项成就页
Route
::
get
(
'/brand_culture'
,
'Index\BrandCultureController@index'
);
//品牌文化页
Route
::
get
(
'/brand_culture'
,
'Index\BrandCultureController@index'
)
->
name
(
'brand_culture'
)
;
//品牌文化页
Route
::
get
(
'en/brand_culture'
,
'Index\BrandCultureController@index'
);
//品牌文化页
Route
::
get
(
'en/brand_culture'
,
'Index\BrandCultureController@index'
)
->
name
(
'enbrand_culture'
)
;
//品牌文化页
Route
::
get
(
'/download'
,
'Index\BrandCultureController@download_pdf'
)
->
name
(
'download'
);
//下载画册页
Route
::
get
(
'/download'
,
'Index\BrandCultureController@download_pdf'
)
->
name
(
'download'
);
//下载画册页
Route
::
get
(
'en/download'
,
'Index\BrandCultureController@download_pdf'
)
->
name
(
'endownload'
);
//下载画册页
Route
::
get
(
'en/download'
,
'Index\BrandCultureController@download_pdf'
)
->
name
(
'endownload'
);
//下载画册页
...
...
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