template.h5.html 1.9 KB

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