index.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <!DOCTYPE html>
  2. <html lang="zh-cmn-Hans">
  3. <head>
  4. <title></title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  8. <meta name="description" content="基于SpringBoot框架,立志为中小企业提供开源好用的ERP软件,目前专注进销存+财务功能。主要模块有零售管理、采购管理、销售管理、仓库管理、财务管理、报表查询、基础数据、系统管理等。" />
  9. <meta name="keywords" content="erp,erp系统,进销存,进销存系统" />
  10. <link rel="icon" href="<%= BASE_URL %>static/favicon.ico">
  11. <style>
  12. html,
  13. body,
  14. #app {
  15. height: 100%;
  16. margin: 0px;
  17. padding: 0px;
  18. }
  19. .chromeframe {
  20. margin: 0.2em 0;
  21. background: #ccc;
  22. color: #999;
  23. padding: 0.2em 0;
  24. }
  25. #loader-wrapper {
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. width: 100%;
  30. height: 100%;
  31. z-index: 999999;
  32. }
  33. #loader {
  34. display: block;
  35. position: relative;
  36. left: 50%;
  37. top: 50%;
  38. width: 120px;
  39. height: 120px;
  40. margin: -75px 0 0 -75px;
  41. border-radius: 50%;
  42. border: 3px solid transparent;
  43. /* COLOR 1 */
  44. border-top-color: #999;
  45. -webkit-animation: spin 2s linear infinite;
  46. /* Chrome, Opera 15+, Safari 5+ */
  47. -ms-animation: spin 2s linear infinite;
  48. /* Chrome, Opera 15+, Safari 5+ */
  49. -moz-animation: spin 2s linear infinite;
  50. /* Chrome, Opera 15+, Safari 5+ */
  51. -o-animation: spin 2s linear infinite;
  52. /* Chrome, Opera 15+, Safari 5+ */
  53. animation: spin 2s linear infinite;
  54. /* Chrome, Firefox 16+, IE 10+, Opera */
  55. z-index: 1001;
  56. }
  57. #loader:before {
  58. content: "";
  59. position: absolute;
  60. top: 5px;
  61. left: 5px;
  62. right: 5px;
  63. bottom: 5px;
  64. border-radius: 50%;
  65. border: 3px solid transparent;
  66. /* COLOR 2 */
  67. border-top-color: #999;
  68. -webkit-animation: spin 3s linear infinite;
  69. /* Chrome, Opera 15+, Safari 5+ */
  70. -moz-animation: spin 3s linear infinite;
  71. /* Chrome, Opera 15+, Safari 5+ */
  72. -o-animation: spin 3s linear infinite;
  73. /* Chrome, Opera 15+, Safari 5+ */
  74. -ms-animation: spin 3s linear infinite;
  75. /* Chrome, Opera 15+, Safari 5+ */
  76. animation: spin 3s linear infinite;
  77. /* Chrome, Firefox 16+, IE 10+, Opera */
  78. }
  79. #loader:after {
  80. content: "";
  81. position: absolute;
  82. top: 15px;
  83. left: 15px;
  84. right: 15px;
  85. bottom: 15px;
  86. border-radius: 50%;
  87. border: 3px solid transparent;
  88. border-top-color: #999;
  89. /* COLOR 3 */
  90. -moz-animation: spin 1.5s linear infinite;
  91. /* Chrome, Opera 15+, Safari 5+ */
  92. -o-animation: spin 1.5s linear infinite;
  93. /* Chrome, Opera 15+, Safari 5+ */
  94. -ms-animation: spin 1.5s linear infinite;
  95. /* Chrome, Opera 15+, Safari 5+ */
  96. -webkit-animation: spin 1.5s linear infinite;
  97. /* Chrome, Opera 15+, Safari 5+ */
  98. animation: spin 1.5s linear infinite;
  99. /* Chrome, Firefox 16+, IE 10+, Opera */
  100. }
  101. @-webkit-keyframes spin {
  102. 0% {
  103. -webkit-transform: rotate(0deg);
  104. /* Chrome, Opera 15+, Safari 3.1+ */
  105. -ms-transform: rotate(0deg);
  106. /* IE 9 */
  107. transform: rotate(0deg);
  108. /* Firefox 16+, IE 10+, Opera */
  109. }
  110. 100% {
  111. -webkit-transform: rotate(360deg);
  112. /* Chrome, Opera 15+, Safari 3.1+ */
  113. -ms-transform: rotate(360deg);
  114. /* IE 9 */
  115. transform: rotate(360deg);
  116. /* Firefox 16+, IE 10+, Opera */
  117. }
  118. }
  119. @keyframes spin {
  120. 0% {
  121. -webkit-transform: rotate(0deg);
  122. /* Chrome, Opera 15+, Safari 3.1+ */
  123. -ms-transform: rotate(0deg);
  124. /* IE 9 */
  125. transform: rotate(0deg);
  126. /* Firefox 16+, IE 10+, Opera */
  127. }
  128. 100% {
  129. -webkit-transform: rotate(360deg);
  130. /* Chrome, Opera 15+, Safari 3.1+ */
  131. -ms-transform: rotate(360deg);
  132. /* IE 9 */
  133. transform: rotate(360deg);
  134. /* Firefox 16+, IE 10+, Opera */
  135. }
  136. }
  137. #loader-wrapper .loader-section {
  138. position: fixed;
  139. top: 0;
  140. width: 51%;
  141. height: 100%;
  142. background: #fff;
  143. /* Old browsers */
  144. z-index: 1000;
  145. -webkit-transform: translateX(0);
  146. /* Chrome, Opera 15+, Safari 3.1+ */
  147. -ms-transform: translateX(0);
  148. /* IE 9 */
  149. transform: translateX(0);
  150. /* Firefox 16+, IE 10+, Opera */
  151. }
  152. #loader-wrapper .loader-section.section-left {
  153. left: 0;
  154. }
  155. #loader-wrapper .loader-section.section-right {
  156. right: 0;
  157. }
  158. /* Loaded */
  159. .loaded #loader-wrapper .loader-section.section-left {
  160. -webkit-transform: translateX(-100%);
  161. /* Chrome, Opera 15+, Safari 3.1+ */
  162. -ms-transform: translateX(-100%);
  163. /* IE 9 */
  164. transform: translateX(-100%);
  165. /* Firefox 16+, IE 10+, Opera */
  166. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  167. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  168. }
  169. .loaded #loader-wrapper .loader-section.section-right {
  170. -webkit-transform: translateX(100%);
  171. /* Chrome, Opera 15+, Safari 3.1+ */
  172. -ms-transform: translateX(100%);
  173. /* IE 9 */
  174. transform: translateX(100%);
  175. /* Firefox 16+, IE 10+, Opera */
  176. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  177. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  178. }
  179. .loaded #loader {
  180. opacity: 0;
  181. -webkit-transition: all 0.3s ease-out;
  182. transition: all 0.3s ease-out;
  183. }
  184. .loaded #loader-wrapper {
  185. visibility: hidden;
  186. -webkit-transform: translateY(-100%);
  187. /* Chrome, Opera 15+, Safari 3.1+ */
  188. -ms-transform: translateY(-100%);
  189. /* IE 9 */
  190. transform: translateY(-100%);
  191. /* Firefox 16+, IE 10+, Opera */
  192. -webkit-transition: all 0.3s 1s ease-out;
  193. transition: all 0.3s 1s ease-out;
  194. }
  195. /* JavaScript Turned Off */
  196. .no-js #loader-wrapper {
  197. display: none;
  198. }
  199. .no-js h1 {
  200. color: #222222;
  201. }
  202. #loader-wrapper .load_title {
  203. font-family: 'Open Sans';
  204. color: #999;
  205. font-size: 14px;
  206. width: 100%;
  207. text-align: center;
  208. z-index: 9999999999999;
  209. position: absolute;
  210. top: 60%;
  211. opacity: 1;
  212. line-height: 30px;
  213. }
  214. #loader-wrapper .load_title span {
  215. font-weight: normal;
  216. font-style: italic;
  217. font-size: 14px;
  218. color: #999;
  219. opacity: 0.5;
  220. }
  221. /* 滚动条优化 start */
  222. ::-webkit-scrollbar{
  223. width:8px;
  224. height:8px;
  225. }
  226. ::-webkit-scrollbar-track{
  227. background: #f6f6f6;
  228. border-radius:2px;
  229. }
  230. ::-webkit-scrollbar-thumb{
  231. background: #cdcdcd;
  232. border-radius:2px;
  233. }
  234. ::-webkit-scrollbar-thumb:hover{
  235. background: #747474;
  236. }
  237. ::-webkit-scrollbar-corner {
  238. background: #f6f6f6;
  239. }
  240. /* 滚动条优化 end */
  241. </style>
  242. <script>
  243. function getPlatform(type) {
  244. let res = '';
  245. let ajax = new XMLHttpRequest();
  246. let url = window._CONFIG['domianURL'] + '/platformConfig/getPlatform/' + type
  247. ajax.onreadystatechange = function () {
  248. if (ajax.readyState===4 &&ajax.status===200) {
  249. res = ajax.responseText;
  250. } else {
  251. res = 'ERP系统';
  252. }
  253. }
  254. ajax.open('get', url, false);
  255. ajax.send(null);
  256. return res;
  257. }
  258. window._CONFIG = {};
  259. window._CONFIG['domianURL'] = '/jshERP-boot';
  260. let statisticsCode = '1cd9bcbaae133f03a6eb19da6579aaba'
  261. window.SYS_TITLE = getPlatform("name");
  262. window.SYS_URL = getPlatform("url");
  263. window._statistics = 'https://hm.baidu.com/hm.js?' + statisticsCode
  264. document.title = window.SYS_TITLE;
  265. //statistics
  266. var _hmt = _hmt || [];
  267. (function() {
  268. var hm = document.createElement("script");
  269. hm.src = window._statistics;
  270. var s = document.getElementsByTagName("script")[0];
  271. s.parentNode.insertBefore(hm, s);
  272. })();
  273. </script>
  274. </head>
  275. <body>
  276. <!-- built files will be auto injected -->
  277. <div id="app">
  278. <div id="loader-wrapper">
  279. <div id="loader"></div>
  280. <div class="loader-section section-left"></div>
  281. <div class="loader-section section-right"></div>
  282. <div class="load_title">
  283. 正在加载系统,请耐心等待
  284. </div>
  285. </div>
  286. </div>
  287. </body>
  288. <!-- 全局配置-多语言切换-开始 -->
  289. <script src="<%= BASE_URL %>static/translate.js"></script>
  290. <script>
  291. //设置本地语种(当前网页的语种)。如果不设置,默认就是 'chinese_simplified' 简体中文
  292. translate.language.setLocal('chinese_simplified');
  293. translate.service.use('client.edge');
  294. //翻译自定义
  295. translate.nomenclature.append('chinese_simplified','english',`
  296. 富贵ERP=fuguierp
  297. `)
  298. //开启html页面变化的监控,对变化部分会进行自动翻译
  299. translate.listener.start();
  300. //不显示语言选择标签
  301. translate.selectLanguageTag.show = false;
  302. //执行翻译初始化操作,显示出select语言选择
  303. //translate.execute();
  304. //VUE的渲染需要时间,所以留出一点点时间来进行翻译切换
  305. document.addEventListener('DOMContentLoaded', function () {
  306. //页面 DOM 已渲染完毕,当然最好是能监控到整个vue渲染完毕后触发最好
  307. translate.execute();
  308. //2秒后再一次,避免有遗漏
  309. setTimeout(function(){
  310. translate.execute();
  311. },2000);
  312. });
  313. </script>
  314. <!-- 全局配置-多语言切换-结束 -->
  315. </html>