index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <script>
  5. //加载开始时间
  6. var start_time = (new Date()).getTime();
  7. var route_path ="/";
  8. if(window.location.href.split("#")[1]){
  9. route_path= window.location.href.split("#")[1].replace(/\?.*/, '')
  10. }
  11. </script>
  12. <meta charset="utf-8">
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge,IE=IE9">
  15. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name="apple-touch-fullscreen" content="yes">
  18. <meta name="aformat-detection" content="telephone=no,email=no">
  19. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,viewport-fit=cover">
  20. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  21. <title>
  22. <%= htmlWebpackPlugin.options.title %>
  23. </title>
  24. </head>
  25. <body>
  26. <noscript>
  27. <strong>
  28. We're sorry but
  29. <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to
  30. continue.
  31. </strong>
  32. </noscript>
  33. <div id="z-loading-1" style="display: block;position: fixed;left:0px;top:0px;bottom:0px;right:0px;width: 100%;height: 100%;background: rgb(255, 255, 255, 0.9);z-index: 999;">
  34. <div style="position: absolute;top: 40%;left: 38%">
  35. <img src="http://rccs.oss-cn-hangzhou.aliyuncs.com/jp_housekeeper/img/xxd_loading.gif" id="loading-gif" />
  36. </div>
  37. <div class="index-load" id="index-load" style="display:block;position: absolute;bottom: 10px;right: 10px;"></div>
  38. </div>
  39. <script>
  40. var indexSetInval;
  41. var indexStartNum = 1;
  42. indexSetInval = setInterval(function() {
  43. indexStartNum++;
  44. var str = '加载中' + ((indexStartNum % 2 == 0) ? '…' : '……');
  45. document.getElementById('index-load').innerHTML = str;
  46. }, 1000)
  47. </script>
  48. <div id="app"></div>
  49. <script>
  50. document.onreadystatechange = function() {
  51. if (document.readyState == "complete") {
  52. clearInterval(indexSetInval);
  53. removeLoading()
  54. }
  55. }
  56. function removeLoading() {
  57. if (document.getElementById('z-loading-1').style.display != 'none') {
  58. var loading = document.getElementById('z-loading-1');
  59. }
  60. document.body.removeChild(loading);
  61. }
  62. </script>
  63. <script type="text/javascript">
  64. (function() {
  65. if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
  66. handleFontSize();
  67. } else {
  68. if (document.addEventListener) {
  69. document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
  70. } else if (document.attachEvent) {
  71. document.attachEvent("WeixinJSBridgeReady", handleFontSize);
  72. document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
  73. }
  74. }
  75. function handleFontSize() {
  76. /*设置网页字体为默认大小*/
  77. WeixinJSBridge.invoke('setFontSizeCallback', {
  78. 'fontSize': 0
  79. });
  80. /*重写设置网页字体大小的事件*/
  81. WeixinJSBridge.on('menu:setfont', function() {
  82. WeixinJSBridge.invoke('setFontSizeCallback', {
  83. 'fontSize': 0
  84. });
  85. });
  86. }
  87. })();
  88. </script>
  89. <script src="https://hm.baidu.com/hm.js?70f1b4bfc1d017e50a488b34b9dcc02c"></script>
  90. </body>
  91. </html>