<template>
  <el-card :bordered="false" class="proCard">
    <div class="result-box">
      <el-result status="error" title="操作失败" description="请核对并修改以下信息后，再重新提交。">
        <div class="result-box-extra">
          <p>您提交的内容有如下错误：</p>
          <p class="mt-3">
            <el-space align="center">
              <el-icon size="20" color="#f0a020">
                <InfoCircleOutlined />
              </el-icon>
              <span>认证照片不够清晰</span>
              <el-button type="info" text>立即修改</el-button>
            </el-space>
          </p>
          <p class="mt-3">
            <el-space>
              <el-icon size="20" color="#f0a020">
                <InfoCircleOutlined />
              </el-icon>
              <span>备注包含敏感字符，并且不能包含政治相关</span>
              <el-button type="info" text>立即修改</el-button>
            </el-space>
          </p>
        </div>
        <template #footer>
          <div class="flex justify-center mb-4">
            <el-space align="center">
              <el-button type="info" @click="goHome">回到首页</el-button>
              <el-button>查看详情</el-button>
              <el-button>打印</el-button>
            </el-space>
          </div>
        </template>
      </el-result>
    </div>
  </el-card>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router';
import { InfoCircleOutlined } from '@vicons/antd';

const router = useRouter();

function goHome() {
  router.push('/');
}
</script>
<style lang="scss" scoped>
.result-box {
  width: 72%;
  margin: 0 auto;
  text-align: center;
  padding-top: 5px;

  &-extra {
    padding: 24px 40px;
    text-align: left;
    background: var(--n-border-color);
    border-radius: 4px;
  }
}
</style>
