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
cdf3b953
Commit
cdf3b953
authored
May 30, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
d51da87c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
JoinusController.php
admin/application/admin/controller/JoinusController.php
+1
-1
IndexController.php
app/Http/Controllers/Index/IndexController.php
+3
-2
web.php
routes/web.php
+2
-2
No files found.
admin/application/admin/controller/JoinusController.php
View file @
cdf3b953
...
...
@@ -50,7 +50,7 @@ class JoinusController extends Controller
if
(
!
$validate_result
)
{
return
error
(
$validate
->
getError
());
}
$result
=
$model
::
create
(
$param
);
$url
=
URL_BACK
;
...
...
app/Http/Controllers/Index/IndexController.php
View file @
cdf3b953
...
...
@@ -14,7 +14,7 @@ class IndexController extends Controller
{
$url
=
url
()
->
full
();
$pathinfo
=
parse_url
(
$url
);
$path
=
$pathinfo
[
'path'
]
;
$path
=
isset
(
$pathinfo
[
'path'
])
?
$pathinfo
[
'path'
]
:
''
;
$en
=
substr
(
$path
,
1
,
2
);
if
(
$en
==
'en'
){
...
...
@@ -80,7 +80,7 @@ class IndexController extends Controller
->
get
();
$events
=
IndexEvents
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
get
();
$setting
=
IndexSetting
::
query
()
->
first
();
return
view
(
'index
.index
'
)
return
view
(
'index'
)
->
with
(
'banner1'
,
$banner1
)
->
with
(
'banner2'
,
$banner2
)
->
with
(
'banner3'
,
$banner3
)
...
...
@@ -88,6 +88,7 @@ class IndexController extends Controller
->
with
(
'audio_url'
,
$audio_url
)
->
with
(
'article1'
,
$article1
)
->
with
(
'article2'
,
$article2
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
compact
(
'events'
))
->
with
(
compact
(
'banner4'
))
->
with
(
compact
(
'setting'
))
...
...
routes/web.php
View file @
cdf3b953
...
...
@@ -13,8 +13,8 @@ use Illuminate\Support\Facades\Route;
|
*/
Route
::
get
(
'/
index'
,
'Index\IndexController@index'
);
Route
::
get
(
'en/
index
'
,
'Index\IndexController@index'
);
Route
::
get
(
'/
'
,
'Index\IndexController@index'
);
//网站首页
Route
::
get
(
'en/'
,
'Index\IndexController@index'
);
Route
::
get
(
'/map'
,
'Index\IndexController@map'
)
->
name
(
'map'
);
Route
::
get
(
'/about'
,
'Index\AboutController@index'
)
->
name
(
'/about'
);
//关于页
Route
::
get
(
'en/about'
,
'Index\AboutController@index'
)
->
name
(
'/about'
);
//en关于页
...
...
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