000007.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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">
  48. <a href="__MODULE__/Inspection/getDeviceList/record_id/{$record_id}/spot_id/{$spot_id}">
  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="mar">
  57. <span class="ownername">{$list.owner_name}</span>
  58. <span class="mar-words" style="color: #646464;">{$list.zs_status}</span>
  59. </div>
  60. </div>
  61. <div class="box"></div>
  62. <div class="bjbox">
  63. <div class="bjbox-c mar">基本信息</div>
  64. <div class="height1dcdcdc"></div>
  65. <div class="mar">
  66. <span id='dev_title_lab'>当前水压:</span>{$bb}<span id='dev_title_unit'>Mpa</span> <br>
  67. 设备类型:{$list.dwtypes} <br>
  68. <if condition="$dwtype eq 5 ">
  69. 设备厂家:上海永天<br>
  70. 传输方式:4G<br>
  71. 设备型号:PT124B-288<br>
  72. <else/>
  73. 设备厂家:--<br>
  74. 传输方式:--<br>
  75. 设备型号:--<br>
  76. </if>
  77. 设备编号:{$list.deviceid} <br>
  78. 物联网卡号:{$list.sim}<br>
  79. 安装位置:{$list.azwz}<br>
  80. 添加时间:{$list.install_time}
  81. </div>
  82. </div>
  83. <div class="box"></div>
  84. <div class="bjbox">
  85. <div class="bjbox-c mar">地址</div>
  86. <div class="height1dcdcdc"></div>
  87. <div class="mar">
  88. {$list.owner_address}
  89. </div>
  90. </div>
  91. <div class="box"></div>
  92. <script>
  93. var player = new EZUIPlayer('video123');
  94. player.on('error', function () {
  95. console.log('error');
  96. });
  97. player.on('play', function () {
  98. console.log('play');
  99. });
  100. player.on('pause', function () {
  101. console.log('pause');
  102. });
  103. </script>
  104. <div class="box"></div>
  105. <div class="bjbox">
  106. <div class="bjbox-c mar">图表</div>
  107. <div class="height1dcdcdc" style=" margin-bottom: 0;"></div>
  108. <div class="mar" style="margin: 0">
  109. <div id="ownerinfo_3" style="width: 100%;height: 300px"></div>
  110. </div>
  111. </div>
  112. <script>
  113. owner_3();
  114. function owner_3() {
  115. var dwtype = "{$dwtype}";
  116. var tes = '0';
  117. var tyss = "";
  118. if (dwtype == 2) {
  119. tes = '一周水压值变化(Mpa)';
  120. tes2 = '水压值';
  121. tyss = "兆帕";
  122. }
  123. if (dwtype == 5) {
  124. tes = '一周水位值变化 (m)';
  125. tes2 = '水位值';
  126. tyss = "米";
  127. document.getElementById('dev_title_lab').innerHTML = '当前水位:';
  128. document.getElementById('dev_title_unit').innerHTML = 'm';
  129. }
  130. var options = {
  131. title: {
  132. x: 'center',
  133. text: tes
  134. },
  135. tooltip: {
  136. trigger: 'axis',
  137. formatter: '{b}<br>{a} : {c} ' + tyss
  138. },
  139. // legend: {
  140. // data:['邮件营销']
  141. // },
  142. grid: {
  143. left: '3%',
  144. right: '4%',
  145. bottom: '3%',
  146. containLabel: true
  147. },
  148. toolbox: {
  149. // feature: {
  150. // saveAsImage: {}
  151. // }
  152. },
  153. xAxis: {
  154. type: 'category',
  155. // boundaryGap: false,
  156. axisTick: {
  157. alignWithLabel: true
  158. },
  159. data: {$time}
  160. },
  161. yAxis: {
  162. type: 'value'
  163. },
  164. dataZoom: [{
  165. type: 'slider',
  166. xAxisIndex: 0,
  167. filterMode: 'empty',
  168. start: 0,
  169. end: 100
  170. },
  171. {
  172. type: 'inside',
  173. xAxisIndex: 0,
  174. filterMode: 'empty',
  175. start: 0,
  176. end: 100
  177. }],
  178. series: [
  179. {
  180. name: tes2,
  181. type: 'line',
  182. stack: 'Pa',
  183. data: {$data4},
  184. color: ['#2699fb']
  185. }
  186. ]
  187. };
  188. var myChart3 = echarts.init(document.getElementById('ownerinfo_3'));//4echers // 基于准备好的dom,初始化echarts实例
  189. myChart3.setOption(options);// 使用刚指定的配置项和数据显示图表。
  190. }
  191. </script>
  192. </body>
  193. </html>