securityMonitor.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <link rel="stylesheet" href="../../css/api.css">
  9. <!--<link rel="stylesheet" href="../../css/aui.css">-->
  10. <link rel="stylesheet" href="../../css/style.css">
  11. <link rel="stylesheet" href="../../css/projeck.css">
  12. <title></title>
  13. <style>
  14. .aui-searchbar{
  15. width: 86%;
  16. height: 50px;
  17. margin-left: 40px;
  18. background-color: transparent;
  19. }
  20. .aui-searchbar .aui-searchbar-btn{
  21. color: #fff;
  22. }
  23. #search-input::placeholder{
  24. color: #fff;
  25. font-size: 13px;
  26. }
  27. .search_ico{
  28. width: 16px;
  29. height: 16px;
  30. display: block;
  31. position: absolute;
  32. background: url("../../image/seacrh001.png") no-repeat;
  33. background-size: cover;
  34. top: 7px;
  35. left: 17px;
  36. }
  37. .backBtn{
  38. margin-left: 5px;
  39. }
  40. #search-input{
  41. font-size: 14px;
  42. }
  43. header ul li { height: 50px; line-height: 50px; text-align: center; display: none; color: #fff; position: relative;font-size: 18px; }
  44. header ul li.active{ display: block; }
  45. #footer{ background-color: #fff; }
  46. #footer ul li{ padding-top: 39px; padding-bottom: 4px; background: url() no-repeat center 10px; background-size: auto 25px; text-align: center; font-size: 13px;color: #b3b3b3;}
  47. #footer ul li.active{ color: #009fe8; }
  48. #footer ul li:nth-child(1){ background-image: url(../../image/NVTabBar/ss1.png); }
  49. #footer ul li:nth-child(2){ background-image: url(../../image/NVTabBar/k1.png); }
  50. #footer ul li:nth-child(3){ background-image: url(../../image/NVTabBar/l1.png); }
  51. #footer ul li:nth-child(4){ background-image: url(../../image/NVTabBar/g1.png); }
  52. #footer ul li:nth-child(1).active{ background-image: url(../../image/NVTabBar/ss2.png); }
  53. #footer ul li:nth-child(2).active{ background-image: url(../../image/NVTabBar/k2.png); }
  54. #footer ul li:nth-child(3).active{ background-image: url(../../image/NVTabBar/l2.png); }
  55. #footer ul li:nth-child(4).active{ background-image: url(../../image/NVTabBar/g2.png); }
  56. .flex-con{
  57. overflow: auto
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <div id="wrap" class="flex-wrap flex-vertical">
  63. <header class="header-login">
  64. <ul>
  65. <li class="border-b active" >
  66. <img class="backBtn" src="../../image/btn_back.png" alt="" onclick="backIndex()">
  67. <div class="aui-searchbar" id="search">
  68. <div class="aui-searchbar-input aui-border-radius" onclick="searchInfo()">
  69. <i class="search_ico"></i>
  70. <form>
  71. <input type="search" placeholder="搜索" id="search-input" readonly>
  72. </form>
  73. </div>
  74. </div>
  75. </li>
  76. <li class="border-b" >
  77. <img class="backBtn" src="../../image/btn_back.png" alt="" onclick="backIndex()">
  78. <div class="aui-searchbar" id="search">
  79. <div class="aui-searchbar-input aui-border-radius" onclick="searchInfo()">
  80. <i class="search_ico"></i>
  81. <form>
  82. <input type="search" placeholder="搜索" id="search-input" readonly>
  83. </form>
  84. </div>
  85. </div>
  86. </li>
  87. <!-- <li class="border-b" >
  88. <header class="header-login">
  89. <img class="backBtn" src="../../image/btn_back.png" alt="" onclick="backIndex()">
  90. <p class="api_text">历史数据</p>
  91. </header>
  92. </li>
  93. <li class="border-b" >
  94. <header class="header-login">
  95. <img class="backBtn" src="../../image/btn_back.png" alt="" onclick="backIndex()">
  96. <p class="api_text">故障记录</p>
  97. </header>
  98. </li> -->
  99. </ul>
  100. </header>
  101. <div id="main" class="flex-con">
  102. </div>
  103. <div id="footer" class="border-t">
  104. <ul class="flex-wrap" >
  105. <li onclick="randomSwitchBtn( this );" class="icon iconfont flex-con active">模拟量</li>
  106. <li onclick="randomSwitchBtn( this );" class="icon iconfont flex-con icon iconfont" >开关量</li>
  107. <!-- <li onclick="randomSwitchBtn( this );" class="icon iconfont flex-con" >历史数据</li> -->
  108. <!-- <li onclick="randomSwitchBtn( this );" class="icon iconfont flex-con" >故障记录</li> -->
  109. </ul>
  110. </div>
  111. </div>
  112. <script src="../../script/api.js"></script>
  113. <!-- <script src="../../script/fastclick.min.js"></script> -->
  114. <script src="../../script/config.js"></script>
  115. <script>
  116. apiready = function(){
  117. $api.fixStatusBar( $api.dom('header'));
  118. funIniGroup();
  119. };
  120. function funIniGroup(){
  121. var eHeaderLis = $api.domAll('header li'),
  122. frames = [];
  123. for (var i = 0,len = eHeaderLis.length; i < len; i++) {
  124. frames.push({
  125. name: 'monitor'+i,
  126. url: 'monitor'+i+'.html',
  127. bgColor : '#f2f2f2',
  128. bounces:true
  129. })
  130. }
  131. api.openFrameGroup({
  132. name: 'monitorGroup',
  133. scrollEnabled: false,
  134. rect: {
  135. x: 0,
  136. y: $api.dom('header').offsetHeight,
  137. w: api.winWidth,
  138. h: $api.dom('#main').offsetHeight
  139. },
  140. index: 0,
  141. frames: frames,
  142. preload : 0
  143. }, function (ret, err) {
  144. });
  145. };
  146. // 随意切换按钮
  147. function randomSwitchBtn( tag ) {
  148. if( tag == $api.dom('#footer li.active') )return;
  149. var eFootLis = $api.domAll('#footer li'),
  150. eHeaderLis = $api.domAll('header li'),
  151. index = 0;
  152. for (var i = 0,len = eFootLis.length; i < len; i++) {
  153. if( tag == eFootLis[i] ){
  154. index = i;
  155. }else{
  156. $api.removeCls(eFootLis[i], 'active');
  157. $api.removeCls(eHeaderLis[i], 'active');
  158. }
  159. }
  160. $api.addCls( eFootLis[index], 'active');
  161. $api.addCls( eHeaderLis[index], 'active');
  162. api.setFrameGroupIndex({
  163. name: 'monitorGroup',
  164. index: index
  165. });
  166. }
  167. function backIndex() {
  168. api.closeWin();
  169. }
  170. // 搜索
  171. function searchInfo() {
  172. $event.openWin('searchWin','searchWin','','')
  173. }
  174. </script>
  175. </body>
  176. </html>