main.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="en" id="plg_app">
  3. <head>
  4. <meta charset="UTF-8">
  5. <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. -->
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  8. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  9. <title>菠菜云运维管理平台</title>
  10. <link rel="stylesheet" href="./prologui/dist/vendors/layui-master/dist/css/layui.rem.css" />
  11. <link rel="stylesheet" href="./prologui/dist/css/prolog.all-0.0.1.css" />
  12. <!-- 页面上使用css文件 -->
  13. <link rel="stylesheet" href="./styles/dist_css/style.css" />
  14. <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_799562_g9fbb4vlkl4.css" />
  15. <script src="./prologui/dist/vendors/jquery/jquery-3.3.1.min.js"></script>
  16. <script src="./prologui/dist/vendors/echarts/dist/echarts.js"></script>
  17. <script src="./prologui/dist/vendors/layui-master/dist/layui.all.js"></script>
  18. <script src="./prologui/dist/vendors/vipspa-master/build/vipspa.js"></script>
  19. <script src="./prologui/dist/vendors/dhtmlx/grid/codebase/dhtmlxgrid.js"></script>
  20. <script src="./prologui/dist/vendors/dhtmlx/form/codebase/dhtmlxform.js"></script>
  21. <script src="./prologui/dist/vendors/zTree_v3/js/jquery.ztree.core.min.js"></script>
  22. <script src="./prologui/dist/js/prolog.min-0.0.1.js"></script>
  23. <script src="./javascripts/api/index.js"></script>
  24. <script src="./javascripts/util.js"></script>
  25. <!-- <script src="./javascripts/adminPlant.js"></script> -->
  26. <!-- 国际化插件 -->
  27. <script src="./prologui/dist/vendors/jquery-i18next/lib/i18next.min.js"></script>
  28. <script src="./prologui/dist/vendors/jquery-i18next/lib/i18nextXHRBackend.js"></script>
  29. <script src="./prologui/dist/vendors/jquery-i18next/lib/i18nextBrowserLanguageDetector.js"></script>
  30. <script src="./prologui/dist/vendors/jquery-i18next/lib/jquery-i18next.min.js"></script>
  31. <script src="./javascripts/language/index.js"></script>
  32. <script>
  33. window.global_fun={}
  34. function GetQueryString(param) { //param为要获取的参数名 注:获取不到是为null
  35. var currentUrl = window.location.href; //获取当前链接
  36. var arr = currentUrl.split("?");//分割域名和参数界限
  37. if (arr.length > 1) {
  38. arr = arr[1].split("&")//分割参数
  39. arr = arr[0].split("=")//分割参数
  40. return localStorage.setItem('authorization',arr[1]);
  41. }
  42. else {
  43. return null;
  44. }
  45. };
  46. var elem=null
  47. function hashChange(){
  48. var path = window.location.hash;
  49. if(path){
  50. path='../jq/'+path.substring(1);
  51. $.ajax({
  52. url:path,
  53. type:'GET',
  54. dataType:'html',
  55. data:{},
  56. success:function(data){
  57. // console.log(GetQueryString())
  58. $("body").append(data);
  59. }
  60. });
  61. }
  62. }
  63. GetQueryString()
  64. window.onload=function(){
  65. hashChange()
  66. }
  67. </script>
  68. <style>
  69. body{
  70. padding:0px;
  71. background:rgb(240, 242, 245);
  72. }
  73. .plg-tab-container{padding: 0px;}
  74. </style>
  75. </head>
  76. <body class="layui-layout-admin">
  77. </body>
  78. <script>
  79. </script>
  80. </html>