index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <!DOCTYPE html>
  2. <html lang="zh_CN" id="htmlRoot">
  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
  8. name="viewport"
  9. content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
  10. />
  11. <title><%= title %></title>
  12. <!-- 全局配置 -->
  13. <script>
  14. // 检查域名是否包含 "soho"
  15. var isSohoDomain = window.location.hostname.includes('sohoeb2b');
  16. // 根据条件设置图标链接
  17. var iconLink = isSohoDomain ? '/soho_logo.png' : '/adweb_logo.png';
  18. // 创建或更新 <link> 标签
  19. var linkElement = document.createElement('link');
  20. linkElement.rel = 'icon';
  21. linkElement.href = iconLink;
  22. // 将新的 <link> 标签添加到 head 中
  23. document.head.appendChild(linkElement);
  24. window._CONFIG = {};
  25. </script>
  26. </head>
  27. <body>
  28. <script>
  29. (() => {
  30. var htmlRoot = document.getElementById('htmlRoot');
  31. var theme = window.localStorage.getItem('__APP__DARK__MODE__');
  32. if (htmlRoot && theme) {
  33. htmlRoot.setAttribute('data-theme', theme);
  34. theme = htmlRoot = null;
  35. }
  36. })();
  37. </script>
  38. <div id="app">
  39. <style>
  40. html[data-theme='dark'] .app-loading {
  41. background-color: #2c344a;
  42. }
  43. html[data-theme='dark'] .app-loading .app-loading-title {
  44. color: rgba(255, 255, 255, 0.85);
  45. }
  46. .app-loading {
  47. display: flex;
  48. width: 100%;
  49. height: 100%;
  50. justify-content: center;
  51. align-items: center;
  52. flex-direction: column;
  53. background-color: #f4f7f9;
  54. }
  55. .app-loading .app-loading-wrap {
  56. position: absolute;
  57. top: 50%;
  58. left: 50%;
  59. display: flex;
  60. -webkit-transform: translate3d(-50%, -50%, 0);
  61. transform: translate3d(-50%, -50%, 0);
  62. justify-content: center;
  63. align-items: center;
  64. flex-direction: column;
  65. }
  66. .app-loading .dots {
  67. display: flex;
  68. padding: 98px;
  69. justify-content: center;
  70. align-items: center;
  71. }
  72. .app-loading .app-loading-title {
  73. display: flex;
  74. margin-top: 30px;
  75. font-size: 30px;
  76. color: rgba(0, 0, 0, 0.85);
  77. justify-content: center;
  78. align-items: center;
  79. }
  80. .app-loading .app-loading-logo {
  81. display: block;
  82. width: 350px;
  83. margin: 0 auto;
  84. margin-bottom: 20px;
  85. }
  86. .dot {
  87. position: relative;
  88. display: inline-block;
  89. width: 48px;
  90. height: 48px;
  91. margin-top: 30px;
  92. font-size: 32px;
  93. transform: rotate(45deg);
  94. box-sizing: border-box;
  95. animation: antRotate 1.2s infinite linear;
  96. }
  97. .dot i {
  98. position: absolute;
  99. display: block;
  100. width: 20px;
  101. height: 20px;
  102. background-color: #0065cc;
  103. border-radius: 100%;
  104. opacity: 0.3;
  105. transform: scale(0.75);
  106. animation: antSpinMove 1s infinite linear alternate;
  107. transform-origin: 50% 50%;
  108. }
  109. .dot i:nth-child(1) {
  110. top: 0;
  111. left: 0;
  112. }
  113. .dot i:nth-child(2) {
  114. top: 0;
  115. right: 0;
  116. -webkit-animation-delay: 0.4s;
  117. animation-delay: 0.4s;
  118. }
  119. .dot i:nth-child(3) {
  120. right: 0;
  121. bottom: 0;
  122. -webkit-animation-delay: 0.8s;
  123. animation-delay: 0.8s;
  124. }
  125. .dot i:nth-child(4) {
  126. bottom: 0;
  127. left: 0;
  128. -webkit-animation-delay: 1.2s;
  129. animation-delay: 1.2s;
  130. }
  131. @keyframes antRotate {
  132. to {
  133. -webkit-transform: rotate(405deg);
  134. transform: rotate(405deg);
  135. }
  136. }
  137. @-webkit-keyframes antRotate {
  138. to {
  139. -webkit-transform: rotate(405deg);
  140. transform: rotate(405deg);
  141. }
  142. }
  143. @keyframes antSpinMove {
  144. to {
  145. opacity: 1;
  146. }
  147. }
  148. @-webkit-keyframes antSpinMove {
  149. to {
  150. opacity: 1;
  151. }
  152. }
  153. </style>
  154. <div class="app-loading">
  155. <div class="app-loading-wrap">
  156. <img src="/resource/img/logo_zhigeng.gif" class="app-loading-logo" alt="Logo" />
  157. <div class="app-loading-dots">
  158. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  159. </div>
  160. <!-- <div class="app-loading-title"><%= title %></div> -->
  161. </div>
  162. </div>
  163. </div>
  164. <script type="module" src="/src/main.ts"></script>
  165. <!-- 百度统计 -->
  166. <script>
  167. // wfansh - 禁用Jeecg默认百度统计
  168. // var _hmt = _hmt || [];
  169. // (function() {
  170. // var hm = document.createElement("script");
  171. // hm.src = "https://hm.baidu.com/hm.js?0febd9e3cacb3f627ddac64d52caac39";
  172. // var s = document.getElementsByTagName("script")[0];
  173. // s.parentNode.insertBefore(hm, s);
  174. // })();
  175. </script>
  176. </body>
  177. </html>