index.scss 5.92 KB
/* packageMall/pages/detail/detail.wxss */


page {
    background: #F7F8FA;
}

.flex {
  display: flex;
  align-items: center;
  position: relative;
}

.navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  .navigation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    .back {
      position: absolute;
      left: 20rpx;
      width: 64rpx;
      height: 64rpx;
      background: #ffffff80;
      border: 1rpx solid #E5E5E5;
      border-radius: 32rpx;
    }
    .page-title {
      font-size: 34rpx;
      font-weight: 600;
      color: #282829;
    }
  }
}
.layout {
  .banner-box {
    height: 750rpx;
    position: relative;
    .banner {
      height: 100%;
    }
    .dot-box {
      position: absolute;
      bottom: 24rpx;
      border-radius: 2rpx;
      overflow: hidden;
      display: flex;
    }
    .banner video {
      width: 100%;
      height: 100%;
    }
    .dot {
      width: 20rpx;
      height: var(--borderRadius);
      background: rgba(255, 255, 255, 0.3);
      transition: all .5s;
    }
    .dot.active {
      background-color: #fff;
    }
  }
  .goods-container {
    background: #F7F8FA;
    padding: 16rpx 0;
    .container-item {
      margin: 0 16rpx;
      padding: 0 24rpx;
      background: #FFFFFF;
      border-radius: 24rpx;
      margin-bottom: 16rpx;
    }
    .goods-box {
      padding: 28rpx 24rpx;
      .price{
        display: flex;
        justify-content: space-between;
      }
      .price-box {
        display: flex;
        .sale-price {
          color: #FC5B32;
          text {
            font-size: 28rpx;
            font-weight: 500;
          }
          .price-num {
            font-size: 54rpx;
            font-weight: 700;
            height: 56rpx;
            line-height: 56rpx;
            margin-right: 4rpx;
          }
        }
        .market-price {
          text-decoration: line-through;
          font-size: 24rpx;
          color: #B1B1B3;
          margin: 36rpx 0 0 12rpx;
        }
      }
      .count {
        color: #B1B1B3;
        font-size: 24rpx;
        .line{
          margin: 0 16rpx;
        }
      }
      .goods-title {
        margin-top: 20rpx;
        color: #282829;
        font-size: 34rpx;
        font-weight: 500;
        font-family: PingFangSC-Medium;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        word-break: break-all;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
    }
    .select-params-box {
      .cell {
        height: 88rpx;
        display: flex;
        align-items: center;
        .flex {
          width: 100%;
        }
        .title {
          width: 110rpx;
          font-size: 26rpx;
          color: #707071;
        }
        .content {
          width: 490rpx;
          height: 44rpx;
          font-size: 26rpx;
          color: #2D2D2E;
          .text {
            width: 490rpx;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            word-break: break-all;
          }
        }
        .flex_ccc {
          display: flex;
          justify-content: center;
          flex-direction: column;
        }
      }
    }
    .goods-detail-box {
      background: #FFFFFF;
      .title {
        padding: 32rpx 40rpx;
        font-size: 32rpx;
        color: #282829;
        font-weight: 500;
      }
      .content {
        font-size: 24rpx;
        background-color: #fff;
        padding: 0 40rpx;
      }
    }
  }
  .inner {
    .title {
      padding: 32rpx 40rpx;
      font-weight: 500;
      font-size: 32rpx;
      color: #282829;
    }
    .table-wrap {
      box-sizing: border-box;
      padding: 0 24rpx;
      .cell {
        .label-box {
          width: 216rpx;
          height: 64rpx;
          background: #FFFFFF;
          border: 2rpx solid #EFF0F2;
          font-weight: 400;
          font-size: 24rpx;
          color: #B1B1B3;
          box-sizing: border-box;
          padding-left: 32rpx;
        }
        .content-box {
          width: 488rpx;
          height: 64rpx;
          background: #FFFFFF;
          border: 2rpx solid #EFF0F2;
          font-weight: 400;
          font-size: 24rpx;
          color: #656566;
          box-sizing: border-box;
          padding-left: 32rpx;
        }
        .title-box {
          width: 100%;
          height: 64rpx;
          background: #FFFFFF;
          border: 2rpx solid #EFF0F2;
          font-weight: 400;
          font-size: 24rpx;
          color: #2D2D2E;
          padding-left: 32rpx;
        }
      }
    }
  }
}

.tab-widget {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: white;
    height: 88rpx;
    z-index: 99;
    opacity: 0;

    .tab-box {
        position: relative;
        width: 50%;
        height: 88rpx;
        font-weight: 400;
        font-size: 28rpx;
        color: #656566;

        .line {
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 66rpx;
            height: 6rpx;
            background: #FC5B32;
            border-radius: 2rpx;
        }
    }
}

.fixed_btn_wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100rpx;
    background: #FFFFFF;
    box-sizing: border-box;
    padding:4rpx 48rpx;

    .dh_btn {
        background: #FC5B32;
        border: 1.6rpx solid #FC5B32;
        box-shadow: 0 4rpx 12rpx 4rpx #f13c3d1a;
        border-radius: 20rpx;
        height: 80rpx;
        font-weight: 500;
        font-size: 28rpx;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .grey_btn{
        background: #999999;
        border: none;
        box-shadow: none;
    }
}

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