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
abbdeda7
Commit
abbdeda7
authored
May 30, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
0a656c82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
26 deletions
+23
-26
JoinUs.php
admin/application/common/model/JoinUs.php
+0
-24
IndexController.php
app/Http/Controllers/Index/IndexController.php
+22
-1
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+1
-1
No files found.
admin/application/common/model/JoinUs.php
deleted
100644 → 0
View file @
0a656c82
<?php
/**
* 就业岗位模型
*/
namespace
app\common\model
;
use
think\model\concern\SoftDelete
;
class
JoinUs
extends
Model
{
use
SoftDelete
;
public
$softDelete
=
true
;
protected
$autoWriteTimestamp
=
true
;
//可搜索字段
protected
$searchField
=
[
'title'
,
'source'
,
'type'
];
public
$language_type
=
[
0
=>
'中文'
,
1
=>
'英语'
];
}
app/Http/Controllers/Index/IndexController.php
View file @
abbdeda7
...
@@ -80,7 +80,27 @@ class IndexController extends Controller
...
@@ -80,7 +80,27 @@ class IndexController extends Controller
->
get
();
->
get
();
$events
=
IndexEvents
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
get
();
$events
=
IndexEvents
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
get
();
$setting
=
IndexSetting
::
query
()
->
first
();
$setting
=
IndexSetting
::
query
()
->
first
();
return
view
(
'index'
)
$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.index'
)
->
with
(
'banner1'
,
$banner1
)
->
with
(
'banner1'
,
$banner1
)
->
with
(
'banner2'
,
$banner2
)
->
with
(
'banner2'
,
$banner2
)
->
with
(
'banner3'
,
$banner3
)
->
with
(
'banner3'
,
$banner3
)
...
@@ -88,6 +108,7 @@ class IndexController extends Controller
...
@@ -88,6 +108,7 @@ class IndexController extends Controller
->
with
(
'audio_url'
,
$audio_url
)
->
with
(
'audio_url'
,
$audio_url
)
->
with
(
'article1'
,
$article1
)
->
with
(
'article1'
,
$article1
)
->
with
(
'article2'
,
$article2
)
->
with
(
'article2'
,
$article2
)
->
with
(
'IndexNav'
,
$navigation
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
'language_type'
,
$language_type
)
->
with
(
compact
(
'events'
))
->
with
(
compact
(
'events'
))
->
with
(
compact
(
'banner4'
))
->
with
(
compact
(
'banner4'
))
...
...
app/Providers/AppServiceProvider.php
View file @
abbdeda7
...
@@ -29,7 +29,7 @@ class AppServiceProvider extends ServiceProvider
...
@@ -29,7 +29,7 @@ class AppServiceProvider extends ServiceProvider
Schema
::
defaultStringLength
(
191
);
Schema
::
defaultStringLength
(
191
);
View
::
composer
(
View
::
composer
(
[
'admin.*'
,
'
index.*'
,
'
layouts.*'
],
[
'admin.*'
,
'layouts.*'
],
'App\Http\Controllers\HelperController@index'
'App\Http\Controllers\HelperController@index'
);
);
}
}
...
...
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