<template>
  <layout bgImgName="first-reward-img" bgColor="#f64d5d" bgHeight="188">
    <div class="first-reward">
      <img src="@/assets/image/claimCloudPhone/first-reward-1.png" alt="" />
      <img
        src="@/assets/image/claimCloudPhone/first-reward-2.png"
        alt=""
        style="animation-delay: 1s"
      />
      <img
        src="@/assets/image/claimCloudPhone/first-reward-3.png"
        alt=""
        style="animation-delay: 1.5s"
      />
      <!-- <img :src="`${IMG_URL}/assistFirstReward.png`" alt="" /> -->
      <div class="btn-box" style="animation-delay: 2s">
        <div>以上权益已开通至您的账户</div>
        <img
          src="@/assets/image/claimCloudPhone/first-reward-container-privilege.png"
          alt=""
          class="btn"
          @click="$router.push('/claimCloudPhone/secondReward')"
        />
      </div>
    </div>
  </layout>
</template>

<script>
import layout from './components/layout';
export default {
  auth: false,
  name: 'firstReward',
  head: {
    title: '0元购机，尽情享受',
  },
  data() {
    return {
      IMG_URL: process.env.IMG_URL,
    };
  },
  components: { layout },
};
</script>

<style lang="less" scoped>
.first-reward {
  height: 100%;
  box-sizing: border-box;
  padding-top: 188px;
  position: relative;
  & > img {
    height: 80px;
    width: 100%;
    animation: first-reward 0.5s forwards linear;
    opacity: 0;
  }

  .first-reward-container_privilege-tips {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    margin: 16px 0;
    line-height: 17px;
    text-align: center;
    font-style: normal;
  }
  .btn-box {
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: first-reward 0.5s forwards linear;
    & > div {
      text-align: center;
      font-size: 12px;
      color: #fff;
      margin-bottom: 20px;
    }
    .btn {
      height: 56px;
    }
  }

  @keyframes first-reward {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }
}
</style>
