template.h5.html 2.3 KB

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