<template>
  <div class="DakaSuccess">
    <div class="content">
      <img
        src="../assets/ic_close.png"
        class="close_icon"
        @click="closeModal"
      >
      <div class="title_container">
        <div class="title">早起打卡成功</div>
        <div class="sub_title">请继续保持早起习惯哦~</div>
      </div>

      <img
        src="../assets/pop_hand.png"
        class="main_pic"
      >
      <div class="desc">奖励金预计当日13点前到账</div>
      <div
        class="DakaSuccess_button"
        @click="nextSign"
      >报名下一期</div>
    </div>
  </div>
</template>

<style>
div.DakaSuccess {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  text-align: center;
}
div.DakaSuccess .close_icon {
  display: block;
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.3rem;
}
div.DakaSuccess .content {
  width: 6.4rem;
  height: 6.85rem;
  background: #ffffff;
  border-radius: 0.06rem;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  border: 1px solid transparent;
}
div.DakaSuccess .content .title_container {
  height: 1rem;
}
div.DakaSuccess .content .title {
  font-size: 0.4rem;
  color: #282828;
  margin-top: 0.6rem;
  font-weight: bold;
}

div.DakaSuccess .content .sub_title {
  margin-top: 0.18rem;
  font-size: 0.4rem;
  color: #282828;
}

div.DakaSuccess .content img.main_pic {
  width: 3.2rem;
  margin-top: 0.2rem;
}
div.DakaSuccess .content .desc {
  margin-top: 0.24rem;
  color: #5a5a5a;
  font-size: 0.28rem;
}
div.DakaSuccess .content .desc span {
  font-size: 0.36rem;
  color: #282828;
  font-weight: bold;
}
div.DakaSuccess .content .sub_desc {
  margin-top: 0.3rem;
  color: #5a5a5a;
  font-size: 0.24rem;
}

div.DakaSuccess .content .DakaSuccess_button {
  width: 5rem;
  height: 0.88rem;
  margin-top: 0.4rem;
  margin-left: calc((6.4rem - 5rem) / 2);
  background: #ffbb34;
  border-radius: 0.44rem;
  font-size: 0.38rem;
  font-weight: bold;
  color: #ffffff;
  line-height: calc(0.88 / 0.38);
}
</style>

<script>
export default {
  name: "DakaSuccess",
  components: {},
  data() {
    return {
      can_get: false,
      invite_num: 4
    };
  },
  methods: {
    // 关闭弹窗
    closeModal() {
      this.$emit("close", true);
    },
    // 邀请好友
    nextSign() {
      this.$emit("nextSign", true);
      this.$emit("close", true);
    },
    // 立即报名
    joinDakaSuccess() {}
  }
};
</script>
