0
0

tj2.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="Cache-Control" content="no-siteapp" />
  8. <title>七日温度图</title>
  9. <meta name="keywords" content="">
  10. <meta name="description" content="">
  11. <!--[if lt IE 9]>
  12. <meta http-equiv="refresh" content="0;ie.html" />
  13. <![endif]-->
  14. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.min.css">
  15. <script src="/static/jquery-1.11.3.min.js"></script>
  16. <script type="text/javascript" src="/static/echarts.js"></script>
  17. <style>
  18. .content{
  19. width: 100%;
  20. height: auto;
  21. overflow: hidden;
  22. }
  23. .content img{
  24. max-width: 100%;
  25. }
  26. .commpany{
  27. padding: 0.5rem;
  28. }
  29. </style>
  30. <style type="text/css">
  31. .container{
  32. padding: 20px;
  33. width: 100%;
  34. height: auto;
  35. overflow: hidden;
  36. }
  37. .toplogo{
  38. width: 80%;
  39. height: auto;
  40. margin: 20px auto;
  41. }
  42. .package-status {
  43. padding: 18px 0 0 0
  44. }
  45. .package-status .status-list {
  46. margin: 0;
  47. padding: 0;
  48. margin-top: -5px;
  49. padding-left: 8px;
  50. list-style: none;
  51. }
  52. .package-status .status-list>li {
  53. border-left: 2px solid #0278D8;
  54. text-align: left;
  55. }
  56. .package-status .status-list>li:before {
  57. /* 流程点的样式 */
  58. content: '';
  59. border: 3px solid #0278D8;
  60. background-color: #0278D8;
  61. display: inline-block;
  62. width: 6px;
  63. height: 6px;
  64. border-radius: 10px;
  65. margin-left: -7px;
  66. margin-right: 10px
  67. }
  68. .package-status .status-box {
  69. overflow: hidden
  70. }
  71. .package-status .status-list>li {
  72. height: auto;
  73. width: 95%;
  74. }
  75. .package-status .status-list {
  76. margin-top: -8px
  77. }
  78. .package-status .status-box {
  79. position: relative
  80. }
  81. .package-status .status-box:before {
  82. content: " ";
  83. background-color: #f3f3f3;
  84. display: block;
  85. position: absolute;
  86. top: -8px;
  87. left: 20px;
  88. width: 10px;
  89. height: 4px
  90. }
  91. .package-status .status-list {
  92. margin-top: 0px;
  93. }
  94. .status-list>li:not(:first-child) {
  95. padding-top: 10px;
  96. }
  97. .status-content-before {
  98. text-align: left;
  99. margin-left: 25px;
  100. margin-top: -20px;
  101. }
  102. .status-content-latest {
  103. text-align: left;
  104. margin-left: 25px;
  105. color: #f0ad4e;
  106. margin-top: -20px;
  107. }
  108. .status-time-before {
  109. text-align: left;
  110. margin-left: 25px;
  111. font-size: 10px;
  112. margin-top: 5px;
  113. }
  114. .status-time-latest {
  115. text-align: left;
  116. margin-left: 25px;
  117. color: #f0ad4e;
  118. font-size: 10px;
  119. margin-top: 5px;
  120. }
  121. .status-line {
  122. border-bottom: 1px solid #ccc;
  123. margin-left: 25px;
  124. margin: 10px 0 20px 0;
  125. }
  126. .list {
  127. padding: 0 20px;
  128. background-color: #F8F8F8;
  129. margin: 10px 0 0 25px;
  130. border: 1px solid #EBEBEB;
  131. }
  132. .list li {
  133. line-height: 30px;
  134. color: #616161;
  135. }
  136. </style>
  137. </head>
  138. <body>
  139. <div class="container">
  140. <div><h2>七日温度图</h2></div>
  141. <div class="row">
  142. <div class="col-sm-12">
  143. <div class="ibox float-e-margins">
  144. <div class="ibox-content">
  145. <div style="height: 300px" id="tj1"></div>
  146. </div>
  147. <div class="ibox-content" >
  148. <table class="table table-bordered" >
  149. <thead>
  150. <tr>
  151. {foreach $data[0] as $v}
  152. <th>{$v.name}</th>
  153. {/foreach}
  154. </tr>
  155. <tr>
  156. {foreach $data[0] as $v}
  157. <td>{$v.value}</td>
  158. {/foreach}
  159. </tr>
  160. <tr>
  161. {foreach $data[1] as $v}
  162. <th>{$v.name}</th>
  163. {/foreach}
  164. </tr>
  165. <tr>
  166. {foreach $data[1] as $v}
  167. <td>{$v.value}</td>
  168. {/foreach}
  169. </tr>
  170. </thead>
  171. </table>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. </body>
  178. <script>
  179. option = {
  180. xAxis: {
  181. type: 'category',
  182. data: {:json_encode($key)}
  183. },
  184. yAxis: {
  185. type: 'value'
  186. },
  187. series: [{
  188. data: {:json_encode($value)},
  189. type: 'line'
  190. }],
  191. tooltip : {
  192. trigger: 'axis',
  193. axisPointer: {
  194. type: 'cross',
  195. label: {
  196. backgroundColor: '#6a7985'
  197. }
  198. }
  199. }
  200. };
  201. var myChart = echarts.init(document.getElementById('tj1'));
  202. myChart.setOption(option);
  203. </script>
  204. </html>