index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
  9. <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  10. <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
  11. <title><%= webpackConfig.name %></title>
  12. </head>
  13. <body class="bgcolor">
  14. <noscript>
  15. <strong
  16. >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without
  17. JavaScript enabled. Please enable it to continue.</strong
  18. >
  19. </noscript>
  20. <div id="app"></div>
  21. <script>
  22. if (GetQueryValue('loginName') != null) {
  23. localStorage.removeItem('loginType');
  24. localStorage.setItem('loginName', GetQueryValue('loginName'));
  25. location.href = location.href.split('?')[0] + '?v=' + new Date().getTime();
  26. }
  27. function GetQueryValue(queryName) {
  28. var query = decodeURI(window.location.search.substring(1));
  29. var vars = query.split('&');
  30. for (var i = 0; i < vars.length; i++) {
  31. var pair = vars[i].split('=');
  32. if (pair[0] == queryName) {
  33. return pair[1];
  34. }
  35. }
  36. return null;
  37. }
  38. </script>
  39. <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  40. <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
  41. <!--生产、uat-->
  42. <script
  43. charset="utf-8"
  44. src="https://map.qq.com/api/gljs?v=1.exp&libraries=service,tools&key=Y7SBZ-PI5K5-FOJIT-ILHLY-PN66T-HKB4A"></script>
  45. </body>
  46. </html>