index.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0" />
  7. <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
  8. <!-- <script src="./plantracking/js/jquery.min.js"></script>
  9. <script src="./plantracking/js/jquery.fn.gantt.js"></script>
  10. <script src="./plantracking/js/dexie.js"></script> -->
  11. <link rel="stylesheet" href="./plantracking/css/style.css" />
  12. <script src="./aescode/aes.js"></script>
  13. <title><%= htmlWebpackPlugin.options.title %></title>
  14. </head>
  15. <body>
  16. <noscript>
  17. <strong>
  18. We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without
  19. JavaScript enabled. Please enable it to continue.
  20. </strong>
  21. </noscript>
  22. <div id="app">
  23. <!-- vue app启动前的静态加载页 -->
  24. <style>
  25. .first-loading-wrp {
  26. position: absolute;
  27. top: 50%;
  28. left: 0;
  29. width: 100%;
  30. margin-top: -25px;
  31. opacity: 0;
  32. animation: fadein 0.5s;
  33. /* 一秒后才显示,避免网速正常时的闪动 */
  34. animation-delay: 1s;
  35. animation-fill-mode: forwards;
  36. }
  37. .first-loading-wrp .loading-wrp {
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. padding-bottom: 7px;
  42. }
  43. .first-loading-wrp .dot {
  44. position: relative;
  45. box-sizing: border-box;
  46. display: inline-block;
  47. width: 32px;
  48. height: 32px;
  49. font-size: 32px;
  50. transform: rotate(45deg);
  51. animation: antRotate 1.2s infinite linear;
  52. }
  53. .first-loading-wrp .dot i {
  54. position: absolute;
  55. display: block;
  56. width: 14px;
  57. height: 14px;
  58. background-color: <%= htmlWebpackPlugin.options.primaryColor %>;
  59. border-radius: 100%;
  60. opacity: 0.3;
  61. transform: scale(0.75);
  62. transform-origin: 50% 50%;
  63. animation: antSpinMove 1s infinite linear alternate;
  64. }
  65. .first-loading-wrp .dot i:nth-child(1) {
  66. top: 0;
  67. left: 0;
  68. }
  69. .first-loading-wrp .dot i:nth-child(2) {
  70. top: 0;
  71. right: 0;
  72. animation-delay: 0.4s;
  73. }
  74. .first-loading-wrp .dot i:nth-child(3) {
  75. right: 0;
  76. bottom: 0;
  77. animation-delay: 0.8s;
  78. }
  79. .first-loading-wrp .dot i:nth-child(4) {
  80. bottom: 0;
  81. left: 0;
  82. animation-delay: 1.2s;
  83. }
  84. .first-loading-wrp .loading-msg {
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. }
  89. @keyframes fadein {
  90. from {
  91. opacity: 0;
  92. }
  93. to {
  94. opacity: 1;
  95. }
  96. }
  97. @keyframes antRotate {
  98. to {
  99. transform: rotate(405deg);
  100. }
  101. }
  102. @keyframes antSpinMove {
  103. to {
  104. opacity: 1;
  105. }
  106. }
  107. </style>
  108. <div class="first-loading-wrp">
  109. <div class="loading-wrp">
  110. <span class="dot dot-spin">
  111. <i></i>
  112. <i></i>
  113. <i></i>
  114. <i></i>
  115. </span>
  116. </div>
  117. <div class="loading-msg">正在加载……</div>
  118. </div>
  119. </div>
  120. <!-- built files will be auto injected -->
  121. </body>
  122. </html>