call.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <meta name="renderer" content="webkit">
  7. <meta name="force-rendering" content="webkit">
  8. <meta name="google" value="notranslate">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  11. <meta name="keywords" content="AI外呼,广州微分,">
  12. <meta name="description" itemprop="description" content="AI外呼">
  13. <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
  14. <script>
  15. function isPC () {
  16. // 屏幕尺寸检测
  17. const isSmallScreen = window.innerWidth < 768;
  18. return !isSmallScreen;
  19. }
  20. if (!isPC()) {
  21. window.location.replace('<%= VUE_APP_H5_URL %>')
  22. }
  23. window.addEventListener('resize', function() {
  24. if (!isPC()) {
  25. window.location.replace('<%= VUE_APP_H5_URL %>')
  26. }
  27. })
  28. </script>
  29. <script src="https://wfg-1631.oss.wefanbot.com/cdn/vue.min.js"></script>
  30. <script src="https://wfg-1631.oss.wefanbot.com/cdn/vue-router.min.js"></script>
  31. <script src="https://wfg-1631.oss.wefanbot.com/cdn/vuex.min.js"></script>
  32. <script src="https://wfg-1631.oss.wefanbot.com/cdn/iview.min.js"></script>
  33. <link rel="shortcut icon" href="<%= BASE_URL %>favicon.ico">
  34. <title>
  35. <%= htmlWebpackPlugin.options.title %>
  36. </title>
  37. <link rel="stylesheet" href="https://wfg-1631.oss.wefanbot.com/cdn/iview.min.css">
  38. <link rel="stylesheet" href="/styles/index.css">
  39. </head>
  40. <body>
  41. <h1 style="width: 0px; height: 0px;overflow: hidden;" title="AI外呼">
  42. <a>AI外呼</a>
  43. </h1>
  44. <div id="app"></div>
  45. <!-- built files will be auto injected -->
  46. </body>
  47. </html>
  48. <script>
  49. (function flexible (window, document) {
  50. let docEl = document.documentElement
  51. let dpr = window.devicePixelRatio || 1
  52. // adjust body font size
  53. function setBodyFontSize () {
  54. if (document.body) {
  55. document.body.style.fontSize = (12 * dpr) + 'px'
  56. } else {
  57. document.addEventListener('DOMContentLoaded', setBodyFontSize)
  58. }
  59. }
  60. setBodyFontSize()
  61. // set 1rem = viewWidth / 10
  62. function setRemUnit () {
  63. let rem = docEl.clientWidth / 1440
  64. docEl.style.fontSize = rem + 'px'
  65. }
  66. setRemUnit()
  67. // reset rem unit on page resize
  68. window.addEventListener('resize', setRemUnit)
  69. window.addEventListener('pageshow', function(e) {
  70. if (e.persisted) {
  71. setRemUnit()
  72. }
  73. })
  74. // detect 0.5px supports
  75. if (dpr >= 2) {
  76. let fakeBody = document.createElement('body')
  77. let testElement = document.createElement('div')
  78. testElement.style.border = '.5px solid transparent'
  79. fakeBody.appendChild(testElement)
  80. docEl.appendChild(fakeBody)
  81. if (testElement.offsetHeight === 1) {
  82. docEl.classList.add('hairlines')
  83. }
  84. docEl.removeChild(fakeBody)
  85. }
  86. }(window, document))
  87. </script>