<template>
  <div>
    <n-result class="step-result" description="预计两小时内到账" status="success" title="操作成功">
      <template #default>
        <div class="information">
          <n-grid class="my-1" cols="2 s:2 m:3 l:3 xl:3 2xl:3" responsive="screen">
            <n-gi>付款账户：</n-gi>
            <n-gi>NaiveUiAdmin@163.com</n-gi>
          </n-grid>
          <n-grid class="my-1" cols="2 s:2 m:3 l:3 xl:3 2xl:3" responsive="screen">
            <n-gi>收款账户：</n-gi>
            <n-gi>xiaoma@qq.com</n-gi>
          </n-grid>
          <n-grid class="my-1" cols="2 s:2 m:3 l:3 xl:3 2xl:3" responsive="screen">
            <n-gi>收款人姓名：</n-gi>
            <n-gi>啊俊</n-gi>
          </n-grid>
          <n-grid class="my-1" cols="2 s:2 m:3 l:3 xl:3 2xl:3" responsive="screen">
            <n-gi>转账金额：</n-gi>
            <n-gi>￥<span class="money">1980</span> 元</n-gi>
          </n-grid>
        </div>
      </template>
      <template #footer>
        <div class="flex justify-center">
          <n-button class="mr-4" type="primary" @click="finish">再转一笔</n-button>
          <n-button @click="prevStep">查看账单</n-button>
        </div>
      </template>
    </n-result>
  </div>
</template>

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

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

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

<style lang="less" scoped>
  .step-result {
    max-width: 560px;
    margin: 40px 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>
