Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2459b9b1
authored
Sep 24, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加菜单
parent
25a1c235
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
app/Http/Middleware/Menu.php
resources/views/layouts/navigation.blade.php
app/Http/Middleware/Menu.php
View file @
2459b9b1
...
...
@@ -65,6 +65,32 @@ class Menu
$v
[
'href'
]
=
!
empty
(
$urls
[
$routerName
])
?
$urls
[
$routerName
]
:
$v
[
'href'
];
}
}
//添加固定死的外链
$urls
=
[
[
'title'
=>
'商机管理'
,
'href'
=>
'https://yunxin.ichunt.com'
,
'class'
=>
'layui-icon-set'
,
'target'
=>
'_blank'
,
'childs'
=>
[],
],
[
'title'
=>
'寻报价管理'
,
'href'
=>
'http://frq.ichunt.net/inquiry/inquiryBoard'
,
'class'
=>
'layui-icon-set'
,
'target'
=>
'_blank'
,
'childs'
=>
[]
],
[
'title'
=>
'数据流管理'
,
'href'
=>
'http://access.ichunt.net/web/board'
,
'class'
=>
'layui-icon-set'
,
'target'
=>
'_blank'
,
'childs'
=>
[]
],
];
$menus
=
array_merge
(
$menus
,
$urls
);
return
$menus
;
}
...
...
resources/views/layouts/navigation.blade.php
View file @
2459b9b1
...
...
@@ -5,10 +5,17 @@
@foreach($menus as $k=>$v)
<li
class=
"layui-nav-item"
>
@if(!empty($v['title']))
@if (!empty($v['target']))
<a
@
if
(!
empty
($
v
['
href
']))
href=
"{{$v['href']}}"
target=
"_blank"
@
endif
>
<i
class=
"layui-icon {{$v['class'] or ''}}"
></i>
 
<cite>
{{$v['title'] or ''}}
</cite>
</a>
@else
<a
@
if
(!
empty
($
v
['
href
']))
lay-href=
"{{iframeUrl($v['href'])}}"
@
endif
>
<i
class=
"layui-icon {{$v['class'] or ''}}"
></i>
 
<cite>
{{$v['title'] or ''}}
</cite>
</a>
@endif
@endif
@include("layouts.menu")
</li>
@endforeach
...
...
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