信创手机端

index.html 2.2KB

    <!DOCTYPE html> <html lang=""> <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"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <script src="./config.js"></script> <title><%= htmlWebpackPlugin.options.title %></title> <script> // 获取头部指定参数 function GetQueryString() { var name, value; var str = location.href; //取得整个地址栏 var num = str.indexOf("?") str = str.substr(num + 1); //取得所有参数 stringvar.substr(start [, length ] var arr = str.split("&"); //各个参数放到数组里 for (var i = 0; i < arr.length; i++) { num = arr[i].indexOf("="); if (num > 0) { name = arr[i].substring(0, num); value = arr[i].substr(num + 1); this[name] = value; } } } var Request = new GetQueryString(); //实例化 var uasLoginerValue = Request.uasLoginer if (uasLoginerValue) { console.log(uasLoginerValue); window.localStorage.setItem("uasLoginer", JSON.stringify(uasLoginerValue)) } else { console.log("缺少uasLoginer参数") } </script> </head> <body> <noscript> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <div id="app"></div> <script> document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px'; window.addEventListener("resize", function() { document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px'; }); var WVJBIframe = document.createElement('iframe'); WVJBIframe.style.display = 'none'; WVJBIframe.src = 'https://__bridge_loaded__'; document.documentElement.appendChild(WVJBIframe); setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0) </script> <!-- built files will be auto injected --> </body> </html> <style> body{ margin: 0; padding: 0; } </style>