index.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta
  7. name="viewport"
  8. content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
  9. />
  10. <title>校园管理移动端</title>
  11. <!-- 针对移动端的优化 -->
  12. <meta name="format-detection" content="telephone=no" />
  13. <meta name="format-detection" content="email=no" />
  14. <meta name="format-detection" content="address=no" />
  15. <!-- 苹果设备配置 -->
  16. <meta name="apple-mobile-web-app-capable" content="yes" />
  17. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  18. <meta name="apple-mobile-web-app-title" content="校园管理" />
  19. <!-- 安卓设备配置 -->
  20. <meta name="mobile-web-app-capable" content="yes" />
  21. <meta name="theme-color" content="#3c9cff" />
  22. <!-- SEO优化 -->
  23. <meta name="description" content="校园管理移动端应用" />
  24. <meta name="keywords" content="校园管理,移动端,uniapp" />
  25. <meta name="author" content="校园管理系统" />
  26. <style>
  27. /* 预加载样式 */
  28. .loading-container {
  29. position: fixed;
  30. top: 0;
  31. left: 0;
  32. right: 0;
  33. bottom: 0;
  34. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. justify-content: center;
  39. z-index: 9999;
  40. }
  41. .loading-logo {
  42. width: 80px;
  43. height: 80px;
  44. background: rgba(255, 255, 255, 0.2);
  45. border-radius: 16px;
  46. margin-bottom: 24px;
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. font-size: 32px;
  51. color: #fff;
  52. font-weight: bold;
  53. }
  54. .loading-text {
  55. color: #fff;
  56. font-size: 16px;
  57. margin-bottom: 32px;
  58. }
  59. .loading-spinner {
  60. width: 32px;
  61. height: 32px;
  62. border: 3px solid rgba(255, 255, 255, 0.3);
  63. border-top: 3px solid #fff;
  64. border-radius: 50%;
  65. animation: spin 1s linear infinite;
  66. }
  67. @keyframes spin {
  68. 0% {
  69. transform: rotate(0deg);
  70. }
  71. 100% {
  72. transform: rotate(360deg);
  73. }
  74. }
  75. </style>
  76. </head>
  77. <body>
  78. <noscript>
  79. <strong>很抱歉,校园管理移动端需要启用JavaScript才能正常运行。</strong>
  80. </noscript>
  81. <!-- 预加载界面 -->
  82. <div id="loading" class="loading-container">
  83. <div class="loading-logo">校</div>
  84. <div class="loading-text">校园管理移动端</div>
  85. <div class="loading-spinner"></div>
  86. </div>
  87. <div id="app"></div>
  88. <script>
  89. // 隐藏预加载界面
  90. window.addEventListener('load', function () {
  91. setTimeout(function () {
  92. const loading = document.getElementById('loading');
  93. if (loading) {
  94. loading.style.opacity = '0';
  95. loading.style.transition = 'opacity 0.3s ease';
  96. setTimeout(function () {
  97. loading.style.display = 'none';
  98. }, 300);
  99. }
  100. }, 1000);
  101. });
  102. </script>
  103. </body>
  104. </html>