index.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  6. <!-- 外部链接图片加载 -->
  7. <meta name="referrer" content="no-referrer"/>
  8. <!-- <link rel ="shortcut icon" type="image/x-icon" href="static/logo.gif">-->
  9. <title>智能客服系统</title>
  10. </head>
  11. <!-- <script src="./url_config.js"></script> -->
  12. <script>
  13. window.url_https_ajax = 'https://manage.281570.com';
  14. window.url_https_wss = 'link.281570.com';
  15. </script>
  16. <body>
  17. <div id="app"></div>
  18. <!-- built files will be auto injected -->
  19. </body>
  20. <script>
  21. let name = getQueryString('pid');
  22. // console.log(unescape(name))
  23. if(unescape(name) == "这就是一个编码没有什么用啊"){
  24. // console.log(name)
  25. }else {
  26. document.getElementById("app").remove();
  27. var parent = document.body;
  28. var div = document.createElement("div");
  29. parent.appendChild(div)
  30. div.innerHTML = "无效访问地址";
  31. }
  32. function getQueryString(name) {
  33. var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  34. var r = window.location.search.substr(1).match(reg);
  35. if (r != null) {
  36. return unescape(r[2]);
  37. }
  38. return null;
  39. }
  40. // !function (window) {
  41. // /* 设计图文档宽度 */
  42. // var docWidth = 100/1920;
  43. // var doc = window.document,
  44. // docEl = doc.documentElement,
  45. // resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
  46. // var recalc = (function refreshRem () {
  47. // let client_width = document.body.clientWidth
  48. // console.log(client_width)
  49. // /* 8.55:小于320px不再缩小,11.73:大于440px不再放大 */
  50. // if(client_width <500){
  51. // docWidth = 10/750
  52. // //var clientWidth = docEl.getBoundingClientRect().width;
  53. // ///docEl.style.fontSize = Math.max(Math.min(20 * (clientWidth / docWidth), 11.73), 8.55) * 5 + 'px';
  54. // docEl.style.fontSize =parseInt(414/750*100) +'px';
  55. // }else{
  56. // docEl.style.fontSize =docWidth*1920 + 'px';//pcduan
  57. // }
  58. // console.log('11',docEl.style.fontSize)
  59. // return refreshRem;
  60. // })();
  61. // /* 添加倍屏标识,安卓为1 */
  62. // docEl.setAttribute('data-dpr', window.navigator.appVersion.match(/iphone/gi) ? window.devicePixelRatio : 1);
  63. // if (/iP(hone|od|ad)/.test(window.navigator.userAgent)) {
  64. // /* 添加IOS标识 */
  65. // doc.documentElement.classList.add('ios');
  66. // /* IOS8以上给html添加hairline样式,以便特殊处理 */
  67. // if (parseInt(window.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1], 10) >= 8)
  68. // doc.documentElement.classList.add('hairline');
  69. // }
  70. // if (!doc.addEventListener) return;
  71. // window.addEventListener(resizeEvt, recalc, false);
  72. // doc.addEventListener('DOMContentLoaded', recalc, false);
  73. // }(window);
  74. </script>
  75. </html>