index.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <script>
  4. var _hmt = _hmt || [];
  5. (function() {
  6. var hm = document.createElement("script");
  7. hm.src = "https://hm.baidu.com/hm.js?7462bb748e160a51f9fbc3eca9750c6f";
  8. var s = document.getElementsByTagName("script")[0];
  9. s.parentNode.insertBefore(hm, s);
  10. })();
  11. </script>
  12. <head>
  13. <meta charset="utf-8" />
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  15. <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
  16. <script src="./static/vue.min.js" rel="preload" as="script"></script>
  17. <script src="./static/vue-router.min.js" rel="preload" as="script"></script>
  18. <script src="./static/axios@0.21.0.min.js" rel="preload" as="script"></script>
  19. <!-- <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> -->
  20. <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  21. <script src="https://registry.npmmirror.com/echarts/5.4.3/files/dist/echarts.min.js"></script>
  22. <title>报表</title>
  23. <style>
  24. [v-cloak] {
  25. display: none;
  26. }
  27. body {
  28. /* IOS禁止微信调整字体大小 */
  29. -webkit-text-size-adjust: 100% !important;
  30. }
  31. </style>
  32. <script>
  33. // 安卓的解决方案是通过 WeixinJSBridge 对象将网页的字体大小设置为默认大小,并且重写设置字体大小的方法,让用户不能在该网页下设置字体大小:
  34. (function() {
  35. // title
  36. document.title = "数据导航";
  37. if (
  38. typeof WeixinJSBridge == "object" &&
  39. typeof WeixinJSBridge.invoke == "function"
  40. ) {
  41. handleFontSize();
  42. } else {
  43. if (document.addEventListener) {
  44. document.addEventListener(
  45. "WeixinJSBridgeReady",
  46. handleFontSize,
  47. false
  48. );
  49. } else if (document.attachEvent) {
  50. document.attachEvent("WeixinJSBridgeReady", handleFontSize);
  51. document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
  52. }
  53. }
  54. function handleFontSize() {
  55. // 设置网页字体为默认大小
  56. WeixinJSBridge.invoke("setFontSizeCallback", {
  57. fontSize: 0
  58. });
  59. // 重写设置网页字体大小的事件
  60. WeixinJSBridge.on("menu:setfont", function() {
  61. WeixinJSBridge.invoke("setFontSizeCallback", {
  62. fontSize: 0
  63. });
  64. });
  65. }
  66. })();
  67. </script>
  68. </head>
  69. <body>
  70. <noscript>
  71. <strong
  72. >We're sorry but pingyiweb doesn't work properly without JavaScript
  73. enabled. Please enable it to continue.</strong
  74. >
  75. </noscript>
  76. <div id="app"></div>
  77. <!-- built files will be auto injected -->
  78. </body>
  79. </html>