Commit b9cd0ff0 authored by 章建武's avatar 章建武

dp

parent 819130ac
...@@ -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);
} }
} }
...@@ -28,9 +28,15 @@ ...@@ -28,9 +28,15 @@
<ul class="swiper-wrapper" style="width: 9515px; transform: translate3d(-5709px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner1 as $val)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;"> <ul class="swiper-wrapper" style="width: 9515px; transform: translate3d(-5709px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner1 as $val)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src=" {{ $val->path }}" style="height: 720px;"></a> <a class="slide-a"><img src=" {{ $val->path }}" style="height: 720px;"></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: 7612px; transform: translate3d(-3806px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner2 as $val)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;"> <ul class="swiper-wrapper" style="width: 7612px; transform: translate3d(-3806px, 0px, 0px); transition-duration: 0.3s; height: 720px;">
@foreach($banner2 as $val)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src="{{$val->path}} " style="height: 720px;"></a> <a class="slide-a"><img src="{{$val->path}} " style="height: 720px;"></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: 9515px; transform: translate3d(-5709px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner3 as $vl)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;"> <ul class="swiper-wrapper" style="width: 9515px; transform: translate3d(-5709px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner3 as $vl)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src="{{$vl->path}}" style="height: 720px;"></a> <a class="slide-a"><img src="{{$vl->path}}" style="height: 720px;"></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: 1903px; height: 720px;"> <li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src="{{asset($vl->path)}}" style="height: 720px;"></a> <a class="slide-a"><img src="{{asset($vl->path)}}" style="height: 720px;"></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: 7612px; transform: translate3d(-3806px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner4 as $v)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;"> <ul class="swiper-wrapper" style="width: 7612px; transform: translate3d(-3806px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner4 as $v)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src="{{asset($v->path)}}" style="height: 720px;"></a> <a class="slide-a"><img src="{{asset($v->path)}}" style="height: 720px;"></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>
......
...@@ -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');//下载画册页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment