redPacket.less 6.0 KB
.container {
  height: 100%;
  width: 100%;
  // background-color: #f9f9f9;

  .tabs_s {
    width: 100%;
    display: flex;
    align-items: center;
    // height: 140rpx;
    height: 88rpx;
    border-top: 1rpx solid #f9f9f9;

    .tab_ {
      flex: 1;
      text-align: center;
      line-height: 88rpx;
      height: 88rpx;
      font-size: 28rpx;
      border-radius: 0 0 6rpx 6rpx;
    }

    .active {
      // background-color: #E8370F;
      // background: linear-gradient(270deg, #f53526 0%, #fd7f2e 99%);
      color: #E8370F;
      font-weight: bold;
      position: relative;


      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50rpx;
        height: 4rpx;
        background-color: #E8370F;

      }
    }

  }

  .padding {
    width: 100%;
    padding: 32rpx;
    box-sizing: border-box;

    .packets {
      width: 100%;
      box-shadow: 0px 3px 6px 0px rgba(188, 42, 4, 0.08);
      margin: 10rpx 0;

      .packet {
        display: flex;
        align-items: center;
        padding: 20rpx;
        box-sizing: border-box;
        background: url('https://xiaoxiangauto.com/assets/static/img/bg_img02.png') no-repeat;
        background-size: 100% 100%;
        border-radius: 16rpx 16rpx 0 0;

        .red_left {
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-direction: column;
          // border-right: 1rpx solid #fff;
          padding: 20rpx 0;
          box-sizing: border-box;

          .red_money {
            font-size: 36rpx;
            color: #ffffff;
            font-weight: bold;

          }

          .manjian {
            color: #ffffff;
            font-size: 28rpx;
            margin-top: 20rpx;
          }
        }

        .red_right {
          flex: 2;
          height: 146rpx;
          // border: 1rpx solid #fff;
          padding: 0 20rpx 0 28rpx;
          box-sizing: border-box;
          display: flex;
          flex-direction: column;
          justify-content: space-around;

          .txt {
            font-size: 28rpx;
            color: #06121E;
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;

          }

          .validity {
            font-size: 24rpx;
            color: #5B5E63;
          }

          .datetime {

            font-size: 24rpx;
            color: #5B5E63;
            padding-bottom: 15rpx;
            box-sizing: border-box;

          }

          .stat_num {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .stay__ {
              flex: 1;
              display: flex;
              align-items: baseline;


              .type_stay_ {
                font-size: 24rpx;
                color: #fff;
                margin-right: 10rpx;
              }

              .arrow_ {
                width: 20rpx;
                height: 16rpx;
              }
            }

            .numbe {
              flex: 1;
              display: flex;
              align-items: center;
              justify-content: flex-end;

              .c_licke {
                width: 170rpx;
                background-color: #f7603e;
                border-radius: 20rpx;
                // padding: 0 20rpx;
                box-sizing: border-box;
                font-size: 28rpx;
                color: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
              }

            }
          }
        }

      }

      .times {
        height: 80rpx;
        background-color: #fff;
        display: flex;
        align-items: center;
        padding: 0 20rpx;
        box-sizing: border-box;
        border-radius: 0 0 16rpx 16rpx;

        .stay {
          flex: 1;
          display: flex;
          align-items: center;

          .type_stay {
            font-size: 24rpx;
            color: #2c2c2c;
            margin-right: 10rpx;
          }

          .arrow {
            width: 20rpx;
            height: 16rpx;
          }
        }


        .r_rd {
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: flex-end;

          .residue {
            margin-right: 30rpx;

            .name_ {
              color: #2c2c2c;
              font-size: 28rpx;
              margin-right: 5rpx;
            }
          }

          .bnt {
            width: 100rpx;
            height: 50rpx;
            color: #fff;
            background-color: #ffba00;
            line-height: 50rpx;
            text-align: center;
            border-radius: 8rpx;
            font-size: 26rpx;
          }
        }
      }

      .text_box {
        width: 100%;
        // height: 300rpx;
        padding: 20rpx 32rpx;
        box-sizing: border-box;
        background-color: #fff;
        border-radius: 0 0 6rpx 6rpx;
        box-shadow: 0px 3rpx 6rpx 0rpx rgba(188, 42, 4, 0.08);

        .txt {
          font-size: 22rpx;
          color: #8C9198;
          display: -webkit-box;
          -webkit-line-clamp: 4;
          overflow: hidden;
          text-overflow: ellipsis;
          -webkit-box-orient: vertical;
        }
      }

      .receive {
        border-radius: 16rpx;
        background: url('https://xiaoxiangauto.com/assets/static/img/bg_img01.png') no-repeat;
        background-size: 100% 100%;

      }
    }

    .text_box {
      width: 100%;
      // height: 300rpx;
      padding: 20rpx 32rpx;
      box-sizing: border-box;
      background-color: #fff;
      border-radius: 0 0 6rpx 6rpx;
      box-shadow: 0px 3rpx 6rpx 0rpx rgba(188, 42, 4, 0.08);

      .txt {
        font-size: 22rpx;
        color: #8C9198;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
      }
    }


  }
}