PageScreen.scss 3.14 KB
/* pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxss */
.confirm-box {
  position: fixed;
  top: 0;
  z-index: 10;
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  animation: show-confirm-box .5s forwards;
  .main {
    box-sizing: border-box;
  }
}
@keyframes show-confirm-box {
  0%{
    right: -100%;
  }
  100%{
    right: 0;
  }
}

.box {
  margin: 0 32rpx;
  border-bottom: 1rpx solid #EFF0F280;
  &:last-child{
    border-bottom: none;
  }
  .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 32rpx;
    font-weight: 500;
    color: #292D33;
    padding: 32rpx 0 24rpx;
    position: sticky;
    left: 0;
    top: 0;
    background: #fff;
    z-index: 2;
    .title-left{
      display: flex;
      align-items: flex-end;
    }
    .collapse-btn{
      image {
        width: 48rpx;
        height: 48rpx;
      }
    }
    .rotate-180{
      transform: rotate(180deg);
    }
  }
  .choose-btn {
    width: 100%;
    background: #F7F8FA;
    border-radius: 4rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16rpx;
    font-size: 24rpx;
    margin-bottom: 20rpx;
    color: #292D33;
    image {
      width: 32rpx;
      height: 32rpx;
      margin-left: 8rpx;
    }
  }
  .list-box {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20rpx;
    .item {
      width: calc(234 / 750 * 100%);
      min-height: 68rpx;
      border-radius: 4rpx;
      box-sizing: border-box;
      font-weight: 500;
      border: 2rpx solid transparent;
      padding: 16rpx 33rpx;
      flex-wrap: wrap;
      font-size: 24rpx;
      text-align: center;
      background-color: #F7F8FA;
      color: #292D33;
      transition: all .2s;
      margin: 0 calc(20 / 750 * 100%) calc(20 / 750 * 100%) 0;
      .text-item{
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      &:nth-of-type(3n+3) {
        margin-right: 0;
      }
    }
    .flex-1{
      width: 100%;
      text-align: left;
      margin-right: 0;
      line-height: 100%;
      display: flex;
      align-items: center;
    }
    .active {
      background: rgba(53, 130, 238, 0.08);
      border: 2rpx solid #347BFF;
      color: #347BFF;
    }
  }
}

.btn-box {
  position: sticky;
  padding: 10rpx 32rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 32rpx;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 9;
  background-color: #fff;
  .btn {
    border-radius: 12rpx;
    box-sizing: border-box;
    height: 80rpx;
  }
  .clear {
    width: 186rpx;
    background: #F4F5F7;
    color: #292D33;
  }
  .done {
    background: #347BFF;
    color: #fff;
    width: 480rpx;
  }
}

.isFullSucreen-btn {
  padding-bottom: constant(safe-area-inset-bottom) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}