template.h5.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. <title>
  7. <%= htmlWebpackPlugin.options.title %>
  8. </title>
  9. <!-- Open Graph data -->
  10. <!-- <meta property="og:title" content="Title Here" /> -->
  11. <!-- <meta property="og:url" content="http://www.example.com/" /> -->
  12. <!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
  13. <!-- <meta property="og:description" content="Description Here" /> -->
  14. <script>
  15. var urlParam = location.search;
  16. if (urlParam.indexOf("payload") != -1) {
  17. urlParam = decodeURIComponent(urlParam);
  18. }
  19. var name = 'uniacid';
  20. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
  21. var r = urlParam.substr(1).match(reg);
  22. if (r != null) {
  23. var uniacid = unescape(r[2])
  24. localStorage.setItem("uniacid", unescape(r[2]));
  25. };
  26. localStorage.setItem("version", "2.0.1.Release"); //静态资源版本号
  27. localStorage.setItem("moduleName", "wike_oddjob");
  28. localStorage.setItem("adminDomain", "/addons/" + localStorage.getItem("moduleName") + "/public");
  29. var baseroot = localStorage.getItem("adminDomain");
  30. var siteConfig = {
  31. uniacid: uniacid,
  32. siteroot: localStorage.getItem("adminDomain") + "/index.php/",
  33. root: localStorage.getItem("adminDomain"),
  34. };
  35. var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS
  36. .supports('top: constant(a)'))
  37. document.write(
  38. '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
  39. (coverSupport ? ', viewport-fit=cover' : '') + '" />')
  40. </script>
  41. <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
  42. </head>
  43. <body>
  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. </body>
  50. </html>