call.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. const ua = navigator.userAgent;
  17. const platform = navigator.platform;
  18. // 移动设备检测
  19. const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i;
  20. const isMobile = mobileRegex.test(ua);
  21. // 平板设备检测
  22. const tabletRegex = /iPad|Tablet|PlayBook|Silk|Kindle|(Android(?!.*Mobile))|(Windows(?!.*Phone))(.*Touch)/i;
  23. const isTablet = tabletRegex.test(ua);
  24. // 屏幕尺寸检测
  25. const isSmallScreen = window.innerWidth < 768;
  26. // 触摸支持检测
  27. const hasTouch = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
  28. // 如果是移动设备、平板设备、小屏幕设备,则不是PC
  29. if (isMobile || isTablet || isSmallScreen) {
  30. return false;
  31. }
  32. // 额外的PC特征检测
  33. const isWindows = /Win/i.test(platform);
  34. const isMac = /Mac/i.test(platform);
  35. const isLinux = /Linux/i.test(platform);
  36. return (isWindows || isMac || isLinux) && !hasTouch;
  37. }
  38. if (!isPC()) {
  39. window.location.replace('<%= VUE_APP_H5_URL %>')
  40. }
  41. window.addEventListener('resize', function() {
  42. if (!isPC()) {
  43. window.location.replace('<%= VUE_APP_H5_URL %>')
  44. }
  45. })
  46. </script>
  47. <script src="https://wfg-1631.oss.wefanbot.com/cdn/vue.min.js"></script>
  48. <script src="https://wfg-1631.oss.wefanbot.com/cdn/vue-router.min.js"></script>
  49. <script src="https://wfg-1631.oss.wefanbot.com/cdn/vuex.min.js"></script>
  50. <script src="https://wfg-1631.oss.wefanbot.com/cdn/iview.min.js"></script>
  51. <link rel="shortcut icon" href="<%= BASE_URL %>favicon.ico">
  52. <title>
  53. <%= htmlWebpackPlugin.options.title %>
  54. </title>
  55. <link rel="stylesheet" href="https://wfg-1631.oss.wefanbot.com/cdn/iview.min.css">
  56. <link rel="stylesheet" href="/styles/index.css">
  57. </head>
  58. <body>
  59. <h1 style="width: 0px; height: 0px;overflow: hidden;" title="AI外呼">
  60. <a>AI外呼</a>
  61. </h1>
  62. <div id="app"></div>
  63. <!-- built files will be auto injected -->
  64. </body>
  65. </html>
  66. <script>
  67. (function flexible (window, document) {
  68. let docEl = document.documentElement
  69. let dpr = window.devicePixelRatio || 1
  70. // adjust body font size
  71. function setBodyFontSize () {
  72. if (document.body) {
  73. document.body.style.fontSize = (12 * dpr) + 'px'
  74. } else {
  75. document.addEventListener('DOMContentLoaded', setBodyFontSize)
  76. }
  77. }
  78. setBodyFontSize()
  79. // set 1rem = viewWidth / 10
  80. function setRemUnit () {
  81. let rem = docEl.clientWidth / 1440
  82. docEl.style.fontSize = rem + 'px'
  83. }
  84. setRemUnit()
  85. // reset rem unit on page resize
  86. window.addEventListener('resize', setRemUnit)
  87. window.addEventListener('pageshow', function(e) {
  88. if (e.persisted) {
  89. setRemUnit()
  90. }
  91. })
  92. // detect 0.5px supports
  93. if (dpr >= 2) {
  94. let fakeBody = document.createElement('body')
  95. let testElement = document.createElement('div')
  96. testElement.style.border = '.5px solid transparent'
  97. fakeBody.appendChild(testElement)
  98. docEl.appendChild(fakeBody)
  99. if (testElement.offsetHeight === 1) {
  100. docEl.classList.add('hairlines')
  101. }
  102. docEl.removeChild(fakeBody)
  103. }
  104. }(window, document))
  105. </script>