fail.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <el-card :bordered="false" class="proCard">
  3. <div class="result-box">
  4. <el-result status="error" title="操作失败" description="请核对并修改以下信息后,再重新提交。">
  5. <div class="result-box-extra">
  6. <p>您提交的内容有如下错误:</p>
  7. <p class="mt-3">
  8. <el-space align="center">
  9. <el-icon size="20" color="#f0a020">
  10. <InfoCircleOutlined />
  11. </el-icon>
  12. <span>认证照片不够清晰</span>
  13. <el-button type="info" text>立即修改</el-button>
  14. </el-space>
  15. </p>
  16. <p class="mt-3">
  17. <el-space>
  18. <el-icon size="20" color="#f0a020">
  19. <InfoCircleOutlined />
  20. </el-icon>
  21. <span>备注包含敏感字符,并且不能包含政治相关</span>
  22. <el-button type="info" text>立即修改</el-button>
  23. </el-space>
  24. </p>
  25. </div>
  26. <template #footer>
  27. <div class="flex justify-center mb-4">
  28. <el-space align="center">
  29. <el-button type="info" @click="goHome">回到首页</el-button>
  30. <el-button>查看详情</el-button>
  31. <el-button>打印</el-button>
  32. </el-space>
  33. </div>
  34. </template>
  35. </el-result>
  36. </div>
  37. </el-card>
  38. </template>
  39. <script lang="ts" setup>
  40. import { useRouter } from 'vue-router';
  41. import { InfoCircleOutlined } from '@vicons/antd';
  42. const router = useRouter();
  43. function goHome() {
  44. router.push('/');
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .result-box {
  49. width: 72%;
  50. margin: 0 auto;
  51. text-align: center;
  52. padding-top: 5px;
  53. &-extra {
  54. padding: 24px 40px;
  55. text-align: left;
  56. background: var(--n-border-color);
  57. border-radius: 4px;
  58. }
  59. }
  60. </style>