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