verticalScreen.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="verticalWrap">
  3. <NowData screenType="ver" />
  4. <AirSwitchVer />
  5. <LastMonthData screenType="ver" />
  6. <div class="lastTotalEnergy verticalClass">
  7. <div class="head-title">
  8. <span>上月总能耗</span>
  9. </div>
  10. <div class="subhead-title">低能耗亲自然</div>
  11. <div class="bottomCont">
  12. <img src='@/assets/circleEnergy.png' />
  13. <div class="showData">
  14. <div class="title">比基准能耗</div>
  15. <div class="energySave">节能<span>50%</span></div>
  16. <div class="totalEnergy">总能耗<span>25541</span>KWh</div>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="lastSaveEnergy verticalClass">
  21. <div class="head-title">
  22. <span>上月节约能耗</span>
  23. </div>
  24. <div class="bottomCont">
  25. <img src='@/assets/save_energy.png' />
  26. <div class="showData">
  27. <div class="leftsave">节约电<br/><span>2566</span>度</div>
  28. <div class="saveCo2">减排<span>0.955</span>kg二氧化碳</div>
  29. <div class="saveCarbon">减排<span>0.225</span>kg碳</div>
  30. <div class="plantTree">为国家种<span>26</span>棵树</div>
  31. </div>
  32. </div>
  33. </div>
  34. <div>
  35. <FloorSpace />
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. import NowData from './valueDelivery/NowData.vue'
  41. import LastMonthData from './valueDelivery/LastMonthData.vue'
  42. import AirSwitch from './valueDelivery/AirSwitch.vue'
  43. import AirSwitchVer from './valueDelivery/AirSwitchVer.vue'
  44. import FloorSpace from './valueDelivery/FloorSpace.vue'
  45. export default {
  46. components: { NowData, AirSwitch, FloorSpace, LastMonthData, AirSwitchVer },
  47. data() {
  48. return {
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="less" scoped>
  54. @import "/src/assets/css/common.less";
  55. .verticalWrap {
  56. background: #f3fdff;
  57. }
  58. .lastTotalEnergy {
  59. height: 535px;
  60. .bottomCont {
  61. width: 580px;
  62. margin: 4px auto;
  63. position: relative;
  64. img {
  65. width: 100%;
  66. }
  67. .showData {
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. width: 100%;
  72. height: 100%;
  73. box-sizing: border-box;
  74. padding-top: 90px;
  75. display: flex;
  76. align-items: center;
  77. justify-content: center;
  78. flex-direction: column;
  79. .title {
  80. font-size: 28px;
  81. color: #575271;
  82. }
  83. .energySave {
  84. margin-top: 14px;
  85. font-size: 56px;
  86. span {
  87. font-size: 60px;
  88. }
  89. }
  90. .totalEnergy {
  91. margin-top: 18px;
  92. color: #2ec5f5;
  93. font-size: 28px;
  94. }
  95. }
  96. }
  97. }
  98. .lastSaveEnergy {
  99. height: 535px;
  100. .bottomCont {
  101. width: 900px;
  102. margin: 40px auto;
  103. position: relative;
  104. img {
  105. width: 100%;
  106. }
  107. .showData {
  108. position: absolute;
  109. top: 0;
  110. left: 0;
  111. width: 100%;
  112. height: 100%;
  113. box-sizing: border-box;
  114. // display: flex;
  115. // align-items: center;
  116. // justify-content: center;
  117. // flex-direction: column;
  118. .leftsave {
  119. position: absolute;
  120. left: 60px;
  121. top: 160px;
  122. color:#fff;
  123. line-height: 34px;
  124. span{
  125. font-size:32px;
  126. }
  127. }
  128. .saveCo2 {
  129. position: absolute;
  130. left: 562px;
  131. top: 32px;
  132. }
  133. .saveCarbon {
  134. position: absolute;
  135. left: 562px;
  136. top: 186px;
  137. }
  138. .plantTree {
  139. position: absolute;
  140. left: 562px;
  141. top: 340px;
  142. }
  143. }
  144. }
  145. }
  146. </style>