index.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="renderer" content="webkit">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  8. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9. <title><%= webpackConfig.name %></title>
  10. <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  11. <script type="text/javascript">
  12. window._AMapSecurityConfig = {
  13. securityJsCode: "YOUR_SECURITY_CODE", // 如果使用安全密钥
  14. };
  15. </script>
  16. <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=YOUR_AMAP_KEY&plugin=AMap.Scale,AMap.OverView,AMap.ToolBar,AMap.MapType"></script>
  17. <style>
  18. html,
  19. body,
  20. #app {
  21. height: 100%;
  22. margin: 0px;
  23. padding: 0px;
  24. }
  25. .chromeframe {
  26. margin: 0.2em 0;
  27. background: #ccc;
  28. color: #000;
  29. padding: 0.2em 0;
  30. }
  31. #loader-wrapper {
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 100%;
  37. z-index: 999999;
  38. background:
  39. radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.4) 0%, transparent 60%),
  40. radial-gradient(circle at 80% 70%, rgba(102, 187, 106, 0.4) 0%, transparent 60%),
  41. radial-gradient(circle at 40% 80%, rgba(76, 175, 80, 0.3) 0%, transparent 50%),
  42. radial-gradient(circle at 60% 20%, rgba(129, 199, 132, 0.3) 0%, transparent 50%),
  43. linear-gradient(135deg, #2E7D32 0%, #4CAF50 25%, #66BB6A 50%, #4CAF50 75%, #388E3C 100%);
  44. overflow: hidden;
  45. }
  46. #loader-wrapper::before {
  47. content: '';
  48. position: absolute;
  49. top: 0;
  50. left: 0;
  51. right: 0;
  52. bottom: 0;
  53. background:
  54. repeating-linear-gradient(
  55. 45deg,
  56. transparent,
  57. transparent 3px,
  58. rgba(255, 255, 255, 0.02) 3px,
  59. rgba(255, 255, 255, 0.02) 6px
  60. );
  61. animation: shimmer 4s ease-in-out infinite;
  62. }
  63. #loader-wrapper::after {
  64. content: '';
  65. position: absolute;
  66. top: -25%;
  67. left: -25%;
  68. width: 150%;
  69. height: 150%;
  70. background: radial-gradient(
  71. circle,
  72. rgba(255, 255, 255, 0.08) 0%,
  73. rgba(255, 255, 255, 0.04) 30%,
  74. transparent 60%
  75. );
  76. animation: rotate 12s linear infinite;
  77. }
  78. #loader {
  79. display: block;
  80. position: relative;
  81. left: 50%;
  82. top: 50%;
  83. width: 150px;
  84. height: 150px;
  85. margin: -75px 0 0 -75px;
  86. border-radius: 50%;
  87. border: 4px solid transparent;
  88. border-top: 4px solid rgba(255, 255, 255, 0.9);
  89. border-right: 4px solid rgba(255, 255, 255, 0.3);
  90. border-bottom: 4px solid rgba(255, 255, 255, 0.1);
  91. border-left: 4px solid rgba(255, 255, 255, 0.6);
  92. box-shadow:
  93. 0 0 30px rgba(76, 175, 80, 0.4),
  94. inset 0 0 20px rgba(255, 255, 255, 0.1),
  95. 0 0 60px rgba(76, 175, 80, 0.2);
  96. backdrop-filter: blur(2px);
  97. -webkit-animation: spin 2s linear infinite;
  98. -ms-animation: spin 2s linear infinite;
  99. -moz-animation: spin 2s linear infinite;
  100. -o-animation: spin 2s linear infinite;
  101. animation: spin 2s linear infinite;
  102. z-index: 1001;
  103. }
  104. #loader:before {
  105. content: "";
  106. position: absolute;
  107. top: 5px;
  108. left: 5px;
  109. right: 5px;
  110. bottom: 5px;
  111. border-radius: 50%;
  112. border: 3px solid transparent;
  113. border-top-color: rgba(255, 255, 255, 0.7);
  114. -webkit-animation: spin 3s linear infinite;
  115. -moz-animation: spin 3s linear infinite;
  116. -o-animation: spin 3s linear infinite;
  117. -ms-animation: spin 3s linear infinite;
  118. animation: spin 3s linear infinite;
  119. }
  120. #loader:after {
  121. content: "";
  122. position: absolute;
  123. top: 15px;
  124. left: 15px;
  125. right: 15px;
  126. bottom: 15px;
  127. border-radius: 50%;
  128. border: 3px solid transparent;
  129. border-top-color: rgba(255, 255, 255, 0.5);
  130. -moz-animation: spin 1.5s linear infinite;
  131. -o-animation: spin 1.5s linear infinite;
  132. -ms-animation: spin 1.5s linear infinite;
  133. -webkit-animation: spin 1.5s linear infinite;
  134. animation: spin 1.5s linear infinite;
  135. }
  136. @-webkit-keyframes spin {
  137. 0% {
  138. -webkit-transform: rotate(0deg);
  139. -ms-transform: rotate(0deg);
  140. transform: rotate(0deg);
  141. }
  142. 100% {
  143. -webkit-transform: rotate(360deg);
  144. -ms-transform: rotate(360deg);
  145. transform: rotate(360deg);
  146. }
  147. }
  148. @keyframes spin {
  149. 0% {
  150. -webkit-transform: rotate(0deg);
  151. -ms-transform: rotate(0deg);
  152. transform: rotate(0deg);
  153. }
  154. 100% {
  155. -webkit-transform: rotate(360deg);
  156. -ms-transform: rotate(360deg);
  157. transform: rotate(360deg);
  158. }
  159. }
  160. @keyframes shimmer {
  161. 0%, 100% {
  162. opacity: 0.3;
  163. transform: translateX(-100%);
  164. }
  165. 50% {
  166. opacity: 0.8;
  167. transform: translateX(100%);
  168. }
  169. }
  170. @keyframes rotate {
  171. 0% {
  172. transform: rotate(0deg);
  173. }
  174. 100% {
  175. transform: rotate(360deg);
  176. }
  177. }
  178. @keyframes pulse {
  179. 0%, 100% {
  180. opacity: 0.6;
  181. transform: scale(1);
  182. }
  183. 50% {
  184. opacity: 1;
  185. transform: scale(1.05);
  186. }
  187. }
  188. .loaded #loader {
  189. opacity: 0;
  190. -webkit-transition: all 0.3s ease-out;
  191. transition: all 0.3s ease-out;
  192. }
  193. .loaded #loader-wrapper {
  194. visibility: hidden;
  195. -webkit-transform: translateY(-100%);
  196. -ms-transform: translateY(-100%);
  197. transform: translateY(-100%);
  198. -webkit-transition: all 0.3s 1s ease-out;
  199. transition: all 0.3s 1s ease-out;
  200. }
  201. .no-js #loader-wrapper {
  202. display: none;
  203. }
  204. .no-js h1 {
  205. color: #222222;
  206. }
  207. #loader-wrapper .load_title {
  208. font-family: 'Open Sans', 'Microsoft YaHei', sans-serif;
  209. color: #FFF;
  210. font-size: 20px;
  211. font-weight: 600;
  212. width: 100%;
  213. text-align: center;
  214. z-index: 9999999999999;
  215. position: absolute;
  216. top: 60%;
  217. opacity: 1;
  218. line-height: 30px;
  219. text-shadow:
  220. 0 2px 4px rgba(0, 0, 0, 0.3),
  221. 0 0 20px rgba(76, 175, 80, 0.6),
  222. 0 0 40px rgba(76, 175, 80, 0.3);
  223. letter-spacing: 1px;
  224. animation: pulse 2s ease-in-out infinite;
  225. }
  226. #loader-wrapper .load_title span {
  227. font-weight: normal;
  228. font-style: italic;
  229. font-size: 14px;
  230. color: rgba(255, 255, 255, 0.8);
  231. opacity: 0.7;
  232. display: block;
  233. margin-top: 8px;
  234. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  235. }
  236. </style>
  237. </head>
  238. <body>
  239. <div id="app">
  240. <div id="loader-wrapper">
  241. <div id="loader"></div>
  242. <div class="load_title">正在加载系统资源,请耐心等待</div>
  243. </div>
  244. </div>
  245. </body>
  246. </html>