index.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <body>
  12. <div id="app"></div>
  13. <!-- built files will be auto injected -->
  14. </body>
  15. <script>
  16. let name = getQueryString('pid');
  17. // console.log(unescape(name))
  18. if(unescape(name) == "这就是一个编码没有什么用啊"){
  19. // console.log(name)
  20. }else {
  21. document.getElementById("app").remove();
  22. var parent = document.body;
  23. var div = document.createElement("div");
  24. parent.appendChild(div)
  25. div.innerHTML = "无效访问地址";
  26. }
  27. function getQueryString(name) {
  28. var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  29. var r = window.location.search.substr(1).match(reg);
  30. if (r != null) {
  31. return unescape(r[2]);
  32. }
  33. return null;
  34. }
  35. // !function (window) {
  36. // /* 设计图文档宽度 */
  37. // var docWidth = 100/1920;
  38. // var doc = window.document,
  39. // docEl = doc.documentElement,
  40. // resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
  41. // var recalc = (function refreshRem () {
  42. // let client_width = document.body.clientWidth
  43. // console.log(client_width)
  44. // /* 8.55:小于320px不再缩小,11.73:大于440px不再放大 */
  45. // if(client_width <500){
  46. // docWidth = 10/750
  47. // //var clientWidth = docEl.getBoundingClientRect().width;
  48. // ///docEl.style.fontSize = Math.max(Math.min(20 * (clientWidth / docWidth), 11.73), 8.55) * 5 + 'px';
  49. // docEl.style.fontSize =parseInt(414/750*100) +'px';
  50. // }else{
  51. // docEl.style.fontSize =docWidth*1920 + 'px';//pcduan
  52. // }
  53. // console.log('11',docEl.style.fontSize)
  54. // return refreshRem;
  55. // })();
  56. // /* 添加倍屏标识,安卓为1 */
  57. // docEl.setAttribute('data-dpr', window.navigator.appVersion.match(/iphone/gi) ? window.devicePixelRatio : 1);
  58. // if (/iP(hone|od|ad)/.test(window.navigator.userAgent)) {
  59. // /* 添加IOS标识 */
  60. // doc.documentElement.classList.add('ios');
  61. // /* IOS8以上给html添加hairline样式,以便特殊处理 */
  62. // if (parseInt(window.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1], 10) >= 8)
  63. // doc.documentElement.classList.add('hairline');
  64. // }
  65. // if (!doc.addEventListener) return;
  66. // window.addEventListener(resizeEvt, recalc, false);
  67. // doc.addEventListener('DOMContentLoaded', recalc, false);
  68. // }(window);
  69. </script>
  70. </html>