index.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="">
  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">
  7. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  8. <title>飞鸟管家</title>
  9. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/qweather-icons@1.3.0/font/qweather-icons.css">
  10. <script>
  11. (function () {
  12. if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
  13. handleFontSize();
  14. } else {
  15. if (document.addEventListener) {
  16. document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
  17. } else if (document.attachEvent) {
  18. document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
  19. }
  20. }
  21. function handleFontSize() {
  22. // 设置网页字体为默认大小
  23. WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize': 0 });
  24. // 重写设置网页字体大小的事件
  25. WeixinJSBridge.on('menu:setfont', function () {
  26. WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize': 0 });
  27. });
  28. }
  29. })();
  30. </script>
  31. </head>
  32. <body>
  33. <noscript>
  34. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  35. </noscript>
  36. <div id="app"></div>
  37. <!-- built files will be auto injected -->
  38. </body>
  39. </html>