index.scss 5 KB
/* pages/tab/index/pages/index/index.wxss */
.page-title {
  text-align: center;
  font-size: 34rpx;
  font-weight: 600;
  color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}

.bg {
  width: 100%;
  height: 480rpx;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
}
.container-box {
  height: 100vh;
  overflow: hidden;
}

.container {
  box-sizing: border-box;
  position: relative;
  overflow: auto;
  .points-box {
    margin: 8rpx 20rpx 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    .points-btn {
      box-sizing: border-box;
      min-width: 210rpx;
      height: 68rpx;
      background: #FFFFFF;
      border-radius: 34rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 12rpx 0 20rpx;
      .icon {
        display: inline-block;
        width: 28rpx;
        height: 28rpx;
        margin-right: 6rpx;
      }
      .points-num {
        display: inline-block;
        color: #FF334F;
        font-size: 44rpx;
        font-weight: 700;
      }
    }
    .arrow-icon {
      margin-left: 10rpx;
      margin-bottom: 6rpx;
      filter: drop-shadow(0.5px 0 0 #F4776D) drop-shadow(0 0.5px 0 #F4776D);
    }
  }
  
  .layout {
    width: 100%;
    box-sizing: border-box;
    margin-top: 148rpx;
    background-image: linear-gradient(180deg, #ffffffb3 0%, #FFFFFF 100rpx);
    border-radius: 24rpx 24rpx 0 0;
    padding: 20rpx 0;
    border: 2rpx solid #FFFFFF;
    border-bottom: 0;
    backdrop-filter: blur(2000rpx);
    .notic-box {
      box-sizing: border-box;
      margin: 0 20rpx 16rpx 20rpx;
      width: calc(100% - 40rpx);
      height: 64rpx;
      background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/notic-bg.png') no-repeat;
      background-size: 100% 64rpx;
      border-radius: 16rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 14rpx 0 20rpx;
      position: relative;
      .text-container {
        width: calc(100% - 100rpx);
        height: 40rpx;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        .text {
          color: #FFFFFF;
          font-size: 24rpx;
          font-weight: 500;
          display: inline-block;
          position: absolute;
        }
      }
      .detail-btn {
        flex-shrink: 0;
        width: 80rpx;
        height: 44rpx;
        background: #FFF0ED;
        border-radius: 12rpx;
        margin-left: 8rpx;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        justify-content: space-between;
        padding-left: 10rpx;
        text {
          font-size: 20rpx;
          color: #F75454;
          font-weight: 500;
        }
        .arrow-icon {
          margin: 0 6rpx 6rpx;
          filter: drop-shadow(0.5px 0 0 #F4776D) drop-shadow(0 0.5px 0 #F4776D);
        }
      }
    }
    .special-sale-box {
      padding: 0 20rpx;
      background: #F8F9FC;
      .item {
        width: 100%;
        height: 340rpx;
        margin-bottom: 20rpx;
        border-radius: 24rpx;
        overflow: hidden;
        position: relative;
        .item-name {
          position: absolute;
          top: 0;
          left: 0;
          color: #FFFFFF;
          font-weight: bold;
          font-size: 24rpx;
          display: flex;
          .item-name-left{
            width: 24rpx ;
            height: 60rpx;
            background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-left.png') no-repeat;
            background-size: 100% 100%;
          }
          .item-name-middle {
            background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-middle.png') no-repeat;
            background-size: 100% 100%;
            padding: 6rpx 0;
          }
          .item-name-right{
            width: 48rpx;
            height: 60rpx;
            background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-right.png') no-repeat;
            background-size: 100% 100%;
          }
        }
        &:last-child {
          margin-bottom: 0;
        }
      }
    }
    .goods-content {
      box-sizing: border-box;
      background: #F8F9FC;
      .goods-box-title {
        position: sticky;
        top: 0;
        left: 0;
        color: #0A0D14;
        font-size: 32rpx;
        font-weight: 600;
        padding: 24rpx;
        background-color: #F8F9FC;
      }
      .goods-box {
        background: #FFFFFF;
        border-radius: 24rpx 24rpx 0 0;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin-top: 8rpx;
        .nothing {
          text-align: center;
          color: #7A8299;
          .icon {
            margin: 20rpx auto;
            width: 320rpx;
            height: 300rpx;
          }
        }
        .end {
          text-align: center;
          color: #858A94;
        }
      }
    }
  }
}

.sticky {
  background: #F8F9FC;
}