p-i-f-section-1.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view>
  3. <view class="section">
  4. <view class="box">
  5. <view class="title">
  6. 风机运行状况
  7. </view>
  8. <view class="content">
  9. <view class="inner">
  10. <view class="inner_item">
  11. <view class="item_title">
  12. <view class="icon" :class="blower.blower1 = 'close'?'shut':'open'"></view>
  13. <view class="name">1#风机</view>
  14. </view>
  15. <view class="img">
  16. <image src="./icon/icon.png" mode=""></image>
  17. </view>
  18. </view>
  19. <view class="inner_item">
  20. <view class="item_title">
  21. <view class="icon" :class="blower.blower2 = 'close'?'shut':'open'"></view>
  22. <view class="name">2#风机</view>
  23. </view>
  24. <view class="img">
  25. <image src="./icon/icon.png" mode=""></image>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="inner_2">
  30. <view class="inner_2_title">风量小时趋势</view>
  31. <view class="inner_2_img">
  32. <slot></slot>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props:[
  43. "blower"
  44. ],
  45. data() {
  46. return {
  47. };
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. .section{
  53. box-sizing: border-box;
  54. padding: 0 15rpx;
  55. .box{
  56. background: #FFFFFF;
  57. box-shadow: 0px 3rpx 30rpx 0px rgba(59, 74, 116, 0.14);
  58. border-radius: 21rpx;
  59. .title{
  60. width: 750rpx;
  61. font-size: 32rpx;
  62. font-family: PingFangSC-Medium, PingFang SC;
  63. font-weight: 500;
  64. color: #232627;
  65. line-height: 100rpx;
  66. text-align: center;
  67. border-bottom: 2rpx solid #f3f3f3;
  68. }
  69. .content{
  70. .inner{
  71. display: flex;
  72. justify-content: space-around;
  73. .inner_item{
  74. width: 232rpx;
  75. text-align: center;
  76. .item_title{
  77. margin-top: 29rpx;
  78. margin-bottom: 19rpx;
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. .icon{
  83. border-radius: 50%;
  84. width: 26rpx;
  85. height: 26rpx;
  86. }
  87. .name{
  88. margin-left: 10rpx;
  89. font-size: 31rpx;
  90. font-family: PingFangSC-Regular, PingFang SC;
  91. font-weight: 400;
  92. color: #232627;
  93. line-height: 44rpx;
  94. }
  95. .shut{
  96. background: #E74C3C;
  97. }
  98. .open{
  99. background: #27AE60;
  100. }
  101. }
  102. .img{
  103. margin-bottom: 24rpx;
  104. image{
  105. width: 232rpx;
  106. height: 232rpx;
  107. }
  108. }
  109. }
  110. }
  111. .inner_2{
  112. margin: 0 auto;
  113. width: 632rpx;
  114. min-height: 200rpx;
  115. .inner_2_title{
  116. line-height: 82rpx;
  117. font-size: 29rpx;
  118. font-family: PingFangSC-Regular, PingFang SC;
  119. font-weight: 400;
  120. color: #232627;
  121. }
  122. .inner_2_img{
  123. }
  124. }
  125. }
  126. }
  127. }
  128. </style>