template.h5.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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="referrer" content="no-referrer" />
  7. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  8. <title>
  9. <%= htmlWebpackPlugin.options.title %>
  10. </title>
  11. <script>
  12. var UA = window.navigator.userAgent.toLowerCase();
  13. var isAndroid = UA.indexOf('android') > 0;
  14. var isIOS = /iphone|ipad|ipod|ios/.test(UA);
  15. if (!(isAndroid || isIOS)) {
  16. // 正式发布的时候使用,开发期间不启用。
  17. // window.location.href = '/demo/picture/website/pcguide.html';
  18. }
  19. </script>
  20. <script>
  21. document.addEventListener('DOMContentLoaded', function() {
  22. document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
  23. })
  24. </script>
  25. <link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
  26. </head>
  27. <body>
  28. <!-- 该文件为 H5 平台的模板 HTML,并非应用入口,请勿直接运行此文件。 -->
  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. <!-- 微信SDK文件 -->
  35. <script src="<%= BASE_URL %>static/mp-h5/jweixin-1.4.0.js"></script>
  36. <!-- 高德地图文件 -->
  37. <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=859eeef6f37229fba3afb895542a1e04&plugin=AMap.ToolBar"></script>
  38. <script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
  39. <!-- built files will be auto injected -->
  40. <!-- <script>
  41. var _hmt = _hmt || [];
  42. (function() {
  43. var hm = document.createElement("script");
  44. hm.src = "https://hm.baidu.com/hm.js?fe3b7a223fc08c795f0f4b6350703e6f";
  45. var s = document.getElementsByTagName("script")[0];
  46. s.parentNode.insertBefore(hm, s);
  47. })();
  48. </script> -->
  49. </body>
  50. </html>