04-07.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. 剩余电流:{$mA}mA <br>
  71. 温度:{$t}℃ <br>
  72. 设备类型:{$list.dwtypes} <br>
  73. 设备编号:{$list.deviceid} <br>
  74. 物联网卡号:{$list.sim}<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 autoplay >
  92. <!--<source src="rtmp://rtmp.open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b" type="" />-->
  93. <!--<source src="http://hls.open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.m3u8" type="application/x-mpegURL" />-->
  94. <source src="{$list.rtmp}" type="" />
  95. <source src="{$list.hls}" type="application/x-mpegURL" />
  96. </video>
  97. <script>
  98. var player = new EZUIPlayer('video123');
  99. player.on('error', function(){
  100. console.log('error');
  101. });
  102. player.on('play', function(){
  103. console.log('play');
  104. });
  105. player.on('pause', function(){
  106. console.log('pause');
  107. });
  108. </script>
  109. </div>
  110. <!--<div class="mar" style="margin: 0">
  111. {$list.h5}
  112. </div>-->
  113. </div>
  114. <div class="box"></div>
  115. <script>
  116. // sydl/wd
  117. owner_3('ownerinfo_3');
  118. function owner_3(part){
  119. var option = {
  120. color: ["#67e0e3","#e062ae"],
  121. title: {
  122. text: '剩余电流/温度',
  123. textStyle: {
  124. fontSize:14,
  125. color: '#7affff',
  126. fontWeight: '100'
  127. },
  128. left:5,
  129. },
  130. tooltip: {
  131. trigger: 'axis',
  132. // formatter: "{a1} {b1} {c1}℃<br>{a} {b} {c}mA<br>",
  133. formatter:function(data,ticket,callback){
  134. // console.log(data);
  135. var res = "";
  136. var a_unit = ["mA","℃"]
  137. for(var i=0;i<data.length;i++){
  138. res += data[i].seriesName+" "+data[i].value+a_unit[i]+"<br>";
  139. }
  140. return res;
  141. }
  142. },
  143. legend: {
  144. data:['剩余电流','温度'],//
  145. textStyle: {
  146. color: '#fff',
  147. },
  148. left:5,
  149. top:20,
  150. },
  151. grid: {
  152. top:50,
  153. left: '4%',
  154. right: '4%',
  155. bottom: '8%',
  156. containLabel: true,
  157. height:220,
  158. },
  159. xAxis: {
  160. type: 'category',
  161. boundaryGap: false,
  162. data: {$res_time},
  163. axisLabel: {
  164. color: '#ffffff'
  165. },
  166. },
  167. yAxis: {
  168. type: 'value',
  169. axisLine: {
  170. lineStyle: {
  171. color: '#2b5baa'
  172. }
  173. },
  174. axisLabel: {
  175. color: '#ffffff'
  176. },
  177. splitLine:{
  178. lineStyle:{
  179. color:"#2b5baa",
  180. },
  181. },
  182. },
  183. // dataZoom: [
  184. // {
  185. // type: 'slider',
  186. // start: 0,
  187. // end: 100,
  188. // bottom:0,
  189. // dataBackground: {
  190. // areaStyle: {color:"#87f96d"},
  191. // },
  192. // textStyle:{
  193. // color:"#f00",
  194. // },
  195. // height:30,
  196. // showDetail:false,
  197. //
  198. // }
  199. // ],
  200. series: [
  201. {
  202. name:'剩余电流',
  203. type:'line',
  204. data:{$res_sydl},
  205. symbol:"triangle",
  206. symbolSize:10,
  207. },
  208. {
  209. name:'温度',
  210. type:'line',
  211. data:{$res_wd},
  212. symbol:"roundRect",
  213. symbolSize:10,
  214. },
  215. ]
  216. };
  217. var myChart3 = echarts.init(document.getElementById(part)); //4echers // 基于准备好的dom,初始化echarts实例
  218. myChart3.clear();
  219. myChart3.setOption(option); // 使用刚指定的配置项和数据显示图表。
  220. //4echers // 基于准备好的dom,初始化echarts实例
  221. // var myChart3 = echarts.init(document.getElementById('wd'));
  222. // myChart3.setOption(option);// 使用刚指定的配置项和数据显示图表。
  223. }
  224. // sxdy/sxdl
  225. owner_4('ownerinfo_4');
  226. function owner_4(part){
  227. var option = {
  228. color: ["#e062ae", "#67e0e3", "#00dd71",'#ffdb5c', '#37a2da', '#00dd71'],
  229. title: {
  230. text: '三相电压/三相电流',
  231. textStyle:{
  232. fontSize:14,
  233. color: '#7affff',
  234. },
  235. left:5,
  236. },
  237. label: {
  238. },
  239. tooltip: {
  240. trigger: 'axis',
  241. // formatter: "{a1} {b1} {c1}℃<br>{a} {b} {c}mA<br>",
  242. formatter:function(data,ticket,callback){
  243. // console.log(data);
  244. var res = "";
  245. var a_unit = ["v","v","v","mA","mA","mA"];
  246. for(var i=0;i<data.length;i++){
  247. res += data[i].seriesName+" "+data[i].value+a_unit[i]+"<br>";
  248. }
  249. return res;
  250. }
  251. },
  252. legend: {
  253. data:['Ua','Ub','Uc','Ia','Ib','Ic'],
  254. textStyle:{
  255. color: '#fff',
  256. },
  257. left:5,
  258. top:20,
  259. },
  260. grid: {
  261. top:50,
  262. left: '4%',
  263. right: '4%',
  264. bottom: '3%',
  265. containLabel: true,
  266. height:220,
  267. },
  268. xAxis: {
  269. type: 'category',
  270. boundaryGap: false,
  271. data: {$res_time},
  272. axisLabel: {
  273. color: '#ffffff'
  274. },
  275. },
  276. yAxis: {
  277. type: 'value',
  278. axisLine: {
  279. lineStyle: {
  280. color: '#2b5baa'
  281. }
  282. },
  283. axisLabel: {
  284. color: '#ffffff'
  285. },
  286. splitLine:{
  287. lineStyle:{
  288. color:"#2b5baa",
  289. },
  290. },
  291. },
  292. // dataZoom: [
  293. // {
  294. // type: 'slider',
  295. // start: 0,
  296. // end: 100 ,
  297. // dataBackground: {
  298. // areaStyle: {color:"#87f96d"},
  299. // },
  300. // height:30,
  301. // showDetail:false,
  302. // }
  303. // ],
  304. series: [
  305. {
  306. name:'Ua',
  307. type:'line',
  308. data:{$res_ua},
  309. symbolSize:10,
  310. },
  311. {
  312. name:'Ub',
  313. type:'line',
  314. data:{$res_ub},
  315. symbolSize:10,
  316. },
  317. {
  318. name:'Uc',
  319. type:'line',
  320. data:{$res_uc},
  321. symbolSize:10,
  322. },
  323. {
  324. name:'Ia',
  325. type:'line',
  326. data:{$res_ia},
  327. symbol:"triangle",
  328. symbolSize:10,
  329. },
  330. {
  331. name:'Ib',
  332. type:'line',
  333. data:{$res_ib},
  334. symbol:"triangle",
  335. symbolSize:10,
  336. },
  337. {
  338. name:'Ic',
  339. type:'line',
  340. data:{$res_ic},
  341. symbol:"triangle",
  342. symbolSize:10,
  343. },
  344. ]
  345. };
  346. //4echers // 基于准备好的dom,初始化echarts实例
  347. var myChart4 = echarts.init(document.getElementById(part));
  348. myChart4.clear();
  349. myChart4.setOption(option);// 使用刚指定的配置项和数据显示图表。
  350. }
  351. </script>
  352. </body>
  353. </html>