VaccinationPage.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <div id="vaccinationPage">
  3. <img
  4. class="yq_back_img"
  5. id="img1"
  6. src="../../assets/png/yq_background.png"
  7. />
  8. <img
  9. class="yq_back_img"
  10. id="img2"
  11. src="../../assets/png/yq_background.png"
  12. />
  13. <img class="yq_border_img" id="img3" src="../../assets/png/yq_border.png" />
  14. <img class="yq_border_img" id="img4" src="../../assets/png/yq_border.png" />
  15. <img class="yq_border_img" id="img5" src="../../assets/png/yq_border.png" />
  16. <span id="ym_name1">疫苗接种</span>
  17. <span id="ym_num">{{vaccin? vaccin.total:0 }}</span>
  18. <span id="ym_name2">疫苗总接种率</span>
  19. <span id="ym_num1">{{vaccin? vaccin.allRate:0 }}%</span>
  20. <span id="ym_name3">3-12岁疫苗接种率</span>
  21. <span id="ym_num2">{{vaccin? vaccin.threeToTwelveRate:0 }}%</span>
  22. <span id="ym_name4">12-18岁疫苗接种率</span>
  23. <span id="ym_num3">{{ vaccin?vaccin.TwelveToEighteenRate:0 }}%</span>
  24. <span id="ym_name5">18岁以上疫苗接种率</span>
  25. <span id="ym_num4">{{vaccin? vaccin.eighteenRate:0 }}%</span>
  26. </div>
  27. </template>
  28. <script>
  29. export default {
  30. props:['vaccin'],
  31. name: "VaccinationPage",
  32. components: {},
  33. data() {
  34. return {
  35. // vaccin: {
  36. // // -- 疫苗接种情况
  37. // allRate: 0, //总接种率
  38. // total: 0, //疫苗接种总数
  39. // eighteenRate: 0, //18岁以上接种率
  40. // threeToTwelveRate: 0, //3-12岁以上接种率
  41. // TwelveToEighteenRate: 0, //12-18岁以上接种率
  42. // },
  43. };
  44. },
  45. mounted() {
  46. },
  47. methods: {},
  48. };
  49. </script>
  50. <style scoped>
  51. #ym_num {
  52. position: absolute;
  53. left: 21%;
  54. top: 28%;
  55. font-size: 28px;
  56. color: rgb(251, 212, 21);
  57. font-weight: bold;
  58. }
  59. #ym_name1 {
  60. position: absolute;
  61. left: 26%;
  62. top: 16%;
  63. font-size: 12px;
  64. color: rgb(4, 185, 202);
  65. font-weight: bold;
  66. }
  67. #ym_name2 {
  68. position: absolute;
  69. left: 62%;
  70. top: 16%;
  71. font-size: 12px;
  72. color: rgb(4, 185, 202);
  73. font-weight: bold;
  74. }
  75. #ym_name3 {
  76. position: absolute;
  77. font-weight: bold;
  78. top: 70%;
  79. left: 12%;
  80. font-size: 12px;
  81. }
  82. #ym_name4 {
  83. position: absolute;
  84. font-weight: bold;
  85. top: 70%;
  86. left: 39%;
  87. font-size: 12px;
  88. }
  89. #ym_name5 {
  90. position: absolute;
  91. font-weight: bold;
  92. top: 70%;
  93. left: 67%;
  94. font-size: 12px;
  95. }
  96. #ym_num1 {
  97. position: absolute;
  98. left: 60%;
  99. top: 28%;
  100. font-size: 28px;
  101. color: rgb(251, 212, 21);
  102. font-weight: bold;
  103. }
  104. #ym_num2 {
  105. position: absolute;
  106. left: 16%;
  107. top: 78%;
  108. font-size: 20px;
  109. font-weight: bold;
  110. }
  111. #ym_num3 {
  112. position: absolute;
  113. left: 43%;
  114. top: 78%;
  115. font-size: 20px;
  116. font-weight: bold;
  117. }
  118. #ym_num4 {
  119. position: absolute;
  120. left: 72%;
  121. top: 78%;
  122. font-size: 20px;
  123. font-weight: bold;
  124. }
  125. #img1 {
  126. left: 15%;
  127. top: 6%;
  128. }
  129. #img2 {
  130. left: 55%;
  131. top: 6%;
  132. }
  133. #img3 {
  134. left: 5%;
  135. bottom: -10%;
  136. }
  137. #img4 {
  138. left: 33%;
  139. bottom: -10%;
  140. }
  141. #img5 {
  142. right: 4%;
  143. bottom: -10%;
  144. }
  145. .yq_back_img {
  146. position: absolute;
  147. width: 30%;
  148. height: 50%;
  149. }
  150. .yq_border_img {
  151. position: absolute;
  152. width: 35%;
  153. height: 60%;
  154. }
  155. #vaccinationPage {
  156. position: absolute;
  157. bottom: 1%;
  158. width: 100%;
  159. height: 18%;
  160. /* background-color: rgb(0, 0, 255,0.1); */
  161. }
  162. </style>