<template>
  <layout bgImgName="invitee-exits-img" bgColor="#fdf2e3" bgHeight="219">
    <div class="invitee-exits">
      <div class="invitee-exits-privilege">
        <div>三大云机特权</div>
        <div>
          <div>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-1.png"
              alt=""
            />
            <div>游戏托管</div>
          </div>
          <div>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-2.png"
              alt=""
            />
            <div>应用分身</div>
          </div>
          <div>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-3.png"
              alt=""
            />
            <div>坐标定位</div>
          </div>
        </div>
      </div>
      <div class="invitee-exits-phone-info">
        <div>云机可助您</div>
        <ul>
          <li>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-4.png"
              alt=""
            />
            24小时运行游戏任务
          </li>
          <li>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-5.png"
              alt=""
            />
            登录您的多个账号
          </li>
          <li>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-6.png"
              alt=""
            />
            隐私手机空间
          </li>
          <li>
            <img
              src="@/assets/image/claimCloudPhone/invitee-exits-privilege-7.png"
              alt=""
            />
            苹果手机玩安卓应用
          </li>
        </ul>
      </div>
      <div class="invitee-exits-btn">
        <div @click="$router.go(-1)">一键领取</div>
        <div @click="visible = true">放弃所有奖励</div>
      </div>
    </div>
    <van-dialog v-model="visible" :showConfirmButton="false">
      <img src="@/assets/image/claimCloudPhone/claim-the-bullet-box.png" alt="" class="claim-the-bullet-box" @click="toZeroYuanClaim">
    </van-dialog>
  </layout>
</template>

<script>
import layout from './components/layout';
export default {
  auth: false,
  name: 'inviteeExits',
  head: {
    title: '0元购机，尽情享受',
  },
  data() {
    return {
      visible: false,
    };
  },
  components: { layout },
  methods: {
    toZeroYuanClaim() {
      this.$router.push('/claimCloudPhone/zeroYuanClaim?inviteeExits=1')
    }
  }
};
</script>

<style lang="less" scoped>
::v-deep .van-dialog{
  background: transparent;
  .claim-the-bullet-box{
    height: 320px;
    width: 304px;
  }
}
.invitee-exits {
  height: 100%;
  padding-top: 210px;
  box-sizing: border-box;
  .invitee-exits-privilege,
  .invitee-exits-phone-info {
    background: #ffffff;
    box-shadow: 0px 2px 4px 0px #f6e5d3;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    & > div:first-of-type {
      font-family: PingFangSC, PingFang SC;
      font-weight: bold;
      font-size: 16px;
      color: #0a132b;
      line-height: 22px;
      font-style: normal;
      margin-bottom: 12px;
    }
  }

  .invitee-exits-phone-info {
    ul {
      padding: 0;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      color: #0a132b;
      line-height: 20px;
      font-style: normal;
      img {
        width: 20px;
        height: 20px;
        vertical-align: middle;
      }
    }
  }
  .invitee-exits-privilege {
    img {
      height: 42px;
      width: 42px;
      display: block;
      margin: 0 auto;
    }

    & > div:last-of-type {
      display: grid;
      grid-gap: 8px;
      grid-template-columns: repeat(3, 1fr);
      text-align: center;
      font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
      font-weight: 400;
      font-size: 14px;
      color: #213d5f;
      line-height: 20px;
      font-style: normal;
    }
  }
  .invitee-exits-btn {
    & > div:first-of-type {
      width: 226px;
      height: 40px;
      background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
      border-radius: 26px;
      margin: 0 auto;
      font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
      font-weight: bold;
      font-size: 18px;
      color: #ffffff;
      line-height: 40px;
      text-align: center;
      font-style: normal;
    }

    & > div:last-of-type {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 12px;
      color: #7e8495;
      line-height: 17px;
      text-align: center;
      font-style: normal;
      margin-top: 10px;
    }
  }
}
</style>
