securtyWin.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html>
  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. <title></title>
  8. <link rel="stylesheet" type="text/css" href="../../css/api.css">
  9. <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
  10. <link rel="stylesheet" href="../../css/projeck.css">
  11. <style>
  12. body{
  13. background: #fff;
  14. }
  15. .nav_title{
  16. padding: 0 5px;
  17. background: #f3f6fa;
  18. }
  19. .nav_title li{
  20. text-align: center;
  21. font-size: 14px;
  22. padding: 12px 0 ;
  23. }
  24. .row_content{
  25. padding: 0 5px;
  26. }
  27. .row_content li{
  28. text-align: center;
  29. font-size: 13px;
  30. padding: 12px 0;
  31. align-items: center;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <div class="api_layout">
  37. <header class="header-login">
  38. <img class="backBtn" src="../../image/btn_back.png" alt="" onclick="backIndex()">
  39. <p class="api_text"></p>
  40. </header>
  41. <nav>
  42. <ul class="nav_title flex-wrap">
  43. <li class="flex-con">序号</li>
  44. <li class="flex-con">安装地点</li>
  45. <li class="flex-con">数值/状态</li>
  46. </ul>
  47. </nav>
  48. </div>
  49. <script src="../../script/api.js"></script>
  50. <!-- <script src="../../script/fastclick.min.js"></script> -->
  51. <script src="../../script/doT.min.js"></script>
  52. <script src="../../script/config.js"></script>
  53. <script>
  54. apiready = function () {
  55. $api.fixStatusBar($api.dom('header') );
  56. $api.html($api.dom('.api_text'), api.pageParam.title);
  57. openFrame(api.pageParam.title,api.pageParam.type);
  58. };
  59. function openFrame(name,type) {
  60. api.openFrame({
  61. name: 'securtyFrm',
  62. url: 'securtyFrm.html',
  63. rect: {
  64. x: 0,
  65. y: $api.dom('.api_layout').offsetHeight ,
  66. w: 'auto',
  67. h: 'auto'
  68. },
  69. pageParam: {
  70. title:name,
  71. type:type
  72. },
  73. bounces: true,
  74. bgColor: '#fff',
  75. vScrollBarEnabled: true,
  76. hScrollBarEnabled: true
  77. });
  78. }
  79. function backIndex() {
  80. api.closeWin();
  81. }
  82. // 监听物理返回键
  83. function keybackFun() {
  84. api.addEventListener({
  85. name: 'keyback'
  86. }, function(ret, err){
  87. api.closeWin();
  88. });
  89. }
  90. </script>
  91. </body>
  92. </html>