loading.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!DOCTYPE html>
  2. <html lang="en">
  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. <title>Document</title>
  8. <style>
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. }
  13. body {
  14. margin: 0;
  15. padding: 0;
  16. overflow: hidden;
  17. background: rgba(238, 235, 235, 0.5) url('./loadingPage/xlfs_jm_bg.png') no-repeat;
  18. }
  19. .loadP {
  20. /* line-height: 200px;
  21. font-size: 30px;
  22. text-align: center;
  23. color: rgb(40, 162, 162); */
  24. /* width: 157px; */
  25. height: 16px;
  26. font-size: 16px;
  27. font-family: Alibaba PuHuiTi;
  28. font-weight: 400;
  29. color: #FFFFFF;
  30. line-height: 15px;
  31. margin-top: 40px;
  32. padding-left: 27px;
  33. }
  34. .topLine {
  35. display: flex;
  36. height: 39px;
  37. margin-top: 20px;
  38. margin-left: 27px;
  39. }
  40. .topFont {
  41. display: block;
  42. height: 16px;
  43. font-size: 16px;
  44. font-family: Alibaba PuHuiTi;
  45. font-weight: 400;
  46. color: #FFFFFF;
  47. line-height: 15px;
  48. margin-top: 4px;
  49. }
  50. .versionFont {
  51. text-align: right;
  52. /* width: 158px; */
  53. display: block;
  54. font-size: 8px;
  55. font-family: PingFang SC;
  56. font-weight: bold;
  57. color: #FFFFFF;
  58. line-height: 15px;
  59. opacity: 0.7;
  60. margin-top: 8px;
  61. }
  62. .topProject {
  63. width: 157px;
  64. height: 16px;
  65. font-size: 16px;
  66. font-family: Alibaba PuHuiTi;
  67. font-weight: 400;
  68. color: #FFFFFF;
  69. line-height: 15px;
  70. }
  71. .progress-bar {
  72. width: 100%;
  73. height: 2px;
  74. overflow: hidden;
  75. box-sizing: border-box;
  76. border-radius: 24px;
  77. background-color: rgba(180, 160, 120, .2);
  78. position: relative;
  79. }
  80. .progress-bg {
  81. width: 20%;
  82. height: 100%;
  83. overflow: hidden;
  84. box-sizing: border-box;
  85. /* background-image: #00BFFF 25%; */
  86. background-image: linear-gradient(135deg, #23E655 25%, #23E655 0, #23E655 50%, #23E655 0, #23E655 75%, #23E655 0);
  87. animation: panoramic 20s linear infinite;
  88. background-size: 32px 100%;
  89. }
  90. @keyframes panoramic {
  91. to {
  92. background-position: 200% 0;
  93. }
  94. }
  95. .jimigou {
  96. color: #FFFFFF;
  97. font-size: 12px;
  98. font-weight: 400;
  99. font-family: PingFang SC;
  100. line-height: 15px;
  101. margin:80px 0 10px 25px;
  102. opacity: 0.8;
  103. }
  104. .company {
  105. text-align: right;
  106. margin-top: 20px;
  107. font-size: 12px;
  108. font-family: PingFang SC;
  109. font-weight: 400;
  110. color: #FEFEFE;
  111. line-height: 15px;
  112. opacity: 0.8;
  113. margin-bottom: 2px;
  114. }
  115. .website {
  116. margin-top: 2px;
  117. text-align: right;
  118. padding-right: 5px;
  119. }
  120. .closeClass {
  121. margin-top: 2px;
  122. text-align: right;
  123. font-size: 12px;
  124. font-family: PingFang SC;
  125. font-weight: 400;
  126. color: #FEFEFE;
  127. line-height: 15px;
  128. opacity: 1;
  129. cursor: pointer;
  130. }
  131. .logo_box {
  132. text-align: center;
  133. }
  134. .logo_img {
  135. width: 67px;
  136. }
  137. .logo_name {
  138. width: 285px;
  139. }
  140. .version_txt {
  141. font-family: Alibaba PuHuiTi 2.0;
  142. font-weight: normal;
  143. font-size: 16px;
  144. color: #FFFFFF;
  145. line-height: 29px;
  146. opacity: 0.5;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <div class="closeClass"><img onclick="closeLoad()" width="15px" height="15px"
  152. style="margin-right:8px;margin-top:2px;" src="./close1.png" /></div>
  153. <div class="logo_box">
  154. <p>
  155. <img class="logo_img" src="./loadingPage/logo_img.png" alt="">
  156. </p>
  157. <p>
  158. <img class="logo_name" src="./loadingPage/logo_name.png" alt="">
  159. </p>
  160. <p><span class="version_txt">版本1.1.7</span></p>
  161. </div>
  162. <p class="jimigou" id="jimigou">软件启动中...</p>
  163. <div class="progress-bar">
  164. <div class="progress-bg" id="pro"></div>
  165. </div>
  166. <p class="website"><img src="./loadingPage/Copyright.png" alt=""></p>
  167. <!-- <img width="400px";height='300px' src="./xlfs_jm_bg.png" alt="" srcset=""> -->
  168. </body>
  169. </html>
  170. <script>
  171. const { ipcRenderer } = window.require('electron');
  172. ipcRenderer.send("main-windows-jimigou-flagzb", {
  173. type: '0',
  174. });
  175. ipcRenderer.on("main-windows-jimigouzb", (event, arg) => {
  176. if (arg.type == '1') {
  177. //未发现加密狗
  178. let dian = document.getElementById('jimigou')
  179. dian.innerHTML = '软件密钥匹配失败,软件无法启动';
  180. dian.style.color = '#FF3030'
  181. // setTimeout(() => {
  182. // let qq = document.getElementById('pro')
  183. // qq.style.width = '60%'
  184. // }, 1000);
  185. } else {
  186. //发现了加密狗
  187. let dian = document.getElementById('jimigou')
  188. dian.innerHTML = '软件密钥匹配成功,系统加载中...';
  189. dian.style.color = '#FEFEFE'
  190. setTimeout(() => {
  191. let qq = document.getElementById('pro')
  192. qq.style.width = '60%'
  193. }, 1000);
  194. setTimeout(() => {
  195. let qq = document.getElementById('pro')
  196. qq.style.width = '80%'
  197. }, 1500);
  198. setTimeout(() => {
  199. let qq = document.getElementById('pro')
  200. qq.style.width = '100%'
  201. }, 3000);
  202. setTimeout(() => {
  203. ipcRenderer.send("main-windows-jimigouzb-show", {
  204. type: '1',
  205. });
  206. }, 4000);
  207. }
  208. });
  209. //window-close
  210. function closeLoad() {
  211. ipcRenderer.send("window-close", {
  212. type: '1',
  213. });
  214. }
  215. // let dian = document.getElementById('dian')
  216. // let dianNum = ''
  217. // let count = 0;
  218. // let time = setInterval(() => {
  219. // count = count + 1
  220. // dianNum = dianNum + '.'
  221. // dian.innerHTML = dianNum;
  222. // if (count == 4) {
  223. // dianNum = ''
  224. // }
  225. // if (count == 6) {
  226. // clearInterval(time)
  227. // }
  228. // }, 500);
  229. </script>