index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->
  6. <title>友期提现</title>
  7. <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
  8. <script>
  9. (function() {
  10. if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
  11. handleFontSize();
  12. } else {
  13. if (document.addEventListener) {
  14. document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
  15. } else if (document.attachEvent) {
  16. document.attachEvent("WeixinJSBridgeReady", handleFontSize);
  17. document.attachEvent("onWeixinJSBridgeReady", handleFontSize); }
  18. }
  19. function handleFontSize() {
  20. // 设置网页字体为默认大小
  21. WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
  22. // 重写设置网页字体大小的事件
  23. WeixinJSBridge.on('menu:setfont', function() {
  24. WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
  25. });
  26. }
  27. })();
  28. </script>
  29. <body>
  30. <div id="app"></div>
  31. <!-- built files will be auto injected -->
  32. </body>
  33. </html>