a935521fd0b782df8c0e29e14f09d344.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  5. <meta charset="utf-8">
  6. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  7. <meta content="yes" name="apple-mobile-web-app-capable">
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style">
  9. <meta content="telephone=no" name="format-detection">
  10. <!-- <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css"> -->
  11. <script src="/jdxf/Public/wxapp/js/jquery-1.8.3/jquery.min.js"></script>
  12. <script src="/jdxf/Public/wxapp/js/echarts.min.js"></script>
  13. <script src="/jdxf/Public/html/video/ezuikit.js"></script>
  14. <link rel="stylesheet" href="/jdxf/Public/wxapp/css/jdxf.css">
  15. <title>设备详情</title>
  16. <style>
  17. .bjbox {
  18. margin: 15px 0;
  19. }
  20. .mar {
  21. margin: 0 30px;
  22. }
  23. .bjbox-c {
  24. font-size: 14px;
  25. color: #646464;
  26. }
  27. .box {
  28. height: 20px;
  29. background-color: #F5F5F5;
  30. }
  31. .mar-words {
  32. float: right;
  33. font-size: 18px;
  34. }
  35. .height1dcdcdc {
  36. display: block;
  37. height: 1px;
  38. margin-top: 2px;
  39. margin-bottom: 20px;
  40. background: #DCDCDC;
  41. }
  42. </style>
  43. </head>
  44. <body>
  45. <!-- 头部 -->
  46. <div class="hand">
  47. <span class="hand-i"><!-- <i class="fa fa-angle-down"></i> -->
  48. <a href="/jdxf/wxapp2.php/Home/Dmanger/index<?php echo ($tokenurl); ?>/companyid/<?php echo ($companyid); ?>">
  49. <img style="height: 16px;" src="/jdxf/Public/wxapp/images/jd_07.png" alt="">
  50. </a>
  51. </span>
  52. 设备详情
  53. </div>
  54. <!-- 内容块 -->
  55. <div class="bjbox">
  56. <!-- <div class="bjbox-c mar">
  57. <span>2018/02/20 10:25</span>
  58. <span style="float: right;">离线</span>
  59. </div> -->
  60. <div class="mar">
  61. <span class="ownername"><?php echo ($list["owner_name"]); ?></span>
  62. <span class="mar-words" style="color: #646464;"><?php echo ($list["zs_status"]); ?></span>
  63. </div>
  64. </div>
  65. <div class="box"></div>
  66. <div class="bjbox">
  67. <div class="bjbox-c mar">基本信息</div>
  68. <div class="height1dcdcdc"></div>
  69. <div class="mar">
  70. <span id='dev_title_lab'>当前水压:</span><?php echo ($bb); ?><span id='dev_title_unit'>Mpa</span> <br>
  71. 设备类型:<?php echo ($list["dwtypes"]); ?> <br>
  72. 设备编号:<?php echo ($list["deviceid"]); ?> <br>
  73. 物联网卡号:<?php echo ($list["sim"]); ?><br>
  74. 安装位置:<?php echo ($list["azwz"]); ?><br>
  75. 添加时间:<?php echo ($list["install_time"]); ?>
  76. </div>
  77. </div>
  78. <div class="box"></div>
  79. <div class="bjbox">
  80. <div class="bjbox-c mar">地址</div>
  81. <div class="height1dcdcdc"></div>
  82. <div class="mar">
  83. <?php echo ($list["owner_address"]); ?>
  84. </div>
  85. </div>
  86. <div class="box"></div>
  87. <!--<div class="bjbox">-->
  88. <!-- <div class="bjbox-c mar">视频</div>-->
  89. <!-- <div class="height1dcdcdc" style=" margin-bottom: 0;"></div>-->
  90. <!-- <div class="br-video-body">-->
  91. <!-- <video id="video123" style="width: 100%; height: 200px" poster="" controls playsInline webkit-playsinline-->
  92. <!-- autoplay>-->
  93. <!-- &lt;!&ndash;<source src="rtmp://rtmp.open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b" type="" />&ndash;&gt;-->
  94. <!-- &lt;!&ndash;<source src="http://hls.open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.m3u8" type="application/x-mpegURL" />&ndash;&gt;-->
  95. <!-- <source src="<?php echo ($list["rtmp"]); ?>" type=""/>-->
  96. <!-- <source src="<?php echo ($list["hls"]); ?>" type="application/x-mpegURL"/>-->
  97. <!-- </video>-->
  98. <script>
  99. var player = new EZUIPlayer('video123');
  100. player.on('error', function () {
  101. console.log('error');
  102. });
  103. player.on('play', function () {
  104. console.log('play');
  105. });
  106. player.on('pause', function () {
  107. console.log('pause');
  108. });
  109. </script>
  110. <!-- </div>-->
  111. <!-- &lt;!&ndash;<div class="mar" style="margin: 0">-->
  112. <!-- <?php echo ($list["h5"]); ?>-->
  113. <!-- </div>&ndash;&gt;-->
  114. <!--</div>-->
  115. <div class="box"></div>
  116. <div class="bjbox">
  117. <div class="bjbox-c mar">图表</div>
  118. <div class="height1dcdcdc" style=" margin-bottom: 0;"></div>
  119. <div class="mar" style="margin: 0">
  120. <div id="ownerinfo_3" style="width: 100%;height: 300px"></div>
  121. </div>
  122. </div>
  123. <script>
  124. owner_3();
  125. function owner_3() {
  126. var dwtype = "<?php echo ($dwtype); ?>";
  127. var tes = '0';
  128. var tyss = "";
  129. if (dwtype == 2) {
  130. tes = '一周水压值变化(Mpa)';
  131. tes2 = '水压值';
  132. tyss = "兆帕";
  133. }
  134. if (dwtype == 5) {
  135. tes = '一周水位值变化 (m)';
  136. tes2 = '水位值';
  137. tyss = "米";
  138. document.getElementById('dev_title_lab').innerHTML = '当前水位:';
  139. document.getElementById('dev_title_unit').innerHTML = 'm';
  140. }
  141. var options = {
  142. title: {
  143. x: 'center',
  144. text: tes
  145. },
  146. tooltip: {
  147. trigger: 'axis',
  148. formatter: '{b}<br>{a} : {c} ' + tyss
  149. },
  150. // legend: {
  151. // data:['邮件营销']
  152. // },
  153. grid: {
  154. left: '3%',
  155. right: '4%',
  156. bottom: '3%',
  157. containLabel: true
  158. },
  159. toolbox: {
  160. // feature: {
  161. // saveAsImage: {}
  162. // }
  163. },
  164. xAxis: {
  165. type: 'category',
  166. // boundaryGap: false,
  167. axisTick: {
  168. alignWithLabel: true
  169. },
  170. data: <?php echo ($time); ?>
  171. },
  172. yAxis: {
  173. type: 'value'
  174. },
  175. dataZoom: [{
  176. type: 'slider',
  177. xAxisIndex: 0,
  178. filterMode: 'empty',
  179. start: 0,
  180. end: 100
  181. },
  182. {
  183. type: 'inside',
  184. xAxisIndex: 0,
  185. filterMode: 'empty',
  186. start: 0,
  187. end: 100
  188. }],
  189. series: [
  190. {
  191. name: tes2,
  192. type: 'line',
  193. stack: 'Pa',
  194. data: <?php echo ($data4); ?>,
  195. color: ['#2699fb']
  196. }
  197. ]
  198. };
  199. var myChart3 = echarts.init(document.getElementById('ownerinfo_3'));//4echers // 基于准备好的dom,初始化echarts实例
  200. myChart3.setOption(options);// 使用刚指定的配置项和数据显示图表。
  201. }
  202. </script>
  203. </body>
  204. </html>