template.h5.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <script>
  7. var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
  8. CSS.supports('top: constant(a)'))
  9. document.write(
  10. '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
  11. (coverSupport ? ', viewport-fit=cover' : '') + '" />')
  12. </script>
  13. <title>
  14. <%= htmlWebpackPlugin.options.title %>
  15. </title>
  16. <!-- 正式发布的时候使用,开发期间不启用。↓ -->
  17. <!-- <script src="/h5/touch-emulator.js"></script>
  18. <script>
  19. TouchEmulator();
  20. if (document.documentElement.clientWidth > 1024) {
  21. window.location.href = '/h5/pcguide.html#'+location.pathname+location.search;
  22. }
  23. </script>
  24. <style>
  25. ::-webkit-scrollbar{
  26. display: none;
  27. }
  28. </style>
  29. <script>
  30. var _hmt = _hmt || [];
  31. (function() {
  32. var hm = document.createElement("script");
  33. hm.src = "https://hm.baidu.com/hm.js?";// 百度统计key
  34. var s = document.getElementsByTagName("script")[0];
  35. s.parentNode.insertBefore(hm, s);
  36. })();
  37. </script> -->
  38. <!-- 正式发布的时候使用,开发期间不启用。↑ -->
  39. <script>
  40. // document.addEventListener('DOMContentLoaded', function() {
  41. // document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
  42. // })
  43. </script>
  44. <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
  45. </head>
  46. <body>
  47. <!-- 该文件为 H5 平台的模板 HTML,并非应用入口。 -->
  48. <!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
  49. <!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
  50. <noscript>
  51. <strong>Please enable JavaScript to continue.</strong>
  52. </noscript>
  53. <div id="app"></div>
  54. <!-- built files will be auto injected -->
  55. <script>
  56. /*BAIDU_STAT*/
  57. </script>
  58. </body>
  59. </html>