index.scss 5.12 KB

.sku-container {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  z-index: 9;
  height: 100vh;
  .sku-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .6);
  }
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
    color: transparent;
  }
  .container {
    position: absolute;
    width: 100%;
    height: 80%;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 20rpx 20rpx 0 0;
    left: 0;
    bottom: 0;
    animation: show-sku-box .5s forwards;
    z-index: 2;
    padding: 44rpx 40rpx;
    overflow: auto;
  }
}

.goods-box {
    .cover {
        width: 180rpx;
        height: 180rpx;
        border-radius: 24rpx;
        overflow: hidden;
        flex-shrink: 0;
    }

    .right-box {
        padding-left: 40rpx;
        width: calc(100% - 220rpx);
        .price-box {
            font-weight: 700;
            color: #FC5B32;
            display: table-cell;
            vertical-align: bottom;
            text {
              color: #FF6038;
              font-size: 40rpx;
              font-weight: 600;
              margin-right: 4rpx;
            }
            .price {
              font-size: 64rpx;
            }
        }

        .stock {
            font-weight: 400;
            font-size: 22rpx;
            color: #858A94;
            margin: 10rpx 0 8rpx 0;
        }

        .selct-box {
            font-weight: 400;
            font-size: 22rpx;
            color: #858A94;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }
}

.sku-box {
    .title {
        font-weight: 500;
        font-size: 28rpx;
        color: #1B233D;
        margin-top: 48rpx;
        margin-bottom: 26rpx;
    }

    .sku-list {
      .sku-title {
        color: #2D2D2E;
        font-weight: 500;
        padding-top: 32rpx;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .sku-item {
        display: flex;
        flex-wrap: wrap;
        .item {
          min-width: 112rpx;
          box-sizing: border-box;
          height: 52rpx;
          display: flex;
          align-items: center;
          justify-content: center;
          background: #F7F8FA;
          padding: 0 20rpx;
          margin: 20rpx 20rpx 0 0;
          font-size: 26rpx;
          color: #656566;
          border: 2rpx solid #F7F8FA;
          box-sizing: border-box;
          border-radius: 12rpx;
          &.active {
            border-color: #FC5B32;
            color: #FC5B32;
            background-color: #fc5b320f;
          }
        }
      }
      .sku {
        padding: 6rpx 20rpx;
        background: #F7F8FA;
        font-weight: 400;
        font-size: 26rpx;
        border-radius: 12rpx;
        margin-right: 16rpx;
        margin-bottom: 20rpx;
      }

      .sku_active {
          background: #fc5b320f;
          border: 2rpx solid #FC5B32;
          color: #FC5B32;
      }
      .disabled{
        background-color: #B1B1B3 !important;
        color: #000000!important;
      }
    }
    .flex-w {
      display: flex;
      flex-wrap: wrap;
    }
}

.count-box {
    margin-top: 32rpx;

    .title {
        font-size: 28rpx;
        color: #2D2D2E;
        font-weight: 500;
    }

    .right {
        .tip {
            font-weight: 400;
            font-size: 20rpx;
            color: #F13C3D;
        }

        .stepper {
            margin-left: 16rpx;
        }
    }
}

.textarea-box {
    margin-top: 48rpx;

    .title {
        font-size: 28rpx;
        color: #2D2D2E;
        font-weight: 500;
        margin-bottom: 20rpx;
    }

    .pannel {
        width: 100%;
        box-sizing: border-box;
        padding: 16rpx 20rpx;
        height: 128rpx;
        background: #F5F6FA;
        border-radius: 16rpx;

        .textarea-placeholder {
            font-weight: 400;
            font-size: 24rpx;
            color: #9E9EA8;
        }

        .textArea {
            height: 100%;
        }
    }
}

.adress-box {
    margin-top: 52rpx;

    .title {
        font-size: 28rpx;
        color: #2D2D2E;
        font-weight: 500;
    }

    .content {
        font-weight: 400;
        font-size: 24rpx;
        color: #333435;
        width: 490rpx;
        text-align: right;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin-right: 8rpx;
    }

    .emptyText {
        color: #858A94;
    }

    .pos {
        width: 36rpx;
        height: 36rpx;
    }
}

.btn-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: 8rpx 40rpx 68rpx;
    background: white;
    z-index: 5;
    .btn {
        width: 100%;
        height: 84rpx;
        background: #FB8A32;
        border-radius: 20rpx;
        font-weight: 500;
        font-size: 32rpx;
        color: #FFFFFF;

    }
    .disabled{
        background: #FB8A324C;
    }
}



.flex_sc {
    display: flex;
    align-items: center;
}

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

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