SetMeal.sass 3.89 KB
/* components/SetMeal/SetMeal.wxss */
.coupon-box {
  height: calc(100% - 60rpx);
  width: calc(100% + var(--fontSize64));
  margin-left: calc(-1 * var(--fontSize32));
}

.set-meal {
  height: calc(100% - 120rpx);
  box-sizing: border-box;
  padding: 0 var(--fontSize32);
  margin-right: -14rpx;

  .sign-text {
    color: #292d33;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 44rpx;
    margin: 22rpx 0;

    text {
      color: #999ea8;
    }
  }
}

.goods-item {
  padding: 24rpx 4rpx;
  box-sizing: border-box;
  border-bottom: 2rpx solid #EBEDF0;

  .item-hd {
    display: flex;
    align-items: center;

    .packageName-wrap {
      display: flex;
      align-items: center;
      flex: 0 1 auto;
      min-width: 0;
      max-width: calc(100% - 200rpx);
      margin-left: 20rpx;
    }

    .packageName-wrap .marketing-icon {
      width: 56rpx;
      height: 28rpx;
      flex-shrink: 0;
      margin-left: 8rpx;
    }

    .packageName {
      flex: 0 1 auto;
      max-width: 400rpx;
      font-weight: 400;
      font-size: 28rpx;
      color: #292D33;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .total-price {
      font-weight: 500;
      font-size: 28rpx;
      color: #347BFF;
      margin-left: auto;
    }

    .icon {
      display: block;
      width: var(--fontSize32);
      height: var(--fontSize32);
    }

    .icon .arc {
      width: 100%;
      height: 100%;
      border: var(--fontSize2) solid #979797;
      border-radius: 100%;
      box-sizing: border-box;
    }

    .control {
      display: flex;
      align-items: center;
      margin-left: auto;
    }

    .control .minus,
    .control .add {
      width: var(--fontSize44);
      height: var(--fontSize44);
      color: #347BFF;
      background: #F7F7F7;
      border-radius: var(--fontSize6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: var(--fontSize32);
      font-weight: 700;
    }

    .control .input {
      width: var(--fontSize72);
      height: var(--fontSize40);
      text-align: center;
      font-size: var(--fontSize28);
      color: #333333;
      margin: 0 var(--fontSize5);
    }
  }

  .item-bd {
    padding: 24rpx;
    margin: 20rpx 0 8rpx 55rpx;
    background: #F7F8FA;
    border-radius: 8rpx;

    .upgrade-item {
      display: flex;
      align-items: center;
      margin-bottom: 16rpx;

      .dot {
        width: 12rpx;
        height: 12rpx;
        background: #347BFF;
        border-radius: 100%;
      }

      .name {
        width: 420rpx;
        font-weight: 400;
        font-size: 24rpx;
        color: #5A5E66;
        line-height: 32rpx;
        margin-left: 12rpx;
        margin-right: auto;
        white-space: wrap;
      }

      .price {
        font-weight: 500;
        font-size: 24rpx;
        color: #5A5E66;
        line-height: 32rpx;

      }
    }

    .upgrade-item:last-child {
      margin-bottom: 0px;
    }
  }
}

.select-text {
  display: flex;
  color: #888888;
  font-size: 28rpx;
  font-weight: 400;
  text-align: center;
  justify-content: center;
  margin: 28rpx 0;

  .number {
    color: #347bff;
    margin: 0 10rpx;
  }
}

.safeAreaInset {
  padding-bottom: var(--constantSafeAreaInsetBottom);
  padding-bottom: var(--envSafeAreaInsetBottom);
}

/* 滚动条整体样式 */
::-webkit-scrollbar {
  display: none;
  /* 隐藏滚动条 */
  width: 0;
  /* 滚动条宽度 */
  height: 0;
  /* 滚动条高度 */
  color: transparent;
  /* 滚动条颜色(虽然设置为透明,但在此场景下不起作用) */
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
  background-color: #fff;
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
  background-color: #fff;
  border-radius: 0;
}

/* 滚动条滑块在hover状态下的样式 */
::-webkit-scrollbar-thumb:hover {
  background-color: #fff;
}

.nothing {
  padding: var(--fontSize100);
  text-align: center;
  color: #999;
}