<template>
  <el-result icon="success" class="step-result" sub-title="预计两小时内到账" title="操作成功">
    <template #extra>
      <div class="information">
        <el-row class="my-1" :gutter="20">
          <el-col :span="10">付款账户：</el-col>
          <el-col :span="14">NaiveUiAdmin@163.com</el-col>
        </el-row>
        <el-row class="my-1" :gutter="20">
          <el-col :span="10">收款账户：</el-col>
          <el-col :span="14">xiaoma@qq.com</el-col>
        </el-row>
        <el-row class="my-1" :gutter="20">
          <el-col :span="10">收款人姓名：</el-col>
          <el-col :span="14">啊俊</el-col>
        </el-row>
        <el-row class="my-1" :gutter="20">
          <el-col :span="10">转账金额：</el-col>
          <el-col :span="14">￥<span class="money">1980</span> 元</el-col>
        </el-row>
      </div>
      <div class="flex justify-center mt-8">
        <el-button class="mr-4" type="primary" @click="finish">再转一笔</el-button>
        <el-button @click="prevStep">查看账单</el-button>
      </div>
    </template>
  </el-result>
</template>

<script lang="ts" setup>
  const emit = defineEmits(['finish', 'prevStep']);

  function prevStep() {
    emit('prevStep');
  }

  function finish() {
    emit('finish');
  }
</script>

<style lang="scss" scoped>
  .step-result {
    max-width: 560px;
    margin: 20px auto 0;

    :deep(.n-result-content) {
      background-color: #fafafa;
      padding: 24px 40px;
    }

    .information {
      line-height: 22px;

      .ant-row:not(:last-child) {
        margin-bottom: 24px;
      }
    }

    .money {
      font-family: 'Helvetica Neue', sans-serif;
      font-weight: 500;
      font-size: 20px;
      line-height: 14px;
    }
  }
</style>
