WeatherWatch.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <script setup>
  2. </script>
  3. <template>
  4. <div class="main">
  5. <div class="wendu">
  6. <div class="number"> 20℃</div>
  7. <div class="title">空气温度</div>
  8. </div>
  9. <div class="shidu">
  10. <div class="number">10%RH</div>
  11. <div class="title">空气湿度</div>
  12. </div>
  13. <div class="fengli">
  14. <div class="number">2级</div>
  15. <div class="title">风力</div>
  16. </div>
  17. <div class="fengsu">
  18. <div class="number">3m/s</div>
  19. <div class="title">风速</div>
  20. </div>
  21. <div class="fengxiang">
  22. <div class="number">东北风</div>
  23. <div class="title">风向</div>
  24. </div>
  25. <div class="CO2">
  26. <div class="number">15ppm</div>
  27. <div class="title">二氧化碳</div>
  28. </div>
  29. <div class="daqiya">
  30. <div class="number">10Kpa</div>
  31. <div class="title">大气压</div>
  32. </div>
  33. <div class="guangzhao">
  34. <div class="number">400Lux</div>
  35. <div class="title">光照</div>
  36. </div>
  37. <div class="ziwaixian">
  38. <div class="number">3级</div>
  39. <div class="title">紫外线</div>
  40. </div>
  41. <div class="fushe">
  42. <div class="number">5W/㎡</div>
  43. <div class="title">太阳总辐射</div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. let jt3d = undefined;
  49. export default {
  50. data() {
  51. return {
  52. // viewersName: '', //视角标签名称
  53. // ImgurlList: [], //截图地址列表
  54. }
  55. },
  56. methods: {
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. @charset "UTF-8";
  62. @font-face {
  63. font-family: "TTTGB-Medium";
  64. src: url("@/assets/fonts/fonts/TTTGB-Medium.ttf") format("truetype"),
  65. url("@/assets/fonts/fonts/TTTGB-Medium.eot") format("embedded-opentype"),
  66. url("@/assets/fonts/fonts/TTTGB-Medium.svg") format("svg");
  67. font-weight: normal;
  68. font-style: normal;
  69. }
  70. .number{
  71. color: rgba(29,191,205,1);
  72. font-weight: 600;
  73. margin-top: 5rem;
  74. width: 80rem;
  75. margin-left: 50rem;
  76. text-align: center;
  77. font-family: "TTTGB-Medium", sans-serif !important;
  78. font-size: 16rem;
  79. }
  80. .title{
  81. font-size: 13rem;
  82. text-shadow: 0 0 2rem 2rem rgba(29,191,205,0.8);
  83. margin-top: 3rem;
  84. color: rgba(245,245,245,1);
  85. margin-left: 38rem;
  86. }
  87. .main{
  88. width:100%;
  89. height:100%;
  90. display:flex;
  91. margin-top: 10rem;
  92. flex:2;
  93. flex-wrap: wrap;
  94. justify-content: space-around;
  95. align-items: center;
  96. .wendu{
  97. background:url('@/assets/images/qixiang/wendu.png') no-repeat;
  98. background-size:100% 100%;
  99. width: 140rem;
  100. height: 52rem;
  101. }
  102. .shidu{
  103. background:url('@/assets/images/qixiang/shidu.png') no-repeat;
  104. background-size:100% 100%;
  105. width: 140rem;
  106. margin-top: 5rem;
  107. height: 52rem;
  108. }
  109. .fengli{
  110. background:url('@/assets/images/qixiang/cloud.png') no-repeat;
  111. background-size:100% 100%;
  112. width: 140rem;
  113. margin-top: 5rem;
  114. height: 52rem;
  115. }
  116. .fengsu{
  117. background:url('@/assets/images/qixiang/cloundspeed.png') no-repeat;
  118. background-size:100% 100%;
  119. width: 140rem;
  120. height: 52rem;
  121. }
  122. .fengxiang{
  123. background:url('@/assets/images/qixiang/cloudstreet.png') no-repeat;
  124. background-size:100% 100%;
  125. width: 140rem;
  126. margin-top: 5rem;
  127. height: 52rem;
  128. }
  129. .CO2{
  130. background:url('@/assets/images/qixiang/co2.png') no-repeat;
  131. background-size:100% 100%;
  132. width: 140rem;
  133. margin-top: 5rem;
  134. height: 52rem;
  135. }
  136. .daqiya{
  137. background:url('@/assets/images/qixiang/kpa.png') no-repeat;
  138. background-size:100% 100%;
  139. width: 140rem;
  140. margin-top: 5rem;
  141. height: 52rem;
  142. }
  143. .guangzhao{
  144. background:url('@/assets/images/qixiang/run.png') no-repeat;
  145. background-size:100% 100%;
  146. width: 140rem;
  147. margin-top: 5rem;
  148. height: 52rem;
  149. }
  150. .ziwaixian{
  151. background:url('@/assets/images/qixiang/ziwaixian.png') no-repeat;
  152. background-size:100% 100%;
  153. width: 140rem;
  154. margin-top: 5rem;
  155. height: 52rem;
  156. }
  157. .fushe{
  158. background:url('@/assets/images/qixiang/fushe.png') no-repeat;
  159. background-size:100% 100%;
  160. width: 140rem;
  161. margin-top: 5rem;
  162. height: 52rem;
  163. }
  164. }
  165. </style>