index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=700cabc2cdb5dcaa897c2c1a95b91bbb"></script>
  6. <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  7. <!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->
  8. <!-- <meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover"> -->
  9. <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0">
  10. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  11. <title>TOKTOK</title>
  12. <link rel="icon" type="image/x-icon" href="static/favicon.ico">
  13. </head>
  14. <body>
  15. <div id="app"></div>
  16. <!-- built files will be auto injected -->
  17. </body>
  18. <script>
  19. (function() {
  20. if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
  21. handleFontSize();
  22. } else {
  23. if (document.addEventListener) {
  24. document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
  25. } else if (document.attachEvent) {
  26. document.attachEvent("WeixinJSBridgeReady", handleFontSize);
  27. document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
  28. }
  29. }
  30. function handleFontSize() {
  31. // 设置网页字体为默认大小
  32. WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
  33. // 重写设置网页字体大小的事件
  34. WeixinJSBridge.on('menu:setfont', function() {
  35. WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
  36. });
  37. }
  38. })();
  39. </script>
  40. </html>