12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <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" />
- <script src="./static/vue.min.js" rel="preload" as="script"></script>
- <script src="./static/vue-router.min.js" rel="preload" as="script"></script>
- <script src="./static/axios@0.21.0.min.js" rel="preload" as="script"></script>
- <title>报表</title>
- <style>
- [v-cloak] {
- display: none;
- }
-
- body {
- /* IOS禁止微信调整字体大小 */
- -webkit-text-size-adjust: 100% !important;
- }
- </style>
- <script>
-
- // 安卓的解决方案是通过 WeixinJSBridge 对象将网页的字体大小设置为默认大小,并且重写设置字体大小的方法,让用户不能在该网页下设置字体大小:
- (function() {
- // title
- document.title = "业绩达成报表";
- if (
- typeof WeixinJSBridge == "object" &&
- typeof WeixinJSBridge.invoke == "function"
- ) {
- handleFontSize();
- } else {
- if (document.addEventListener) {
- document.addEventListener(
- "WeixinJSBridgeReady",
- handleFontSize,
- false
- );
- } else if (document.attachEvent) {
- document.attachEvent("WeixinJSBridgeReady", handleFontSize);
- document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
- }
- }
- function handleFontSize() {
- // 设置网页字体为默认大小
- WeixinJSBridge.invoke("setFontSizeCallback", {
- fontSize: 0
- });
- // 重写设置网页字体大小的事件
- WeixinJSBridge.on("menu:setfont", function() {
- WeixinJSBridge.invoke("setFontSizeCallback", {
- fontSize: 0
- });
- });
- }
- })();
- </script>
- </head>
- <body>
- <noscript>
- <strong
- >We're sorry but pingyiweb doesn't work properly without JavaScript
- enabled. Please enable it to continue.</strong
- >
- </noscript>
- <div id="app"></div>
- <!-- built files will be auto injected -->
- </body>
- </html>
|