index.blade.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <html><head>
  2. <meta charset="UTF-8">
  3. <meta name="apple-mobile-web-app-capable" content="no">
  4. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  5. <meta content="telephone=no" name="format-detection">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
  7. <title>{{$menuResult["data"]['title']}}</title>
  8. <link rel="stylesheet" href="/oss/css/style.css">
  9. <script src="/oss/js/jquery-3.7.1.min.js"></script>
  10. </head>
  11. <body>
  12. <div class="header sp_ends">
  13. <div class="vertical_dq">
  14. <div class="logo"><img src="{{$menuResult['data']['logo']}}"></div>
  15. </div>
  16. <div class="title">{{$menuResult["data"]["title"]}}</div>
  17. <div class="vertical_dq">
  18. <div class="pulldown nav">
  19. <div class="dt vertical_dq">
  20. <img class="wh_30 bor_circle" src="{{Admin::user()->avatar}}">
  21. <div>{{Admin::user()->name}}</div>
  22. </div>
  23. <div class="dd">
  24. <ul>
  25. <li><a href="{{$menuResult['data']['login_out_url']}}">退出登录</a></li>
  26. </ul>
  27. </div>
  28. </div>
  29. @if (isset($menuResult["msg"]) && $menuResult["msg"]["num"]>0)
  30. <a href="{{$menuResult["msg"]["url"]}}">
  31. <div class="byl-icon-bell_alt mar_l16"><i></i></div>
  32. </a>
  33. @endif
  34. </div>
  35. </div>
  36. <div class="menu-box">
  37. <div class="menu-logo">
  38. <img src="https://hw-bj-resource.qingerai.com/group1/M00/00/04/CgAAAmckZvSARO8-AAAbJnMNjrc539.jpg">
  39. <div class="txt" style = "line-height: 1.2;font-size: 16px;color: #049985;font-weight: bold;text-align:center">{{Admin::user()->workstation_name}}</div>
  40. </div>
  41. <ul class="new_menu">
  42. @foreach($menuResult["menu"] as $key=>$item)
  43. <li class="Level_1" url="{{$item["menu_url"]}}"><span class="{{$item["menu_style"]}}" ></span>{{$item['title']}}
  44. @if (isset($item["sub"]))<i></i>@endif
  45. </li>
  46. @if (isset($item["sub"]))
  47. <div class="menu-con">
  48. @foreach($item["sub"] as $val)
  49. <a url="{{$val["menu_url"]}}" class="Level_2">{{$val['title']}}</a>
  50. @endforeach
  51. </div>
  52. @else
  53. @endif
  54. @endforeach
  55. </ul>
  56. </div>
  57. <div class="main-r">
  58. <!-- 内容区域 -->
  59. <div class="home-box flex_box">
  60. @if (isset($menuResult["msg"]) && $menuResult["msg"]["num"]>0)
  61. <dl class="width_300 flex_column mar_r16 home-left">
  62. <dt class="vertical_dq"><div class="font_18 font_bold">消息通知</div></dt>
  63. <dd class="flex flex_box overflow">
  64. <div class="bg_fff scrollbar bor_circle12 relative">
  65. {{-- <a href="#" class="vertical_dq">--}}
  66. {{-- <span class="db">待办</span>--}}
  67. {{-- <div class="text_clamp2 flex">需要创建一个筛查任务</div>--}}
  68. {{-- </a>--}}
  69. <a href="{{$menuResult["msg"]["url"]}}" class="vertical_dq">
  70. <span class="xx">消息</span>
  71. <div class="text_clamp2 flex">你有新消息</div>
  72. </a>
  73. {{-- <a href="#" class="vertical_dq">--}}
  74. {{-- <span class="tz">通知</span>--}}
  75. {{-- <div class="text_clamp2 flex">需要创建一个筛查任务</div>--}}
  76. {{-- </a>--}}
  77. {{-- <div class="not-selected text_c">--}}
  78. {{-- <img class="width_160" src="/oss/images/not-available3.png">--}}
  79. {{-- <div class="color_999">暂无数据</div>--}}
  80. {{-- </div>--}}
  81. </div>
  82. </dd>
  83. </dl>
  84. @endif
  85. <dl class="flex flex_column home-right">
  86. <iframe id="iframe"
  87. name="iframe"
  88. height="100%"
  89. width="100%"
  90. src="{{$indexUrl}}?{{$paramUrl}}"
  91. scrolling="auto"
  92. frameborder="0"
  93. onload="changeFrameHeight()">
  94. </iframe>
  95. </dl>
  96. </div>
  97. <!-- 内容区域 -->
  98. </div>
  99. </body>
  100. </html>
  101. <script type="text/javascript">
  102. function changeFrameHeight() {
  103. var iframe = document.getElementById("iframe");
  104. iframe.height = document.documentElement.clientHeight;
  105. }
  106. //onresize属性可以用来获取或设置当前窗口的resize事件的事件处理函数
  107. //onresize事件会在窗口或框架被调整大小时发生
  108. window.onresize = function() {
  109. changeFrameHeight();
  110. }
  111. // 折叠菜单
  112. $(".menu-box li").click(function(){
  113. $(this).toggleClass("active").next(".menu-con").slideToggle(200).siblings(".menu-con").slideUp("slow");
  114. $(this).siblings().removeClass("active");
  115. $(".menu-con a").removeClass("active");
  116. });
  117. $(".menu-con a").click(function(){
  118. $(this).addClass('active').siblings().removeClass('active');
  119. })
  120. $(".Level_1").click(function(){
  121. var _this = $(this);
  122. var url = _this.attr("url");
  123. if (!_this.next().is(".menu-con")){
  124. window.location.href = url;
  125. }
  126. })
  127. $(".Level_2").click(function(){
  128. var url = $(this).attr("url");
  129. window.location.href = url;
  130. })
  131. $(".pulldown").each(function(){
  132. var s=$(this);
  133. var dt=$(this).children(".dt");
  134. var dd=$(this).children(".dd");
  135. var _show=function(){dd.slideDown(200);dt.addClass("cur");};
  136. var _hide=function(){dd.slideUp(200);dt.removeClass("cur");};
  137. dt.click(function(){dd.is(":hidden")?_show():_hide();});
  138. $("body").click(function(i){ !$(i.target).parents(".pulldown").first().is(s) ? _hide():"";
  139. });
  140. });
  141. </script>