index.html 2.7 KB

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