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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 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
...
@@ -65,6 +65,32 @@ class Menu
$v
[
'href'
]
=
!
empty
(
$urls
[
$routerName
])
?
$urls
[
$routerName
]
:
$v
[
'href'
];
$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
;
return
$menus
;
}
}
...
...
resources/views/layouts/navigation.blade.php
View file @
2459b9b1
...
@@ -5,9 +5,16 @@
...
@@ -5,9 +5,16 @@
@foreach($menus as $k=>$v)
@foreach($menus as $k=>$v)
<li
class=
"layui-nav-item"
>
<li
class=
"layui-nav-item"
>
@if(!empty($v['title']))
@if(!empty($v['title']))
<a
@
if
(!
empty
($
v
['
href
']))
lay-href=
"{{iframeUrl($v['href'])}}"
@
endif
>
@if (!empty($v['target']))
<i
class=
"layui-icon {{$v['class'] or ''}}"
></i>
 
<cite>
{{$v['title'] or ''}}
</cite>
<a
@
if
(!
empty
($
v
['
href
']))
href=
"{{$v['href']}}"
target=
"_blank"
@
endif
>
</a>
<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
@endif
@include("layouts.menu")
@include("layouts.menu")
</li>
</li>
...
...
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