<template>
  <el-card :bordered="false" class="proCard">
    <div class="result-box">
      <el-result
        status="info"
        title="提示"
        description="本次提交，将在24小时候内自动转入对方账户，如操作失误，请及时撤回"
      >
        <div class="result-box-extra">
          <p>您提交的内容如下：</p>
          <p class="mt-3">
            <el-space align="center">
              <el-icon size="20" color="#18a058">
                <CheckCircleOutlined />
              </el-icon>
              <span>转入支付宝账户（189****5426）：￥1980元</span>
              <el-button type="info" text>立即撤回</el-button>
            </el-space>
          </p>
          <p class="mt-3">
            <el-space>
              <el-icon size="20" color="#18a058">
                <CheckCircleOutlined />
              </el-icon>
              <span>转入支付宝账户（187****5426）：￥2980元</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 { CheckCircleOutlined } 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>
