pc.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="芋道商城">
  11. <meta name="description" content="芋道商城">
  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 <= 420){
  43. window.location.pathname = '/';
  44. }
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <!-- <iframe src="https://java.crmeb.net/"></iframe> -->
  50. <!--若你的项目未设置根目录(默认为 / 时),则使用下方代码-->
  51. <iframe src="/" id="iframe"></iframe>
  52. <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
  53. <script type="text/javascript">
  54. var Ip=returnCitySN['cip']
  55. localStorage.setItem('Ip', Ip)
  56. </script>
  57. </body>
  58. </html>