resident-analysis.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>居民分析</title>
  6. <meta name="author" content="yihu.com" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  9. <meta name="apple-mobile-web-app-capable" content="yes" />
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  11. <link rel="stylesheet" type="text/css" href="../../css/font-awesome.min.css" />
  12. <link rel="stylesheet" type="text/css" href="../../css/style.min.css" />
  13. <link rel="stylesheet" type="text/css" href="../../css/cross.css" />
  14. <link rel="stylesheet" type="text/css" href="css/common.css" />
  15. <style>
  16. .c-12b7f5{color:#12B7F5;}
  17. .c-fb5dab{color: #fb5dab;}
  18. .c-cd67fd{color:#cd67fd}
  19. </style>
  20. </head>
  21. <body style="margin: 0;">
  22. <div id="main">
  23. <header-tab :isback="isback" :isrefresh="isrefresh" :isfilter="isfilter" :isopen="isopen"></header-tab>
  24. <header-prompt></header-prompt>
  25. <div>
  26. <div style="margin: 20px 18px 0px 10px;width: calc(50% - 32px);;height: 180px;border: 1px solid rgb(220, 220, 220);border-radius: 10px;float: left;">
  27. <div style="height: 40px; line-height: 40px; border-bottom: 1px solid rgb(220, 220, 220);">
  28. <div style="font-size: 14px; margin-left: 20px; color: rgb(51, 51, 51);font-weight: bold;">缴费情况</div>
  29. </div>
  30. <div style="height: 140px;position: relative;">
  31. <div class="div-yijiaofei" style="position: absolute;right: 10px;color:#12B7F5;text-align: center;top: 50%;margin-top: -25px;">
  32. <div class="y-amount c-f16">975</div>
  33. <div class="y-rate c-f14">82.42%</div>
  34. <div class="y-title c-f12">已缴费人数</div>
  35. </div>
  36. <div class="div-weijiaofei" style="position: absolute;left: 10px;color:#FFC800;text-align: center;top: 50%;margin-top: -25px;">
  37. <div class="y-amount c-f16">208</div>
  38. <div class="y-rate c-f14">17.58%</div>
  39. <div class="y-title c-f12">未缴费人数</div>
  40. </div>
  41. <div id="jiaoFeiChart" style="height: 140px;"></div>
  42. </div>
  43. </div>
  44. <div style="margin: 20px 10px 0px 18px;width: calc(50% - 32px);height: 180px;border: 1px solid rgb(220, 220, 220);border-radius: 10px;float: right;">
  45. <div style="height: 40px; line-height: 40px; border-bottom: 1px solid rgb(220, 220, 220);">
  46. <div style="font-size: 14px; margin-left: 20px; color: rgb(51, 51, 51);font-weight: bold;">健康分布</div>
  47. </div>
  48. <div style="height: 140px;position: relative;">
  49. <div id="healthChart" style="width: 100%;height: 140px;"></div>
  50. <div class="ui-col-1 ui-grid ui-grid-vertical" style="position: absolute;top: 50%;margin-top: -45px;right: 10px;">
  51. <div id="jkCatalogs">
  52. <div class="ui-col-1">
  53. <span style="height: 15px;background: #42C7FF;width: 15px;display: inline-block;"></span>
  54. <span class="div-gwrq c-f14" style="color: #42C7FF;">93.85%</span>
  55. <span class="c-f12 c-909090">(未标注)</span>
  56. </div>
  57. <div class="ui-col-1">
  58. <span style="height: 15px;background: #FFC84C;width: 15px;display: inline-block"></span>
  59. <span class="div-gwrq c-f14" style="color: #FFC84C;">2.67%</span>
  60. <span class="c-f12 c-909090">(健康人群)</span>
  61. </div>
  62. <div class="ui-col-1">
  63. <span style="height: 15px;background: #FB5DAB;width: 15px;display: inline-block"></span>
  64. <span class="div-gwrq c-f14" style="color: #FB5DAB;">3.08%</span>
  65. <span class="c-f12 c-666">(患病人群)</span>
  66. </div>
  67. <div class="ui-col-1">
  68. <span style="height: 15px;background: #CD67FD;width: 15px;display: inline-block"></span>
  69. <span class="div-gwrq c-f14" style="color: #CD67FD;">0.41%</span>
  70. <span class="c-f12 c-666">(高危人群)</span>
  71. </div>
  72. <div class="ui-col-1">
  73. <span style="height: 15px;background: #795548;width: 15px;display: inline-block"></span>
  74. <span class="div-gwrq c-f14" style="color: #795548;">0.00%</span>
  75. <span class="c-f12 c-666">(恢复期人群)</span>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <script src="../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  84. <script src="../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  85. <script src="../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  86. <script src="../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  87. <script src="../../plugins/echarts/3.8.5/echarts.min.js" type="text/javascript" charset="utf-8"></script>
  88. <script src="../../component/common/event-bus.js"></script>
  89. <script src="../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  90. <script src="../../api/statistics-api.js" type="text/javascript" charset="utf-8"></script>
  91. <script src="../../component/statistics/header-tab.js" type="text/javascript" charset="utf-8"></script>
  92. <script type="text/javascript" src="../../component/statistics/header-prompt.js"></script>
  93. <script src="js/resident-analysis.js" type="text/javascript" charset="UTF-8"></script>
  94. <script>
  95. var jiaoFeiChart = echarts.init(document.getElementById('jiaoFeiChart'));
  96. var jiaoFeiOptions = {
  97. color: ['#FFC800', '#12b7f5'],
  98. series: [{
  99. type: 'pie',
  100. radius: ['50%', '70%'],
  101. center: ['50%', '50%'], //饼图的位置
  102. data: [{
  103. name: '已缴费人数',
  104. value: 30,
  105. itemStyle: {
  106. normal: {
  107. label: {
  108. show: false,
  109. },
  110. labelLine: {
  111. show: false
  112. }
  113. }
  114. }
  115. },
  116. {
  117. name: '未缴费人数',
  118. value: 70,
  119. itemStyle: {
  120. normal: {
  121. label: {
  122. show: true,
  123. position: 'center',
  124. color: '#666',
  125. formatter: function(params) {
  126. return '缴费情况\n分析';
  127. }
  128. },
  129. labelLine: {
  130. show: false
  131. }
  132. }
  133. }
  134. }
  135. ]
  136. }]
  137. };
  138. jiaoFeiChart.setOption(jiaoFeiOptions);
  139. window.onresize = jiaoFeiChart.resize;
  140. var healthChart = echarts.init(document.getElementById('healthChart'));
  141. var healthOptions = {
  142. color: ['#FFC800', '#12b7f5'],
  143. series: [{
  144. type: 'pie',
  145. radius: ['50%', '70%'],
  146. center: ['25%', '50%'], //饼图的位置
  147. data: [{
  148. name: '已缴费人数',
  149. value: 30,
  150. itemStyle: {
  151. normal: {
  152. label: {
  153. show: false,
  154. },
  155. labelLine: {
  156. show: false
  157. }
  158. }
  159. }
  160. },
  161. {
  162. name: '未缴费人数',
  163. value: 70,
  164. itemStyle: {
  165. normal: {
  166. label: {
  167. show: true,
  168. position: 'center',
  169. color: '#666',
  170. formatter: function(params) {
  171. return '缴费情况\n分析';
  172. }
  173. },
  174. labelLine: {
  175. show: false
  176. }
  177. }
  178. }
  179. }
  180. ]
  181. }]
  182. };
  183. healthChart.setOption(healthOptions);
  184. window.onresize = healthChart.resize;
  185. </script>
  186. </body>
  187. </html>