blanck.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <style>
  7. </style>
  8. <script type="text/javascript">
  9. function load()
  10. {
  11. // var toUrl = document.URL
  12. // var toPage = toUrl.split(":")
  13. // var port = toPage[2].split("/")
  14. // var totalUrl = toPage[0] + toPage[1] + ':' + port[0]
  15. var url = document.URL
  16. var urlArrar = url.split("&")
  17. userInfo = {}
  18. urlArrar.shift()
  19. urlArrar.forEach(item => {
  20. keyObj = item.split("=")
  21. userInfo[keyObj[0]] = keyObj[1]
  22. })
  23. localStorage.setItem('loginInfo', JSON.stringify(userInfo))
  24. if (userInfo.test === 'true') {
  25. window.location.href = 'http://duptest.bgyfw.com:8001/#/welcome'
  26. } else {
  27. window.location.href = 'https://dup.bgyfw.com/#/welcome'
  28. }
  29. // window.location.href= totalUrl + "/#/welcome"
  30. }
  31. </script>
  32. </head>
  33. <body onload="load()">
  34. <div>
  35. </div>
  36. </body>
  37. </html>