mcHaifmvIndex.htm 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>慧牧科技</title>
  5. <style type="text/css">
  6. .mcSelect {
  7. background: url('views/haifm/images/bj.png') repeat-x;
  8. height: 35px;
  9. text-align: center;
  10. margin-top: 5px;
  11. }
  12. #chooseQkSet .modal-dialog {
  13. width: 300px;
  14. margin: 36% auto 0 auto;
  15. }
  16. #chooseQkSet .modal-dialog div.option {
  17. height: 40px;
  18. line-height: 40px;
  19. text-align: center;
  20. }
  21. #chooseQkSet .modal-dialog div.option:first-child {
  22. border-bottom: 1px solid #F0F0F0;
  23. }
  24. #addWrapper .emerge{
  25. -webkit-animation-name: emerge;
  26. animation-name: emerge;
  27. -webkit-animation-duration: .2s;
  28. animation-duration: .2s;
  29. -webkit-animation-fill-mode: forwards;
  30. animation-fill-mode: forwards;
  31. }
  32. #addWrapper .addButton{
  33. position: relative;
  34. box-shadow: 0 5px 11px rgba(98,98,102,0.25);
  35. font-size: 30px;
  36. width: 0.9rem;
  37. height: 0.9rem;
  38. line-height: 0.9rem;
  39. margin: 0 auto;
  40. text-align: center;
  41. color: white;
  42. border-radius: 100%;
  43. font-size: 0.38rem;
  44. }
  45. #addWrapper {
  46. width:0.9rem;
  47. border-radius: 100%;
  48. height: 0.9rem;
  49. text-align:center;
  50. margin:0 auto;
  51. background-color: transparent;
  52. }
  53. .glyphicon-folder-open{
  54. color: #ddd;
  55. }
  56. </style>
  57. <script type="text/javascript">
  58. $(function () {
  59. $("#type").val("1");
  60. loadZsList();
  61. loadQkSz();
  62. $("#selectMc").bind("change", function () {
  63. loadZsList();
  64. loadQkSz();
  65. $("#type").val("1");
  66. });
  67. $('#QkSetOptions').on('click', '.option', function () {
  68. var mcid = $("#mcid").val();
  69. $('.modal-backdrop').remove();
  70. $('body').removeClass('modal-open');
  71. haifm.loadMobilePage("haifm", "haifmQk" + $(this).data('skip') + ".htm?mcid=" + mcid);
  72. $("#type").val("2");
  73. $("#addWrapper").addClass("hidden");
  74. });
  75. $("#addWrapper").on("click", function() {
  76. var mcid = $("#mcid").val();
  77. $("footer.row").hide();
  78. haifm.loadMobilePage("zslb", "haifmvDaViewMcda.htm?mcid=" + mcid);
  79. $("#addWrapper").addClass("hidden");
  80. $("#type").val("2");
  81. });
  82. $("#addWrapper").removeClass("hidden");
  83. });
  84. function loadQkSz() {
  85. if ($("#mcid").val() == "21") {
  86. $("#qkPlane").attr("class", "glyphicon glyphicon-wrench")
  87. .attr('data-target', '#chooseQkSet')
  88. .attr('data-toggle', 'modal')
  89. .data('target','#chooseQkSet');
  90. } else {
  91. $("#qkPlane").attr("class", "placeholder btn-group")
  92. .attr('data-target', '')
  93. .attr('data-toggle', '')
  94. .data('target','');
  95. }
  96. }
  97. /**
  98. * 加载猪舍列表
  99. */
  100. function loadZsList() {
  101. haifm.loadMobilePage("zslb", "mcHaifmvZsList.htm?mcid=" + $("#mcid").val());
  102. }
  103. /**
  104. * 返回
  105. */
  106. function backUrl() {
  107. var type = $("#type").val();
  108. if (type == "2") {
  109. haifm.loadMobilePage("zslb", "mcHaifmvZsList.htm?mcid=" + $("#mcid").val());
  110. $("#type").val("1");
  111. $("#addWrapper").removeClass("hidden");
  112. } else {
  113. haifm.loadMobilePage("haifm", "haifmvMain.htm?mcid=" + $("#mcid").val());
  114. }
  115. }
  116. </script>
  117. </head>
  118. <body>
  119. <input type="hidden" value="1" id="type" />
  120. <div style="flex: 1;height: 100%;display: flex;display: -webkit-flex;flex-direction: column;position: relative;">
  121. <div id="zslb" style="flex: 1;display: flex;flex-direction: column;height: 100%;"></div>
  122. #if ("$!gh" != "h000")
  123. <div id="addWrapper" class="navbar-fixed-bottom nav-justified hidden" style="position: absolute;bottom: 0.2rem;" onclick="">
  124. <div class="addButton emerge"><span class="glyphicon glyphicon-folder-open"></span></div>
  125. </div>
  126. #end
  127. </div>
  128. <!-- 选择环境控制入口 -->
  129. <div class="modal" id="chooseQkSet">
  130. <div class="modal-dialog">
  131. <div class="modal-content" id="QkSetOptions">
  132. <div class="option" data-dismiss="modal" data-skip="ph">PH</div>
  133. <div class="option" data-dismiss="modal" data-skip="sy">水压</div>
  134. <div class="option" data-dismiss="modal" data-skip="sz">全控设置</div>
  135. </div>
  136. </div>
  137. </div>
  138. </body>
  139. </html>