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
1ac2f377
Commit
1ac2f377
authored
May 30, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
7691b8fb
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
896 additions
and
59 deletions
+896
-59
HelperController.php
app/Http/Controllers/HelperController.php
+17
-17
AboutController.php
app/Http/Controllers/Index/AboutController.php
+160
-4
ArticleController.php
app/Http/Controllers/Index/ArticleController.php
+95
-3
AudioController.php
app/Http/Controllers/Index/AudioController.php
+65
-4
BrandCultureController.php
app/Http/Controllers/Index/BrandCultureController.php
+79
-10
GoodsItemController.php
app/Http/Controllers/Index/GoodsItemController.php
+125
-8
GroupCultureController.php
app/Http/Controllers/Index/GroupCultureController.php
+162
-6
JoinUsController.php
app/Http/Controllers/Index/JoinUsController.php
+191
-5
ManagerController.php
app/Http/Controllers/Index/ManagerController.php
+2
-2
No files found.
app/Http/Controllers/HelperController.php
View file @
1ac2f377
app/Http/Controllers/Index/AboutController.php
View file @
1ac2f377
...
...
@@ -69,21 +69,177 @@ class AboutController extends Controller
public
function
groupStrategy
()
{
return
view
(
'index.about.group_strategy'
);
$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.about.group_strategy'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
coreStrengths
()
{
return
view
(
'index.about.core_strengths'
);
$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.about.core_strengths'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
devHistory
()
{
return
view
(
'index.about.dev_history'
);
$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.about.dev_history'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
achievement
()
{
return
view
(
'index.about.achievement'
);
$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.about.achievement'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
}
app/Http/Controllers/Index/ArticleController.php
View file @
1ac2f377
...
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers\Index
;
use
App\Http\Controllers\Controller
;
use
App\Listeners\browserModel
;
use
Moell\LayuiAdmin\Models\IndexNavigation
;
use
Moell\LayuiAdmin\Models\ArticleInfo
;
use
Illuminate\Http\Request
;
use
App\Enum\NewsType
;
...
...
@@ -23,9 +24,15 @@ class ArticleController extends Controller
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
;
$news_center
=
ArticleInfo
::
query
()
->
where
(
'type'
,
'='
,
1
)
...
...
@@ -60,13 +67,36 @@ class ArticleController extends Controller
// ->whereNotIn('id', $item_trends->pluck('id')->toArray())
->
orderBy
(
'id'
,
'asc'
)
->
limit
(
3
)
->
get
();
$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.news.index'
,
[
'news_center'
=>
$news_center
,
'news_center2'
=>
$news_center2
,
'group_news'
=>
$group_news1
,
'group_news2'
=>
$group_news2
,
'item_trends'
=>
$item_trends
,
'item_trends2'
=>
$item_trends2
]);
'item_trends2'
=>
$item_trends2
])
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
info
(
Request
$request
)
...
...
@@ -78,9 +108,15 @@ class ArticleController extends Controller
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
;
$type
=
$request
->
get
(
'type'
);
$id
=
$request
->
post
(
'id'
);
ArticleInfo
::
where
(
'id'
,
'='
,
$id
)
->
increment
(
'browse'
);
...
...
@@ -95,7 +131,32 @@ class ArticleController extends Controller
$info
=
ArticleInfo
::
query
()
->
where
(
'id'
,
$id
)
->
first
();
return
view
(
'index.news.article_info'
,
compact
(
'info'
))
->
with
(
compact
(
'data'
))
->
with
(
compact
(
'type'
));
$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.news.article_info'
,
compact
(
'info'
))
->
with
(
compact
(
'data'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
)
->
with
(
compact
(
'type'
));
}
public
function
article_list
(
Request
$request
)
...
...
@@ -107,9 +168,15 @@ class ArticleController extends Controller
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
;
$search
=
$request
->
post
(
'tag'
);
$page
=
$request
->
get
(
'page'
);
$type
=
$request
->
get
(
'type'
)
;
...
...
@@ -124,7 +191,32 @@ class ArticleController extends Controller
->
where
(
'status'
,
0
)
->
where
(
'language_type'
,
$language_type
)
->
paginate
(
12
,
[
'*'
],
'page'
,
$page
);
return
view
(
'index.news.article_list'
,
compact
(
'data'
))
->
with
(
compact
(
'type'
));
$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.news.article_list'
,
compact
(
'data'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
)
->
with
(
compact
(
'type'
));
}
function
getIp
()
...
...
app/Http/Controllers/Index/AudioController.php
View file @
1ac2f377
...
...
@@ -3,6 +3,7 @@ namespace App\Http\Controllers\Index;
use
App\Http\Controllers\Controller
;
use
Moell\LayuiAdmin\Models\IndexVideoUrl
;
use
Illuminate\Http\Request
;
use
Moell\LayuiAdmin\Models\IndexNavigation
;
use
Moell\LayuiAdmin\Models\Audio
;
class
AudioController
extends
Controller
{
...
...
@@ -15,10 +16,15 @@ class AudioController extends Controller
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
;
$speech
=
IndexVideoUrl
::
query
()
->
where
(
'status'
,
0
)
->
where
(
'language_type'
,
$language_type
)
->
where
(
'type'
,
1
)
...
...
@@ -42,7 +48,30 @@ class AudioController extends Controller
->
limit
(
4
)
->
get
();
return
view
(
'index.audio.index'
,
compact
(
'speech'
))
$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.audio.index'
,
compact
(
'speech'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
)
->
with
(
compact
(
'corporate'
))
->
with
(
compact
(
'activity'
))
->
with
(
compact
(
'media_coverage'
));
...
...
@@ -57,14 +86,46 @@ class AudioController extends Controller
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
;
$type
=
$request
->
get
(
'type'
);
$page
=
$request
->
get
(
'page'
);
$data
=
IndexVideoUrl
::
getDataById
(
$request
->
get
(
'id'
),
$language_type
);
$list
=
IndexVideoUrl
::
query
()
->
where
([
'type'
=>
$type
,
'language_type'
=>
$language_type
])
->
limit
(
3
)
->
paginate
(
3
,
[
'*'
],
'page'
,
$page
);
return
view
(
'index.audio.play'
,
compact
(
'data'
))
->
with
(
compact
(
'list'
))
->
with
(
compact
(
'type'
));
$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.audio.play'
,
compact
(
'data'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
)
->
with
(
compact
(
'list'
))
->
with
(
compact
(
'type'
));
}
}
app/Http/Controllers/Index/BrandCultureController.php
View file @
1ac2f377
...
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers\Index
;
use
App\Http\Controllers\Controller
;
use
Illuminate\Http\Request
;
use
Moell\LayuiAdmin\Models\IndexNavigation
;
use
Moell\LayuiAdmin\Models\Pdf
as
PdfModel
;
/**
* Created by PhpStorm.
...
...
@@ -14,18 +15,50 @@ class BrandCultureController extends Controller
{
public
function
index
()
{
return
view
(
'index.brand_culture.index'
);
$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
;
public
function
download_pdf
()
{
$data
=
PdfModel
::
query
()
->
where
(
'type'
,
'='
,
1
)
->
first
();
return
view
(
'index.brand_culture.download'
,
compact
(
'data'
));
$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
;
}
public
function
download
(
Request
$request
)
return
view
(
'Index.brand_culture.index'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
download_pdf
()
{
$url
=
url
()
->
full
();
$pathinfo
=
parse_url
(
$url
);
...
...
@@ -34,10 +67,46 @@ class BrandCultureController extends Controller
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
;
}
$data
=
PdfModel
::
query
()
->
where
(
'type'
,
'='
,
1
)
->
first
();
return
view
(
'Index.brand_culture.download'
,
compact
(
'data'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
download
(
Request
$request
)
{
$id
=
$request
->
get
(
'id'
);
$data
=
PdfModel
::
query
()
->
where
(
'id'
,
'='
,
$id
)
->
first
();
$filename
=
$data
->
file_path
;
...
...
app/Http/Controllers/Index/GoodsItemController.php
View file @
1ac2f377
...
...
@@ -3,6 +3,7 @@ namespace App\Http\Controllers\Index;
use
App\Http\Controllers\Controller
;
use
Moell\LayuiAdmin\Models\IndexBanner
;
use
Illuminate\Http\Request
;
use
Moell\LayuiAdmin\Models\IndexNavigation
;
/**
* Created by PhpStorm.
* User: Administrator
...
...
@@ -21,8 +22,33 @@ class GoodsItemController extends Controller
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
;
}
$data5
=
IndexBanner
::
query
()
...
...
@@ -45,10 +71,14 @@ class GoodsItemController extends Controller
->
where
(
'delete_time'
,
'='
,
0
)
->
limit
(
4
)
->
orderBy
(
'id'
,
'desc'
)
->
get
();
return
view
(
'
i
ndex.goods_item.index'
)
return
view
(
'
I
ndex.goods_item.index'
)
->
with
(
compact
(
'data5'
))
->
with
(
compact
(
'data6'
))
->
with
(
compact
(
'data7'
));
->
with
(
compact
(
'data7'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
more
(
Request
$request
)
...
...
@@ -60,8 +90,33 @@ class GoodsItemController extends Controller
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
;
}
$type
=
$request
->
get
(
'type'
);
...
...
@@ -88,10 +143,14 @@ class GoodsItemController extends Controller
$content
=
isset
(
$content7
->
content
)
?
$content7
->
content
:
''
;
}
return
view
(
'
i
ndex.goods_item.more'
)
return
view
(
'
I
ndex.goods_item.more'
)
->
with
(
compact
(
'data'
))
->
with
(
compact
(
'title'
))
->
with
(
compact
(
'content'
));
->
with
(
compact
(
'content'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
maodian21
()
...
...
@@ -103,8 +162,33 @@ class GoodsItemController extends Controller
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
;
}
$data5
=
IndexBanner
::
query
()
...
...
@@ -128,10 +212,14 @@ class GoodsItemController extends Controller
->
limit
(
4
)
->
orderBy
(
'id'
,
'desc'
)
->
get
();
return
view
(
'
i
ndex.goods_item.maodian21'
)
return
view
(
'
I
ndex.goods_item.maodian21'
)
->
with
(
compact
(
'data5'
))
->
with
(
compact
(
'data6'
))
->
with
(
compact
(
'data7'
));
->
with
(
compact
(
'data7'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
maodian22
()
...
...
@@ -143,8 +231,33 @@ class GoodsItemController extends Controller
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
;
}
$data5
=
IndexBanner
::
query
()
...
...
@@ -168,9 +281,13 @@ class GoodsItemController extends Controller
->
limit
(
4
)
->
orderBy
(
'id'
,
'desc'
)
->
get
();
return
view
(
'
i
ndex.goods_item.maodian22'
)
return
view
(
'
I
ndex.goods_item.maodian22'
)
->
with
(
compact
(
'data5'
))
->
with
(
compact
(
'data6'
))
->
with
(
compact
(
'data7'
));
->
with
(
compact
(
'data7'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
}
app/Http/Controllers/Index/GroupCultureController.php
View file @
1ac2f377
...
...
@@ -4,6 +4,7 @@ use App\Http\Controllers\Controller;
use
Illuminate\Http\Request
;
use
Moell\LayuiAdmin\Models\Pdf
as
PdfModel
;
use
Moell\LayuiAdmin\Models\GroupCulture
;
use
Moell\LayuiAdmin\Models\IndexNavigation
;
/**
* Created by PhpStorm.
* User: Administrator
...
...
@@ -21,8 +22,33 @@ class GroupCultureController extends Controller
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
;
}
$where
=
[
'language_type'
=>
$language_type
,
...
...
@@ -32,20 +58,63 @@ class GroupCultureController extends Controller
$data2
=
GroupCulture
::
query
()
->
where
(
'type'
,
'='
,
2
)
->
where
(
$where
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
$data3
=
GroupCulture
::
query
()
->
where
(
'type'
,
'='
,
3
)
->
where
(
$where
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
return
view
(
'
i
ndex.group_culture.index'
)
return
view
(
'
I
ndex.group_culture.index'
)
->
with
(
compact
(
'data1'
))
->
with
(
compact
(
'data2'
))
->
with
(
compact
(
'data3'
));
->
with
(
compact
(
'data3'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
download_report_pdf
()
{
$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
;
}
$data
=
PdfModel
::
query
()
->
where
(
'type'
,
'='
,
2
)
->
first
();
return
view
(
'index.group_culture.download'
,
compact
(
'data'
));
return
view
(
'Index.group_culture.download'
,
compact
(
'data'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
download_report
(
Request
$request
)
...
...
@@ -77,15 +146,44 @@ class GroupCultureController extends Controller
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
;
}
$where
=
[
'language_type'
=>
$language_type
,
'delete_time'
=>
0
];
$info
=
GroupCulture
::
query
()
->
where
(
'type'
,
'='
,
1
)
->
where
(
$where
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
return
view
(
'index.group_culture.fashion_city'
)
->
with
(
compact
(
'info'
));
return
view
(
'Index.group_culture.fashion_city'
)
->
with
(
compact
(
'info'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
fashion_safety
()
...
...
@@ -97,15 +195,44 @@ class GroupCultureController extends Controller
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
;
}
$where
=
[
'language_type'
=>
$language_type
,
'delete_time'
=>
0
];
$info
=
GroupCulture
::
query
()
->
where
(
'type'
,
'='
,
2
)
->
where
(
$where
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
return
view
(
'index.group_culture.fashion_safety'
)
->
with
(
compact
(
'info'
));
return
view
(
'Index.group_culture.fashion_safety'
)
->
with
(
compact
(
'info'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
public_welfare
()
...
...
@@ -117,14 +244,43 @@ class GroupCultureController extends Controller
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
;
}
$where
=
[
'language_type'
=>
$language_type
,
'delete_time'
=>
0
];
$info
=
GroupCulture
::
query
()
->
where
(
'type'
,
'='
,
3
)
->
where
(
$where
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
return
view
(
'index.group_culture.public_welfare'
)
->
with
(
compact
(
'info'
));
return
view
(
'Index.group_culture.public_welfare'
)
->
with
(
compact
(
'info'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
}
app/Http/Controllers/Index/JoinUsController.php
View file @
1ac2f377
...
...
@@ -3,21 +3,139 @@ namespace App\Http\Controllers\Index;
use
App\Http\Controllers\Controller
;
use
Moell\LayuiAdmin\Models\IndexSetting
;
use
Illuminate\Support\Facades\DB
;
use
Moell\LayuiAdmin\Models\IndexNavigation
;
class
JoinUsController
extends
Controller
{
public
function
index
()
{
$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
;
}
$setting
=
IndexSetting
::
query
()
->
first
();
return
view
(
'index.join_us.index'
,
compact
(
'setting'
));
return
view
(
'Index.join_us.index'
,
compact
(
'setting'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
success_story
()
{
return
view
(
'index.join_us.success_story'
);
$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.join_us.success_story'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
business_story
()
{
return
view
(
'index.join_us.business'
);
$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.join_us.business'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
job_social
()
...
...
@@ -29,19 +147,87 @@ class JoinUsController extends Controller
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
;
}
$data
=
DB
::
table
(
'join_us'
)
->
where
(
'status'
,
'='
,
0
)
->
where
(
'language_type'
,
$language_type
)
->
get
()
->
toArray
();
return
view
(
'index.join_us.job_social'
,
compact
(
'data'
));
return
view
(
'Index.join_us.job_social'
,
compact
(
'data'
))
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
public
function
cooperation
()
{
return
view
(
'index.join_us.cooperation'
);
$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.join_us.cooperation'
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'zh'
,
$zh
)
->
with
(
'en'
,
$en
);
}
}
app/Http/Controllers/Index/ManagerController.php
View file @
1ac2f377
...
...
@@ -16,6 +16,6 @@ class ManagerController extends Controller
{
$manager
=
AddManager
::
query
()
->
get
();
return
view
(
'
i
ndex.about'
,
compact
(
'manager'
));
return
view
(
'
I
ndex.about'
,
compact
(
'manager'
));
}
}
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