<template>
  <div class="sucess">
    <div class="p_content">
      <div class="top">
        <div>恭喜你！成功报名2021南开大学历史学科暑假营</div>
        <div>
          <img src="@/assets/img/signUp/offer.png" alt="" />
        </div>

        <div class="btn">
          <el-button @click="handleDownload">下载录取通知书</el-button>
        </div>
      </div>

      <div class="lips">
        <div>提醒事项：</div>
        <div>1、报名成功后，请及时下载入营通知书，并携带至营地。</div>
        <div>2、如有退费诉求，请致电项目组工作人员：XXX-XXXXXXXXX。</div>
      </div>
    </div>
  </div>
</template>

<script>
/* eslint-disable */
import { getCam } from "r/index/login";

export default {
  name: "Sucess",

  data() {
    return {};
  },
  created() {},
  methods: {
    handleDownload() {
      getCam(false).then((res) => {
        if (res.data.code != 200) {
          return this.$message.error(res.data.message);
        }
        this.$message.success(res.data.message);
        window.location.href = res.data.pdf_address;
      });
    },
  },
};
</script>

<style  lang="scss" scoped>
@import "a/scss/btn";
.btn {
  padding-bottom: 0 !important;
}
.sucess {
  padding: 0 56px 65px 56px;
  .p_content {
    .top {
      :nth-child(1) {
        font-size: 18px;
        font-weight: 500;
        color: #12141c;
        line-height: 18px;
        margin: 10px 0 30px 0;
      }
      div {
        text-align: center;
        font-size: 16px;
        font-weight: 500;
        color: #666666;
        line-height: 18px;
      }
    }
  }
  //  注意事项
  .lips {
    margin-top: 20px;
    div {
      font-size: 12px;
      font-weight: 500;
      color: #999999;
      line-height: 21px;
    }
  }
}
</style>
