template.h5.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. <script>
  11. var UA = window.navigator.userAgent.toLowerCase();
  12. var isAndroid = UA.indexOf('android') > 0;
  13. var isIOS = /iphone|ipad|ipod|ios/.test(UA);
  14. if (!(isAndroid || isIOS)) {
  15. // 正式发布的时候使用,开发期间不启用。
  16. // window.location.href = '/h5/pcguide.html';
  17. }
  18. </script>
  19. <script>
  20. document.addEventListener('DOMContentLoaded', function() {
  21. document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
  22. })
  23. </script>
  24. <link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
  25. </head>
  26. <body>
  27. <!-- 该文件为 H5 平台的模板 HTML,并非应用入口。 -->
  28. <!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
  29. <!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
  30. <noscript>
  31. <strong>Please enable JavaScript to continue.</strong>
  32. </noscript>
  33. <div id="app"></div>
  34. <!-- built files will be auto injected -->
  35. <script>
  36. /*BAIDU_STAT*/
  37. </script>
  38. </body>
  39. </html>