123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <html><head>
- <meta charset="UTF-8">
- <meta name="apple-mobile-web-app-capable" content="no">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta content="telephone=no" name="format-detection">
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
- <title>{{$menuResult["data"]['title']}}</title>
- <link rel="stylesheet" href="/oss/css/style.css">
- <script src="/oss/js/jquery-3.7.1.min.js"></script>
- </head>
- <body>
- <div class="header sp_ends">
- <div class="vertical_dq">
- <div class="logo"><img src="{{$menuResult['data']['logo']}}"></div>
- </div>
- <div class="title">{{$menuResult["data"]["title"]}}</div>
- <div class="vertical_dq">
- <div class="pulldown nav">
- <div class="dt vertical_dq">
- <img class="wh_30 bor_circle" src="{{Admin::user()->avatar}}">
- <div>{{Admin::user()->name}}</div>
- </div>
- <div class="dd">
- <ul>
- <li><a href="{{$menuResult['data']['login_out_url']}}">退出登录</a></li>
- </ul>
- </div>
- </div>
- @if (isset($menuResult["msg"]) && $menuResult["msg"]["num"]>0)
- <a href="{{$menuResult["msg"]["url"]}}">
- <div class="byl-icon-bell_alt mar_l16"><i></i></div>
- </a>
- @endif
- </div>
- </div>
- <div class="menu-box">
- <div class="menu-logo">
- <img src="https://hw-bj-resource.qingerai.com/group1/M00/00/04/CgAAAmckZvSARO8-AAAbJnMNjrc539.jpg">
- <div class="txt" style = "line-height: 1.2;font-size: 16px;color: #049985;font-weight: bold;text-align:center">{{Admin::user()->workstation_name}}</div>
- </div>
- <ul class="new_menu">
- @foreach($menuResult["menu"] as $key=>$item)
- <li class="Level_1" url="{{$item["menu_url"]}}"><span class="{{$item["menu_style"]}}" ></span>{{$item['title']}}
- @if (isset($item["sub"]))<i></i>@endif
- </li>
- @if (isset($item["sub"]))
- <div class="menu-con">
- @foreach($item["sub"] as $val)
- <a url="{{$val["menu_url"]}}" class="Level_2">{{$val['title']}}</a>
- @endforeach
- </div>
- @else
- @endif
- @endforeach
-
- </ul>
- </div>
- <div class="main-r">
- <!-- 内容区域 -->
- <div class="home-box flex_box">
- @if (isset($menuResult["msg"]) && $menuResult["msg"]["num"]>0)
- <dl class="width_300 flex_column mar_r16 home-left">
- <dt class="vertical_dq"><div class="font_18 font_bold">消息通知</div></dt>
- <dd class="flex flex_box overflow">
- <div class="bg_fff scrollbar bor_circle12 relative">
- {{-- <a href="#" class="vertical_dq">--}}
- {{-- <span class="db">待办</span>--}}
- {{-- <div class="text_clamp2 flex">需要创建一个筛查任务</div>--}}
- {{-- </a>--}}
- <a href="{{$menuResult["msg"]["url"]}}" class="vertical_dq">
- <span class="xx">消息</span>
- <div class="text_clamp2 flex">你有新消息</div>
- </a>
- {{-- <a href="#" class="vertical_dq">--}}
- {{-- <span class="tz">通知</span>--}}
- {{-- <div class="text_clamp2 flex">需要创建一个筛查任务</div>--}}
- {{-- </a>--}}
- {{-- <div class="not-selected text_c">--}}
- {{-- <img class="width_160" src="/oss/images/not-available3.png">--}}
- {{-- <div class="color_999">暂无数据</div>--}}
- {{-- </div>--}}
- </div>
- </dd>
- </dl>
- @endif
- <dl class="flex flex_column home-right">
- <iframe id="iframe"
- name="iframe"
- height="100%"
- width="100%"
- src="{{$indexUrl}}?{{$paramUrl}}"
- scrolling="auto"
- frameborder="0"
- onload="changeFrameHeight()">
- </iframe>
- </dl>
- </div>
- <!-- 内容区域 -->
- </div>
- </body>
- </html>
- <script type="text/javascript">
- function changeFrameHeight() {
- var iframe = document.getElementById("iframe");
- iframe.height = document.documentElement.clientHeight;
- }
- //onresize属性可以用来获取或设置当前窗口的resize事件的事件处理函数
- //onresize事件会在窗口或框架被调整大小时发生
- window.onresize = function() {
- changeFrameHeight();
- }
- // 折叠菜单
- $(".menu-box li").click(function(){
- $(this).toggleClass("active").next(".menu-con").slideToggle(200).siblings(".menu-con").slideUp("slow");
- $(this).siblings().removeClass("active");
- $(".menu-con a").removeClass("active");
- });
- $(".menu-con a").click(function(){
- $(this).addClass('active').siblings().removeClass('active');
- })
- $(".Level_1").click(function(){
- var _this = $(this);
- var url = _this.attr("url");
- if (!_this.next().is(".menu-con")){
- window.location.href = url;
- }
- })
- $(".Level_2").click(function(){
- var url = $(this).attr("url");
- window.location.href = url;
- })
- $(".pulldown").each(function(){
- var s=$(this);
- var dt=$(this).children(".dt");
- var dd=$(this).children(".dd");
- var _show=function(){dd.slideDown(200);dt.addClass("cur");};
- var _hide=function(){dd.slideUp(200);dt.removeClass("cur");};
- dt.click(function(){dd.is(":hidden")?_show():_hide();});
- $("body").click(function(i){ !$(i.target).parents(".pulldown").first().is(s) ? _hide():"";
- });
- });
- </script>
|