detail.scss 4.26 KB
/* packageReception/pages/detail/detail.wxss */
page {
  background: #f3f6fa;
}

.layout {
  position: relative;
  height: 100vh;
  box-sizing: border-box;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480rpx;
    background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/common/reception-bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
  }

  .customer-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 16rpx;
    padding: 8rpx 0 24rpx;

    .customer-item {
      height: 60rpx;
      border-radius: 12rpx;
      background: #ffffff;
      padding: 0 24rpx;
      color: #383a3d;
      font-size: 28rpx;
      border: 2rpx solid #fff;
      flex-shrink: 0;

      &:first-of-type {
        margin-left: 32rpx;
      }

      &:last-of-type {
        margin-right: 32rpx;
      }

      .name {
        max-width: 224rpx;
      }

      .score {
        flex-shrink: 0;
        color: #9d9fa3;
        margin-left: 8rpx;
      }
    }

    .active {
      border-color: #3773f8;
      background: #3773f81a;
      color: #3773f8;
      font-weight: 500;

      .score {
        color: #3773f8;
      }
    }
  }

  .customer-info-box {
    height: 142rpx;
    border-radius: 24rpx;
    background: #ffffff;
    margin: 0 32rpx;
    padding: 24rpx;
    box-sizing: border-box;
    position: relative;

    .customer-icon {
      width: 80rpx;
      height: 80rpx;
      margin-right: 16rpx;
    }

    .customer-info {
      display: flex;
      flex-direction: column;
      height: 100%;

      .customer-name {
        color: #9d9fa3;
        font-size: 24rpx;

        .name {
          color: #292d33;
          font-size: 30rpx;
          max-width: 360rpx;
          font-weight: 500;
          margin-right: 8rpx;
        }
      }


      .customer-car {
        margin-top: auto;
        transform: translateY(-8rpx);
        .customer-car-item {
          margin-right: 12rpx;
          padding: 0 8rpx;
          height: 32rpx;
          border-radius: 4rpx;
          border: 2rpx solid #e8ecf0;
          display: flex;
          align-items: center;
          color: #9d9fa3;
          font-size: 22rpx;
          box-sizing: border-box;
          width: fit-content;
        }
      }
    }

    .customer-score {
      position: absolute;
      right: 24rpx;
      bottom: 24rpx;
      color: #292d33;
      font-size: 24rpx;
      font-weight: 500;
      display: flex;
      align-items: baseline;

      .num {
        font-size: 40rpx;
        margin-right: 4rpx;
      }
    }
  }

  .reception-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24rpx 32rpx 16rpx;

    .reception-types {
      display: flex;
      align-items: center;

      .type {
        width: 144rpx;
        line-height: 40rpx;
        padding: 10rpx 0;
        background: #FFFFFF;
        border-radius: 12rpx;
        margin-right: 16rpx;
        color: #5a5e66;
        font-size: 28rpx;
        font-weight: 400;
        text-align: center;
      }

      .active {
        font-weight: 600;
        color: #fff;
        background: linear-gradient(135deg, #4f52ff 0%, #349bff 100%);
      }
    }

    .reception-operate {
      display: flex;
      align-items: center;

      .img {
        width: 52rpx;
        height: 52rpx;
      }

      .share {
        margin-right: 12rpx;
      }

      .audio-wrap {
        min-width: 140rpx;
        height: 60rpx;
        display: flex;
        align-items: center;
        background: #FFFFFF;
        padding: 4rpx;
        border-radius: 28rpx;
        box-sizing: border-box;
        transition: all .1s;

        .time {
          font-weight: 400;
          font-size: 26rpx;
          color: #757980;
          margin-left: 4rpx;
        }
      }
    }
  }
}

.type-wrap {
  position: relative;

  .component-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.15s;
  }

  .hide {
    opacity: 0;
    z-index: -1;
  }
}