ChatLi.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>聊天</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  9. <meta http-equiv="pragma" content="no-cache">
  10. <meta http-equiv="Cache" content="no-cache">
  11. <meta http-equiv="cache-control" content="no-cache, must-revalidate">
  12. <meta http-equiv="expires" content="0">
  13. <meta name="viewport"
  14. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  15. <link rel="stylesheet" href="../../css/element.css">
  16. <link rel="stylesheet" href="../../css/style.css">
  17. <link rel="stylesheet" id="linkSource" href="../../css/base.css">
  18. <script src="../../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  19. <script src="../../js/yz/init.js" type="text/javascript" charset="utf-8"></script>
  20. <script src="../../js/yz/shipLi.js"></script>
  21. <script src="../../js/yz/caht.js" type="text/javascript" charset="utf-8"></script>
  22. <script>
  23. checkLogin();
  24. </script>
  25. </head>
  26. <style type="text/css">
  27. *{
  28. margin: 0;
  29. padding: 0;
  30. }
  31. body {
  32. height: 100vh;
  33. background-color: #103151;
  34. }
  35. div,button{
  36. box-sizing: border-box;
  37. }
  38. .search_ input{
  39. width: 100%;
  40. height: 34px;
  41. line-height: 34px;
  42. border-radius: 10px;
  43. font-size: 14px;
  44. padding: 0 5px 0 30px;
  45. color: #bbb;
  46. background-color: rgba(255,255,255,0.2);
  47. border: 1px solid rgba(232, 232, 232, 0.3);
  48. }
  49. .search_ input::-webkit-input-placeholder{
  50. color: #bbb;
  51. }
  52. .search_ .icon-sousuo{
  53. position: absolute;
  54. left: 10px;
  55. top: 8px;
  56. color: #bbb;
  57. }
  58. .carmeBox{
  59. padding: 5px 15px;
  60. }
  61. .carmeBox li{
  62. display: flex;
  63. align-items: center;
  64. list-style: none;
  65. padding: 7px 0;
  66. font-size: 15px;
  67. }
  68. .carmeBox li .icon-luyin{
  69. margin-right: 4px;
  70. }
  71. .sb_drog+img{
  72. width: 22px !important;
  73. height: 22px !important;
  74. }
  75. </style>
  76. <body>
  77. <div class="topParen">
  78. <div class="topBox">
  79. <div>易聊</div>
  80. </div>
  81. <div style="padding: 10px 6px;">
  82. <div class="search_" style="position: relative;">
  83. <input type="" placeholder="设备号" id="searchInp">
  84. <i class="iconfont icon-sousuo"></i>
  85. </div>
  86. <div style="padding: 10px 0;">
  87. <div class="flex align-center" style="font-size: 16px;">
  88. <div class="iconfont icon-right" style="transform: rotate(90deg);"></div>
  89. <div>设备列表(<span id="sbLen">0/0</span>)</div>
  90. </div>
  91. <ul class="carmeBox">
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. </body>
  97. <script>
  98. $(document).ready(function(){
  99. ShowChat("mainPh");
  100. // setInterval(()=>{
  101. // ShowChat("mainPh");
  102. // },120*1000);
  103. localStorage.removeItem("nowStr")
  104. })
  105. $(document).on("click",".carmeBox li",function(){
  106. let _id = $(this).data("id");
  107. localStorage.setItem("nowStr",JSON.stringify(allCamera[_id]));
  108. top.location.href='./CahtRoom.html'
  109. })
  110. </script>
  111. </html>