myDevice.scss 3.51 KB
.main{
  padding: 7px;
  padding-top: 87px; // 标题栏80px + 间距7px
  background-color: #F8F8F8;
  min-height: 100vh;
  .title{
    position: fixed !important;
    top: 80px !important;
    left: 7px !important;
    right: 7px !important;
    width: calc(100% - 14px) !important;
    padding: 10px !important;
    background-color: #fff !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    z-index: 150 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    transform: none !important;
    .title-search-wrapper{
      display: flex;
      align-items: center;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 8px;
      width: 100%;
      position: relative;
    }
    .filter-btn{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 2px;
      padding: 0 8px;
      height: 36px;
      background-color: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      white-space: nowrap;
      flex-shrink: 0;
      flex-grow: 0;
      width: 30%;
      transition: all 0.3s;
      position: relative;
      z-index: 1;
      .filter-btn-text{
        display: inline-block;
        font-size: 13px;
        color: #333;
        white-space: nowrap;
        line-height: 1;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
      }
      .filter-btn-icon{
        display: inline-block;
        font-size: 10px;
        color: #666;
        line-height: 1;
        flex-shrink: 0;
        margin-left: 2px;
      }
      &:active{
        background-color: #f5f5f5;
      }
    }
  }
  .main-content{
    padding-top: 60px; // 为搜索框留出空间
  }
  .search-placeholder{
    height: 0;
  }
  .toptitle{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #0052D8;
    display: flex;
    height: 80px;
    justify-content: center;
    align-items: center;
    z-index: 200;
    .toptitle_left{
      padding-top: 20px;
      position: absolute;
      left: 10px;
      z-index: 1000;
    }
    .toptitle_title{
      color: #fff;
      font-size: 14px;
      padding-top: 20px;
    }
  }
  .box{
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    .top{
      display: flex;
      justify-content: space-between;
      .f1{
        font-size: 18px;
        color: #0052D8;
        font-weight: bold;
      }
      .f2{
        font-size: 15px;
      }
      margin-bottom: 5px;
    }
    .top2{
      display: flex;
      margin-bottom: 10px;
      align-items: center;
      .f4{
        color:#7A797A;
        margin-right: 10px;
        text-align: right;
        display: block;
        font-size: 16px;
      }
      .f5{
        color:#333;
        font-size: 16px;
      }
    }
    .xx{
      border-bottom: 1px dashed #BCBCBC;
      margin-bottom: 10px;
    }
    .footer{
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #686868;
      font-size: 16px;
    }
  }
}

.status-pill {
  padding: 6px 16px;
  border-radius: 999rpx;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.status-running { background-color: #52C41A; }
.status-repair  { background-color: #FAAD14; }
.status-stop    { background-color: #C9C9C9; }
.status-scrap   { background-color: #FF4D4F; }
.status-unknown { background-color: #999999; }