index.html 10 KB

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