sceneview.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="en" id="htmlRoot">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="renderer" content="webkit" />
  7. <meta name="keywords" content="空间数据管理平台" />
  8. <meta name="description" content="空间数据管理平台" />
  9. <meta http-equiv="Expires" content="0" />
  10. <meta http-equiv="Cache-control" content="no-cache" />
  11. <meta http-equiv="Cache" content="no-cache" />
  12. <title>空间数据管理平台</title>
  13. <link rel="icon" href="/favicon.ico" />
  14. <style>
  15. body {
  16. margin: 0;
  17. padding: 0;
  18. overflow: hidden;
  19. -ms-overflow-style: none;
  20. scrollbar-width: none;
  21. }
  22. body::-webkit-scrollbar {
  23. display: none;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <script>
  29. window.onload = function () {
  30. var t1 = sessionStorage.getItem('tokenSpace');
  31. var t2 = sessionStorage.getItem('tokenV2');
  32. if (t1 && t2) {
  33. var obj = JSON.parse(JSON.stringify(window.location.href));
  34. var arr = obj.split("?")
  35. if (arr.length && arr[1]) {
  36. if (arr[1].indexOf("onlineIde_") > -1) {
  37. // creteIframe(`http://106.12.170.138:4001/examples/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  38. // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  39. creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  40. } else {
  41. // creteIframe(arr[1])
  42. creteIframe(`http://192.168.119.143:8080/onemapV5.0/sceneview.html?${arr[1]}`)
  43. // creteIframe(`http://106.12.170.138:8080/onemapV5.0/sceneview.html?${arr[1]}`)
  44. }
  45. }
  46. } else {
  47. window.location.href = '/#/login'
  48. }
  49. }
  50. function creteIframe(url) {
  51. const iframe = document.createElement('iframe');
  52. iframe.style.width = '100vw';
  53. iframe.style.height = '100vh';
  54. iframe.style.border = '0px';
  55. iframe.src = url;
  56. document.body.appendChild(iframe);
  57. }
  58. </script>
  59. </body>
  60. </html>