echart.scss 2.7 KB
/* packageOutput/components/echart/echart.wxss */
// .f2-chart {
//     width: 100%;
//     height: 500rrpx;
//   }
.ec-canvas {
  width: 670rpx;
  height: 520rpx;
  margin-top: -20rpx;
}

.container {
  box-sizing: border-box;
  height: 584rpx;
  padding: 20rpx 16rpx 0rpx;
  background-color: #fff;
  margin-bottom: 20rpx;
  font-size: 36rpx;
  border-radius: 16rpx;

  .title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 28rpx;
    color: #323436;

    .title-tip {
      font-weight: 400;
      font-size: 24rpx;
      color: #333;
    }

    .title-tip-red {
      font-weight: 400;
      font-size: 24rpx;
      color: #db6d6d;
    }
  }

  .content {
    padding: 24rpx 20rpx 0rpx;

    .row {
      
      font-size: 24rpx;
      padding: 16rpx 0;
      border-bottom: 0.5rpx solid #e4e6ee;

      .label {
        margin-bottom: 19rpx;
      }

      .num {
        font-weight: 600;
        font-size: 36rpx;
        color: #333333;
      }
    }

    .row:last-child {
      border: none;
    }

    .td:first-child {
      width: 60%;
    }

    .td:nth-child(2),
    .td:nth-child(3) {
      width: 20%;
    }

    .icon-up-down {
      width: 24rpx;
      height: 24rpx;
    }

    .up {
      font-weight: 600;
      color: #f24724;
    }

    .down {
      font-weight: 600;
      color: #35c376;
    }
  }

  .revenue {
    box-sizing: border-box;
    background-color: #fff;
    padding: 20rpx 16rpx 20rpx;
    margin-bottom: 20rpx;
    border-radius: 16rpx;
  }

  .pro-rank {
    .rank-item {
      border-bottom: 0.5rpx solid #e4e6ee;
      padding: 24rpx 0;
    }

    .rank-idx {
      width: 36rpx;
      height: 36rpx;
      line-height: 40rpx;
      text-align: center;
      background: #999999;
      border-radius: 8rpx;
      font-weight: 600;
      font-size: 20rpx;
      color: #ffffff;
      margin-right: 10rpx;
    }

    .rank-0 {
      background-image: linear-gradient(180deg, #ffd767 0%, #f7c33f 100%);
      color: #a86921;
    }

    .rank-1 {
      background-image: linear-gradient(180deg, #dfe1e5 0%, #cbccce 100%);
      color: #8b8585;
    }

    .rank-2 {
      background-image: linear-gradient(180deg, #f6dac4 0%, #f0be98 100%);
      color: #cf7334;
    }

    .pro-name {
      width: 480rpx;
      font-weight: 600;
      font-size: 28rpx;
      color: #333333;
    }

    .price {
      font-weight: 600;
      font-size: 36rpx;
      color: #f24724;
      text-align: right;
    }

    .tips {
      font-weight: 400;
      font-size: 24rpx;
      color: #666666;
      margin: 18rpx 0 0 46rpx;
    }

    .icons {
      width: 100%;
      text-align: center;
      padding: 20rpx 0 0;
    }

    .rank-icon {
      width: 40rpx;
      height: 40rpx;
    }
  }
}