pc.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang=zh-CN>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
  7. <title>加载中...</title>
  8. <meta name="Copyright" content="helang">
  9. <link rel="shortcut icon" type="image/png" href="/uniapp-extend/static/logo.png">
  10. <meta name="keywords" content="CRMEB">
  11. <meta name="description" content="CRMEB">
  12. <style type="text/css">
  13. body{
  14. margin: 0;
  15. background-color: #f5f5f5;
  16. }
  17. iframe{
  18. width: 375px;
  19. height: 667px;
  20. background-color: #fff;
  21. /* box-sizing: content-box; */
  22. box-sizing: border-box;
  23. border: none;
  24. }
  25. @media screen and (min-width: 450px) {
  26. iframe {
  27. position: fixed;
  28. top: 0;
  29. right: 0;
  30. bottom: 0;
  31. left: 0;
  32. margin: auto;
  33. border: 1px solid #f5f5f5;
  34. border-radius: 4px;
  35. }
  36. }
  37. </style>
  38. <script type="text/javascript">
  39. window.isPC = true;
  40. window.onload = function(){
  41. /* 监听电脑浏览器窗口尺寸改变 */
  42. if(window.innerWidth <= 430){
  43. window.location.pathname = '/';
  44. }
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <!--若你的项目未设置根目录(默认为 / 时),则使用下方代码-->
  50. <iframe src="/" id="iframe"></iframe>
  51. <!-- <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script> -->
  52. <script type="text/javascript">
  53. // var Ip=returnCitySN['cip']
  54. // localStorage.setItem('Ip', Ip)
  55. </script>
  56. </body>
  57. </html>