<template>
  <div class="info-data">
    <div class="header">个人功绩表</div>
    <div class="list">
      <div class="row">
        <div class="label">总旋转数</div>
        <div class="value">{{ data.totalSpins }}</div>
      </div>
      <div class="row">
        <div class="label">总赢奖金</div>
        <div class="value" style="color: #78b316;">{{ data.totalWinnings }}</div>
      </div>
      <div class="row">
        <div class="label">大奖赢奖金</div>
        <div class="value" style="color: #4c8fd3;">{{ data.jackpotEarned }}</div>
      </div>
      <div class="row">
        <div class="label">最大中奖</div>
        <div class="value" style="color: #d9d32f;">{{ data.maxSingleHighestStrike }}</div>
      </div>
    </div>
    <img class="jian" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/gameMore/jian_01.png" alt="">
  </div>
</template>

<script>
export default {
  props: {
    // 个人功绩
    data: {
      type: Object,
      default: () => {
        return {}
      },
    },
  },
  data() {
    return {}
  },
}
</script>

<style lang="scss" scoped>
.info-data {
  position: relative;
}
.header {
  /* height: 26px; */
  padding: 6px 18px;
  font-size: 18px;
  font-weight: bold;
  color: #ffd540;
  background-image: linear-gradient(#004156, #00212e);
}
.label {
  width: 80px;
}
.list {
  .row {
    display: flex;
    &:nth-child(odd) {
      background-color: #002e3f;
    }
    &:nth-child(even) {
      background-color: #184054;
    }
    padding: 6px 18px;
    .label {
      width: 150px;
      font-size: 14px;
    }
    .value {
    }
  }
}
.jian {
  position: absolute;
  right: 80px;
  top: 46px;
  width: 70px;
}
</style>
