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,chrome=1" />
    6. <!-- 强制Chromium内核,作用于360浏览器、QQ浏览器等国产双核浏览器 -->
    7. <meta name="renderer" content="webkit" />
    8. <!-- 强制Chromium内核,作用于其他双核浏览器 -->
    9. <meta name="force-rendering" content="webkit" />
    10. <meta
    11. content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover"
    12. name="viewport"
    13. />
    14. <!-- uc强制竖屏 -->
    15. <meta name="screen-orientation" content="portrait" />
    16. <!-- QQ强制竖屏 -->
    17. <meta name="x5-orientation" content="portrait" />
    18. <!-- 设置页面不缓存 -->
    19. <meta http-equiv="Expires" content="0" />
    20. <meta http-equiv="Pragma" content="no-cache" />
    21. <meta http-equiv="Cache-control" content="no-cache" />
    22. <meta http-equiv="Cache" content="no-cache" />
    23. <meta name="keywords" content="至造云 至爱智家" />
    24. <meta name="description" content="至造云 至爱智家" />
    25. <meta name="apple-mobile-web-app-title" content="至造云 至爱智家" />
    26. <link rel="icon" href="/favicon.ico" />
    27. <link rel="stylesheet" href="<%= fontPath %>/iconfont.css" />
    28. <title>海底捞H5</title>
    29. </head>
    30. <body>
    31. <div id="app">
    32. <style>
    33. #loading-mask {
    34. position: fixed;
    35. top: 0;
    36. left: 0;
    37. z-index: 9999;
    38. width: 100%;
    39. height: 100%;
    40. overflow: hidden;
    41. background: #fff;
    42. user-select: none;
    43. }
    44. .loading-wrapper {
    45. position: absolute;
    46. top: 50%;
    47. left: 50%;
    48. transform: translate(-50%, -100%);
    49. }
    50. .loading-dot {
    51. position: relative;
    52. display: inline-block;
    53. width: 64px;
    54. height: 64px;
    55. font-size: 64px;
    56. transform: rotate(45deg);
    57. box-sizing: border-box;
    58. animation: antRotate 1.2s infinite linear;
    59. }
    60. .loading-dot i {
    61. position: absolute;
    62. display: block;
    63. width: 22px;
    64. height: 22px;
    65. background-color: #1890ff;
    66. border-radius: 100%;
    67. opacity: 0.3;
    68. transform: scale(0.75);
    69. animation: antSpinMove 1s infinite linear alternate;
    70. transform-origin: 50% 50%;
    71. }
    72. .loading-dot i:nth-child(1) {
    73. top: 0;
    74. left: 0;
    75. }
    76. .loading-dot i:nth-child(2) {
    77. top: 0;
    78. right: 0;
    79. -webkit-animation-delay: 0.4s;
    80. animation-delay: 0.4s;
    81. }
    82. .loading-dot i:nth-child(3) {
    83. right: 0;
    84. bottom: 0;
    85. -webkit-animation-delay: 0.8s;
    86. animation-delay: 0.8s;
    87. }
    88. .loading-dot i:nth-child(4) {
    89. bottom: 0;
    90. left: 0;
    91. -webkit-animation-delay: 1.2s;
    92. animation-delay: 1.2s;
    93. }
    94. @keyframes antRotate {
    95. to {
    96. -webkit-transform: rotate(405deg);
    97. transform: rotate(405deg);
    98. }
    99. }
    100. @-webkit-keyframes antRotate {
    101. to {
    102. -webkit-transform: rotate(405deg);
    103. transform: rotate(405deg);
    104. }
    105. }
    106. @keyframes antSpinMove {
    107. to {
    108. opacity: 1;
    109. }
    110. }
    111. @-webkit-keyframes antSpinMove {
    112. to {
    113. opacity: 1;
    114. }
    115. }
    116. </style>
    117. <div id="loading-mask">
    118. <div class="loading-wrapper">
    119. <span class="loading-dot loading-dot-spin"><i></i><i></i><i></i><i></i></span>
    120. </div>
    121. </div>
    122. </div>
    123. <script>
    124. ;(function () {
    125. if (!/debug=true/.test(location.search) && localStorage.getItem('eruda-debug') !== 'true') return;
    126. var script = document.createElement('script');
    127. // script.crossOrigin = true; ios浏览器加这个属性会导致脚本不加载
    128. script.async = true;
    129. script.src = '//cdn.bootcdn.net/ajax/libs/eruda/2.4.1/eruda.min.js';
    130. document.body.appendChild(script);
    131. script.onload = function () {
    132. window.eruda && window.eruda.init();
    133. }
    134. })();
    135. </script>
    136. <script type="module" src="/src/main.ts"></script>
    137. </body>
    138. </html>