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="http://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. document.title = "登录方式选择";
  26. if (
  27. typeof WeixinJSBridge == "object" &&
  28. typeof WeixinJSBridge.invoke == "function"
  29. ) {
  30. handleFontSize();
  31. } else {
  32. if (document.addEventListener) {
  33. document.addEventListener(
  34. "WeixinJSBridgeReady",
  35. handleFontSize,
  36. false
  37. );
  38. } else if (document.attachEvent) {
  39. document.attachEvent("WeixinJSBridgeReady", handleFontSize);
  40. document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
  41. }
  42. }
  43. function handleFontSize() {
  44. // 设置网页字体为默认大小
  45. WeixinJSBridge.invoke("setFontSizeCallback", {
  46. fontSize: 0
  47. });
  48. // 重写设置网页字体大小的事件
  49. WeixinJSBridge.on("menu:setfont", function() {
  50. WeixinJSBridge.invoke("setFontSizeCallback", {
  51. fontSize: 0
  52. });
  53. });
  54. }
  55. })();
  56. </script>
  57. </head>
  58. <body>
  59. <noscript>
  60. <strong
  61. >We're sorry but pingyiweb doesn't work properly without JavaScript
  62. enabled. Please enable it to continue.</strong
  63. >
  64. </noscript>
  65. <div id="app"></div>
  66. <!-- built files will be auto injected -->
  67. </body>
  68. </html>