app.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?php
  2. use App\Facades\RemoteSsoFacade;
  3. use Encore\Admin\Facades\Admin;
  4. $userModelClass = config('admin.database.users_model');
  5. // $userModel = new $userModelClass();
  6. // $checkUserData = $userModel::query()
  7. // // ->where(
  8. // // array(
  9. // // "third_openid"=>$signData["open_id"],
  10. // // )
  11. // // )
  12. // ->orderBy("id","desc")->first();
  13. // Admin::guard()->login(
  14. // $checkUserData
  15. // );
  16. $menuResult = RemoteSsoFacade::getUserMenuWebsiteData(Admin::user()->third_openid);//$thirdOpenid);
  17. // print_r($menuResult);exit;
  18. ?>
  19. <!DOCTYPE html>
  20. <!-- saved from url=(0058)https://whdx-psy.qingerai.com/index.php?ap=visit&task=main -->
  21. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  22. <title>武汉大学中南医院</title>
  23. <link rel="icon" type="image/png" href="https://whdx-psy.qingerai.com/image/favicon.png">
  24. <meta name="apple-mobile-web-app-title" content="武汉大学中南医院">
  25. <meta name="csrf-token" content="{{ csrf_token() }}">
  26. <script type="text/javascript" src="https://whdx-psy.qingerai.com/include/js/jquery-3.6.0.min.js"></script>
  27. <script type="text/javascript" src="https://whdx-psy.qingerai.com/include/js/jquery-3.6.0.min.jslayer.js"></script>
  28. <link rel="stylesheet" href="{{ asset('css/layer.css')}}" id="layuicss-layer">
  29. <script type="text/javascript" src="{{ asset('js/public.js')}}"></script>
  30. <link rel="stylesheet" href="{{ asset('css/style.css')}}">
  31. <!-- <link rel="stylesheet" href="{{ asset('css/style_new.css')}}"> -->
  32. <link rel="stylesheet" href="{{ asset('css/sso_style.css')}}">
  33. <link rel="bookmark" type="image/x-icon" href="https://whdx-psy.qingerai.com/web/_subsite/1/template/web/zh-cn/default/visit/image/favicon.ico">
  34. <link rel="shortcut icon" type="image/x-icon" href="https://whdx-psy.qingerai.com/web/_subsite/1/template/web/zh-cn/default/visit/image/favicon.ico">
  35. <script>
  36. var js_include_dir = '/include/js/',
  37. is_start_picture_distribution = "1";
  38. </script>
  39. <script type="text/javascript">
  40. function openNotice(data)
  41. {
  42. //检查是否掉登录
  43. var checkLanding = $().checkLanding({
  44. jump_url:'/index.php?ap=visit&task=loginOut',
  45. check_url:'/index.php?ap=visit&task=checkLanding',
  46. second:3
  47. });
  48. if(checkLanding.success){
  49. if(checkLanding.is_out) return false;
  50. }else{
  51. layer.msg(checkLanding.msg);
  52. return false;
  53. }
  54. //示范一个公告层
  55. layer.open({
  56. type: 1
  57. ,title: false //不显示标题栏
  58. ,closeBtn: false
  59. ,area: '300px;'
  60. ,shade: 0.8
  61. ,id: 'relogin' //设定一个id,防止重复弹出
  62. ,btn: ['立即重新登陆']
  63. ,btnAlign: 'c'
  64. ,moveType: 1 //拖拽模式,0或者1
  65. ,content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">恭喜您已完成更新<br><br>系统将自动为您重新登录</div>'
  66. ,yes: function(){
  67. window.location.href="/index.php?ap=visit&task=gridTokenLogin&ocu_id="+data.id+"&token="+data.token+"&check_time="+data.check_time
  68. }
  69. });
  70. }
  71. </script></head>
  72. <body class="home-bg">
  73. <div class="header sp_ends">
  74. <div class="vertical_dq">
  75. <div class="logo" style="height:53px"><img src="{{$menuResult['data']['logo']}}"></div>
  76. </div>
  77. <div class="title">{{$menuResult["data"]["title"]}}</div>
  78. <div class="vertical_dq">
  79. <div class="pulldown nav">
  80. <div class="dt vertical_dq">
  81. <img class="wh_30 bor_circle" src="{{asset('image/tx.png')}}">
  82. <div>{{Admin::user()->name}}</div>
  83. </div>
  84. <div class="dd">
  85. <ul>
  86. <li><a href="{{$menuResult['data']['login_out_url']}}">退出登录</a></li>
  87. </ul>
  88. </div>
  89. </div>
  90. <div class="byl-icon-bell_alt mar_l16"><i></i></div>
  91. </div>
  92. </div>
  93. <div class="menu-box">
  94. <div class="menu-logo">
  95. <img src="{{$menuResult['data']['site_logo']?:''}}">
  96. <div class="txt" style = "line-height: 1.2;font-size: 16px;color: #049985;font-weight: bold;text-align:center">{{Admin::user()->workstation_name}}</div>
  97. </div>
  98. <ul class="new_menu">
  99. @foreach($menuResult["menu"] as $key=>$item)
  100. <li class="Level_1" url="{{$item["menu_url"]}}"><span class="{{$item["menu_style"]}}" ></span>{{$item['title']}}
  101. @if (isset($item["sub"]))<i></i>@endif
  102. </li>
  103. @if (isset($item["sub"]))
  104. <div class="menu-con">
  105. @foreach($item["sub"] as $val)
  106. <a url="{{$val["menu_url"]}}" class="Level_2">{{$val['title']}}</a>
  107. @endforeach
  108. </div>
  109. @else
  110. @endif
  111. @endforeach
  112. </ul>
  113. </div>
  114. <div class="main-r right-header">
  115. <div >
  116. <!-- <ul>
  117. </ul> -->
  118. </div>
  119. <br/>
  120. @yield('content')
  121. </div>
  122. <script type="text/javascript">
  123. function changeFrameHeight() {
  124. var iframe = document.getElementById("iframe");
  125. iframe.height = document.documentElement.clientHeight;
  126. }
  127. //onresize属性可以用来获取或设置当前窗口的resize事件的事件处理函数
  128. //onresize事件会在窗口或框架被调整大小时发生
  129. window.onresize = function() {
  130. changeFrameHeight();
  131. }
  132. // 折叠菜单
  133. $(".menu-box li").click(function(){
  134. $(this).toggleClass("active").next(".menu-con").slideToggle(200).siblings(".menu-con").slideUp("slow");
  135. $(this).siblings().removeClass("active");
  136. $(".menu-con a").removeClass("active");
  137. });
  138. $(".menu-con a").click(function(){
  139. $(this).addClass('active').siblings().removeClass('active');
  140. })
  141. $(".Level_1").click(function(){
  142. var _this = $(this);
  143. var url = _this.attr("url");
  144. if (!_this.next().is(".menu-con")){
  145. window.location.href = url;
  146. }
  147. })
  148. $(".Level_2").click(function(){
  149. var url = $(this).attr("url");
  150. window.location.href = url;
  151. })
  152. $(".pulldown").each(function(){
  153. var s=$(this);
  154. var dt=$(this).children(".dt");
  155. var dd=$(this).children(".dd");
  156. var _show=function(){dd.slideDown(200);dt.addClass("cur");};
  157. var _hide=function(){dd.slideUp(200);dt.removeClass("cur");};
  158. dt.click(function(){dd.is(":hidden")?_show():_hide();});
  159. $("body").click(function(i){ !$(i.target).parents(".pulldown").first().is(s) ? _hide():"";
  160. });
  161. });
  162. </script>
  163. <!-- <ul class="left-nav scroll-bar" id="ul_content">
  164. <li id="" class="menu_li active" data-menu_id="1"><a href="https://whdx-psy.qingerai.com/index.php?ap=visit&task=main" target="main"><div class="ico icon4"></div><div class="txt">工作站管理</div></a></li>
  165. <li id="customerListMenu" class="menu_li" data-menu_id="2"><a href="https://whdx-psy.qingerai.com/index.php?ap=visit&task=main" target="main"><div id="menu_visit_interflow" style=""></div><div class="ico icon2"></div><div class="txt">心理档案</div></a></li>
  166. <li id="screeningTaskList" class="menu_li" data-menu_id="3"><a href="https://whdx-psy.qingerai.com/index.php?ap=visit&task=main" target="main"><div id="menu_visit_interflow" style="display:none;"><div class="number">0</div></div><div class="ico icon5"></div><div class="txt">筛查任务</div></a></li>
  167. <li id="" class="menu_li" data-menu_id="4"><a href="https://whdx-psy.qingerai.com/index.php?ap=visit&task=main" target="main"><div class="ico icon1"></div><div class="txt">质控管理</div></a></li>
  168. <li id="" class="menu_li" data-menu_id="5"><a href="https://whdx-psy.qingerai.com/index.php?ap=visit&task=main" target="main"><div class="ico icon6"></div><div class="txt">统计分析</div></a></li>
  169. <div class="disable"><a href="javascript:void(0);"><div class="byl-icon-lock" title="无权限操作"></div><div class="ico icon5"></div><div class="txt">在线咨询</div></a></div>
  170. </ul> -->
  171. <!-- <div class="header sp_ends">
  172. <div class="vertical_dq">
  173. <div class="logo"><img src="/oss/images/logo2.png"></div>
  174. </div>
  175. <div class="title">{{config('admin.name')}}</div>
  176. <div class="vertical_dq">
  177. <div class="pulldown nav">
  178. <div class="dt vertical_dq">
  179. <img class="wh_30 bor_circle" src="{{Admin::user()->avatar}}">
  180. <div>{{Admin::user()->name}}</div>
  181. </div>
  182. <div class="dd">
  183. <ul>
  184. <li><a href="{{admin_url('auth/logout') }}">退出登录</a></li>
  185. </ul>
  186. </div>
  187. </div>
  188. @if (isset($menuResult["msg"]) && $menuResult["msg"]["num"]>0)
  189. <a href="{{$menuResult["msg"]["url"]}}">
  190. <div class="byl-icon-bell_alt mar_l16"><i></i></div>
  191. </a>
  192. @endif
  193. </div>
  194. </div>
  195. <div class="menu-box">
  196. <div class="menu-logo">
  197. <img src="https://hw-bj-resource.qingerai.com/group1/M00/00/04/CgAAAmckZvSARO8-AAAbJnMNjrc539.jpg">
  198. <div class="txt" style = "line-height: 1.2;font-size: 16px;color: #049985;font-weight: bold;text-align:center">{{Admin::user()->workstation_name}}</div>
  199. </div>
  200. <ul class="new_menu">
  201. @foreach($menuResult["menu"] as $key=>$item)
  202. <li class="Level_1" url="{{$item["menu_url"]}}"><span class="{{$item["menu_style"]}}" ></span>{{$item['title']}}
  203. @if (isset($item["sub"]))<i></i>@endif
  204. </li>
  205. @if (isset($item["sub"]))
  206. @foreach($item["sub"] as $val)
  207. <div class="menu-con">
  208. <a url="{{$val["menu_url"]}}" class="Level_2">{{$val['title']}}</a>
  209. </div>
  210. @endforeach
  211. @else
  212. @endif
  213. @endforeach
  214. </ul>
  215. </div>
  216. <div class="right-main">
  217. <div class="right-header">
  218. <div class="top sp_ends">
  219. <div class="float-l vertical_dq">
  220. <div class="logo float-l"><img src="https://hw-fdfs.qingerai.com/group1/M00/A8/FA/rBcAAmbzZa6AeVPPAAAgmgbyoZA040.png"></div>
  221. <div class="title float-l">体检中心</div>-->
  222. <!-- </div>
  223. <div style="display: flex; align-items: center;">
  224. <em></em>
  225. <div class="user">
  226. <div class="tx"><img src="https://whdx-psy.qingerai.com//web/_subsite/1/template/web/zh-cn/default/component/image/tx.jpg"></div>
  227. <div class="flex" style="float:left;">
  228. <div class="font-bold font-15">xiaoqing</div>
  229. <div class="color-666 font-12"></div>
  230. </div>
  231. </div>
  232. <em></em>
  233. <a href="https://whdx-psy.qingerai.com/index.php?task=loginOut" class="color-orange" target="_top"><i class="ico icon19"></i>退出</a>
  234. </div>
  235. </div>
  236. <div class="tab">
  237. <ul> -->
  238. <!-- </ul>
  239. </div>
  240. <div class="guide vertical_dq"> -->
  241. <!-- <a class="ico icon20 go_back" style="display: none;"></a>
  242. <div class="flex">当前位置:<a href="https://whdx-psy.qingerai.com/index.php?task=welcome">首页</a> &gt; <a href="https://whdx-psy.qingerai.com/index.php?op=team&amp;task=team&amp;mk=4">团体体检</a> &gt; <a href="https://whdx-psy.qingerai.com/index.php?op=team&amp;task=team&amp;mk=4">体检单位</a> </div>
  243. <a class="ico icon21 go_start" style="display: none;"></a> -->
  244. <!-- </div>
  245. </div> -->
  246. <!-- </div> -->
  247. </body>
  248. </html>