index.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="en">
  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 coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS
  16. .supports('top: constant(a)'))
  17. document.write(
  18. '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
  19. (coverSupport ? ', viewport-fit=cover' : '') + '" />')
  20. </script>
  21. <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
  22. <script>
  23. (function(w, d, s, q, i) {
  24. w[q] = w[q] || [];
  25. var f = d.getElementsByTagName(s)[0],
  26. j = d.createElement(s);
  27. j.async = true;
  28. j.id = 'beacon-aplus';
  29. j.src = 'https://d.alicdn.com/alilog/mlog/aplus/' + i + '.js';
  30. f.parentNode.insertBefore(j, f);
  31. })(window, document, 'script', 'aplus_queue', '203467608');
  32. //集成应用的appKey
  33. aplus_queue.push({
  34. action: 'aplus.setMetaInfo',
  35. arguments: ['appKey', '67f7398365c707471a44afb5']
  36. });
  37. /************************以下内容为可选配置内容****************************/
  38. //sdk提供手动pv发送机制,启用手动pv(即关闭自动pv),需设置aplus-waiting=MAN;
  39. //注意:由于单页面路由改变时不会刷新页面,无法自动发送pv,所以对于单页应用,强烈建议您关闭自动PV, 手动控制PV事件
  40. aplus_queue.push({
  41. action: 'aplus.setMetaInfo',
  42. // arguments: ['aplus-waiting', 'MAN']
  43. });
  44. //是否开启调试模式
  45. aplus_queue.push({
  46. action: 'aplus.setMetaInfo',
  47. arguments: ['DEBUG', true]
  48. });
  49. //是否指定用作计算umid的id类型,默认为cnaid,目前支持:
  50. //1. 微信和QQ: openid; 字节和百度 anonymousid; 支付宝 alipay_id
  51. //2. 微信、QQ、字节、百度平台的 unionid
  52. //3. 业务方自己生成的随机id uuid
  53. aplus_queue.push({
  54. action: 'aplus.setMetaInfo',
  55. arguments: ['aplus-idtype', 'globalproperty'] //取值参考见附表1
  56. });
  57. console.log("11211")
  58. /******************************************************************/
  59. </script>
  60. </head>
  61. <body>
  62. <div id="app"><!--app-html--></div>
  63. <script type="module" src="/main.js"></script>
  64. </body>
  65. </html>