04-02.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <!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="__PUBLIC__/wxapp/js/jquery-1.8.3/jquery.min.js"></script>
  12. <script src="__PUBLIC__/wxapp/js/echarts.min.js"></script>
  13. <script src="__PUBLIC__/html/video/ezuikit.js"></script>
  14. <link rel="stylesheet" href="__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="__MODULE__/Dmanger/index{$tokenurl}/companyid/{$companyid}">
  49. <img style="height: 16px;" src="__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">{$list.owner_name}</span>
  62. <span class="mar-words" style="color: #646464;">{$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>{$bb}<span id='dev_title_unit'>Mpa</span> <br>
  71. 设备类型:{$list.dwtypes} <br>
  72. 设备编号:{$list.deviceid} <br>
  73. 物联网卡号:{$list.sim}<br>
  74. 安装位置:{$list.azwz}<br>
  75. 添加时间:{$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. {$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="{$list.rtmp}" type=""/>-->
  96. <!-- <source src="{$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. <!-- {$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 = "{$dwtype}";
  127. var tes = '0';
  128. var tyss = "";
  129. if (dwtype == 2) {
  130. tes = '一周设备数值变化';
  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+'<br>电量:{a} : {c}'
  149. // },
  150. tooltip: {
  151. trigger: 'axis',
  152. axisPointer: {
  153. type: 'cross',
  154. animation: false,
  155. label: {
  156. backgroundColor: '#505765'
  157. }
  158. }
  159. },
  160. // legend: {
  161. // data:['邮件营销']
  162. // },
  163. grid: {
  164. left: '3%',
  165. right: '4%',
  166. bottom: '3%',
  167. containLabel: true
  168. },
  169. toolbox: {
  170. // feature: {
  171. // saveAsImage: {}
  172. // }
  173. }, legend: {
  174. data: ['水压/水位(兆帕/米)', '电量/信号(%)'],
  175. left: 10
  176. },
  177. xAxis: {
  178. type: 'category',
  179. // boundaryGap: false,
  180. axisTick: {
  181. alignWithLabel: true
  182. },
  183. data: {$time}
  184. },
  185. yAxis: [{
  186. name: '水压/水位',
  187. type: 'value',
  188. max: 1
  189. }, {
  190. name: '电量/信号',
  191. nameLocation: 'start',
  192. max: 100,
  193. type: 'value',
  194. // inverse: true
  195. }],
  196. dataZoom: [{
  197. type: 'slider',
  198. xAxisIndex: 0,
  199. filterMode: 'empty',
  200. start: 0,
  201. end: 100
  202. }, {
  203. type: 'inside',
  204. xAxisIndex: 0,
  205. filterMode: 'empty',
  206. start: 0,
  207. end: 100
  208. }],
  209. series: [
  210. {
  211. name: tes2,
  212. type: 'line',
  213. stack: 'Pa',
  214. animation: false,
  215. data: {$data4},
  216. color: ['#2699fb'],
  217. yAxisIndex: 0
  218. }, {
  219. name: "信号强度",
  220. type: 'line',
  221. stack: '%',
  222. animation: false,
  223. data: {$signal},
  224. color: ['#ffff00'],
  225. yAxisIndex: 1
  226. }, {
  227. name: "电池电量",
  228. type: 'line',
  229. stack: 'a',
  230. animation: false,
  231. data: {$electric},
  232. color: ['#ff0000'],
  233. yAxisIndex: 1
  234. }
  235. ]
  236. };
  237. var myChart3 = echarts.init(document.getElementById('ownerinfo_3'));//4echers // 基于准备好的dom,初始化echarts实例
  238. myChart3.setOption(options);// 使用刚指定的配置项和数据显示图表。
  239. }
  240. </script>
  241. </body>
  242. </html>