<template>
    <div class="register-success">
      <div class="success-status">
        <div class="status-icon">
          <img src="@/assets/imgs/ic_success.png" />
        </div>
        <div class="status-text">
          <p>账号已注册</p>
          <p>需完成实名认证后方可正常使用</p>
        </div>
      </div>
      <div class="success-action">
        <el-button type="primary" @click="successAction">
          立即登录
        </el-button>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    name: "RegisterSuccess",
    methods: {
      successAction() {
        this.$emit("login");
      },
    },
  };
  </script>
  
  <style lang="less" scoped>
  .register-success {
    width: 500px;
    height: 320px;
    background-color: #ffffff;
    box-shadow: 0px 6px 12px 0px rgba(0, 20, 53, 0.3);
    border-radius: 12px;
    padding: 90px 115px 0;
    box-sizing: border-box;
    overflow: hidden;
  
    > .success-status {
      display: flex;
      justify-content: space-between;
      align-items: center;
  
      > .status-icon {
        font-size: 0;
      }
  
      > .status-text {
        > p {
          margin: 0;
          line-height: 2;
  
          &:nth-child(1) {
            font-size: 18px;
            color: #242c43;
          }
  
          &:nth-child(2) {
            font-size: 14px;
            color: #8890a7;
          }
        }
      }
    }
  
    > .success-action {
      margin-top: 40px;
    }
  }
  </style>
  