<template>
  <div class="plaza">
    <div v-for="item in list" :key="item.key" class="plaza-item">
      <div class="plaza-item-header">{{item.type}}</div>
      <div class="plaza-item-content">
        <div class="plaza-item-title">{{item.title}}</div>
        <div class="plaza-item-odds">
          <div class="plaza-item-odds-left">
            <div>{{item.odds1}}</div>
            胜
          </div>
          <div class="plaza-item-odds-middle">VS</div>
          <div class="plaza-item-odds-right">
            胜
            <div>{{item.odds2}}</div>
          </div>
        </div>
        <div class="plaza-item-text">{{item.title}}</div>
        <div class="plaza-item-text">接受本次挑战您需投入{ {{item.amount}} }元，如果结果为{ {{item.result}} },您将获得收益{ {{item.income}} }
        </div>
        <div class="plaza-item-btn">
          <img src="@/assets/images/plaze/share.png">
          <div class="plaza-item-btn-group">
            <img src="@/assets/images/plaze/copy.png">
            <img src="@/assets/images/plaze/challenge.png">
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'PlazaPage',
  data() {
    return {
      list: [{
        type: '体育',
        title: '德国淘汰西班牙进入八强',
        odds1: 1.35,
        odds2: 1.35,
        amount: 42.05,
        result: '负',
        income: 135
      },
      {
        type: '体育',
        title: '德国淘汰西班牙进入八强',
        odds1: 1.35,
        odds2: 1.35,
        amount: 42.05,
        result: '负',
        income: 135
      },
      {
        type: '体育',
        title: '德国淘汰西班牙进入八强',
        odds1: 1.35,
        odds2: 1.35,
        amount: 42.05,
        result: '负',
        income: 135
      },
      {
        type: '体育',
        title: '德国淘汰西班牙进入八强',
        odds1: 1.35,
        odds2: 1.35,
        amount: 42.05,
        result: '负',
        income: 135
      }]
    };
  },
  methods: {}
}
</script>

<style  lang="scss" scoped>
.plaza {
  background: url("@/assets/images/index/bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding:50px 0 50px;

  &-item {
    background: url("@/assets/images/plaze/bg.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 90%;
    height: 275px;
    margin: 0 auto 10px;
    color: white;
    font-family: PingFang SC, Arial;
    font-weight: bold;

    &-header {
      height: 35px;
      padding-left: 10px;
      display: flex;
      align-items: center;
    }

    &-content {
      padding: 10px;
    }

    &-title {
      text-align: center;
      padding: 5px 0;
      width: 70%;
      background: linear-gradient(83deg, #37BBFC 0%, #13A4FF 57%, #32B8FD 99%);
      margin: 0 auto;
    }

    &-odds {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      padding: 0 10px;

      &-left,
      &-right {
        display: flex;
        align-items: center;

        div {
          border-radius: 50%;
          width: 70px;
          height: 70px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 24px;
          font-weight: normal;
        }
      }

      &-middle {
        font-size: 36px;
        font-family: Arial;
      }

      &-left div {
        background: #008AD6;
        margin-right: 10px;
      }

      &-right div {
        background: #FF6161;
        margin-left: 10px;
      }
    }

    &-text {
      text-align: center;
      font-size: 14px;
      padding: 0 18px;
      line-height: 24px;
    }

    &-btn {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 18px;
      margin-top: 3px;

      img {
        height: 30px;
      }

      &-group {
        img {
          height: 40px;
        }
      }
    }
  }
}
</style>
