123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <template>
- <view>
- <view class="section">
- <view class="box">
- <view class="title">
- 风机运行状况
- </view>
- <view class="content">
- <view class="inner">
- <view class="inner_item">
- <view class="item_title">
- <view class="icon" :class="blower.blower1 = 'close'?'shut':'open'"></view>
- <view class="name">1#风机</view>
- </view>
- <view class="img">
- <image src="./icon/icon.png" mode=""></image>
- </view>
- </view>
- <view class="inner_item">
- <view class="item_title">
- <view class="icon" :class="blower.blower2 = 'close'?'shut':'open'"></view>
- <view class="name">2#风机</view>
- </view>
- <view class="img">
- <image src="./icon/icon.png" mode=""></image>
- </view>
- </view>
- </view>
- <view class="inner_2">
- <view class="inner_2_title">风量小时趋势</view>
- <view class="inner_2_img">
- <slot></slot>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:[
- "blower"
- ],
- data() {
- return {
-
- };
- }
- }
- </script>
- <style lang="scss">
- .section{
- box-sizing: border-box;
- padding: 0 15rpx;
-
- .box{
- background: #FFFFFF;
- box-shadow: 0px 3rpx 30rpx 0px rgba(59, 74, 116, 0.14);
- border-radius: 21rpx;
-
- .title{
- width: 750rpx;
-
- font-size: 32rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #232627;
- line-height: 100rpx;
- text-align: center;
-
- border-bottom: 2rpx solid #f3f3f3;
- }
- .content{
- .inner{
- display: flex;
- justify-content: space-around;
- .inner_item{
- width: 232rpx;
- text-align: center;
- .item_title{
- margin-top: 29rpx;
- margin-bottom: 19rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- .icon{
- border-radius: 50%;
- width: 26rpx;
- height: 26rpx;
- }
-
- .name{
- margin-left: 10rpx;
- font-size: 31rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #232627;
- line-height: 44rpx;
- }
- .shut{
- background: #E74C3C;
- }
- .open{
- background: #27AE60;
- }
- }
- .img{
- margin-bottom: 24rpx;
- image{
- width: 232rpx;
- height: 232rpx;
- }
- }
- }
- }
- .inner_2{
- margin: 0 auto;
- width: 632rpx;
- min-height: 200rpx;
- .inner_2_title{
- line-height: 82rpx;
-
- font-size: 29rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #232627;
- }
- .inner_2_img{
-
- }
- }
- }
- }
- }
- </style>
|