Commit 2459b9b1 by mushishixian

添加菜单

parent 25a1c235
...@@ -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;
} }
......
...@@ -5,10 +5,17 @@ ...@@ -5,10 +5,17 @@
@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']))
@if (!empty($v['target']))
<a @if(!empty($v['href'])) href="{{$v['href']}}" target="_blank" @endif>
<i class="layui-icon {{$v['class'] or ''}}"></i>&emsp;<cite>{{$v['title'] or ''}}</cite>
</a>
@else
<a @if(!empty($v['href'])) lay-href="{{iframeUrl($v['href'])}}" @endif> <a @if(!empty($v['href'])) lay-href="{{iframeUrl($v['href'])}}" @endif>
<i class="layui-icon {{$v['class'] or ''}}"></i>&emsp;<cite>{{$v['title'] or ''}}</cite> <i class="layui-icon {{$v['class'] or ''}}"></i>&emsp;<cite>{{$v['title'] or ''}}</cite>
</a> </a>
@endif @endif
@endif
@include("layouts.menu") @include("layouts.menu")
</li> </li>
@endforeach @endforeach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment