<template>
  <div class="success-container">
    <a-result
      status="success"
      title="商家入驻申请提交成功"
      sub-title="我们将在3个工作日内完成审核，审核结果将通过短信通知您"
    >
      <template #extra>
        <a-button key="console" type="primary" @click="goHome"
          >返回首页</a-button
        >
        <a-button key="buy" @click="viewApplication">查看申请</a-button>
      </template>
    </a-result>
  </div>
</template>

<script lang="ts" setup>
  import { useRouter } from 'vue-router';

  const router = useRouter();

  const goHome = () => {
    router.push('/');
  };

  const viewApplication = () => {
    router.push('/merchant/apply');
  };
</script>

<style lang="less" scoped>
  .success-container {
    padding: 40px;
    background: #fff;
    border-radius: 4px;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
  }
</style>
