| | |
| | | <template> |
| | | <PageLayout title="立即申请" class="applyAgent-page-wrapper" hasBgColor :needAuth="false"> |
| | | <ContentScrollView hasPaddingTop style="background-color: transparent"> |
| | | <!-- <OrderApplyRefundView |
| | | :id="id" |
| | | @submitApplyRefund="submitApplyRefund" |
| | | ref="orderApplyRefundViewRef" |
| | | /> --> |
| | | <ApplyAgentView @submit="submit" ref="applyAgentViewRef" /> |
| | | </ContentScrollView> |
| | | <PageFooter> |
| | | <PageFooterBtn type="primary" @click="handleSubmit">提交申请</PageFooterBtn> |
| | | <PageFooterBtn type="primary" @click="handleSubmit">立即提交</PageFooterBtn> |
| | | </PageFooter> |
| | | </PageLayout> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { PageLayout } from '@/components'; |
| | | import { RouterPath } from '@/constants'; |
| | | import { ApplyAgentView } from '@life-payment/components'; |
| | | import type { ComponentExposed } from 'vue-component-type-helpers'; |
| | | |
| | | defineOptions({ |
| | | name: 'applyAgent', |
| | | }); |
| | | |
| | | function handleSubmit() {} |
| | | const applyAgentViewRef = |
| | | useTemplateRef<ComponentExposed<typeof ApplyAgentView>>('applyAgentViewRef'); |
| | | |
| | | function handleSubmit() { |
| | | applyAgentViewRef.value?.handleSubmit?.(); |
| | | } |
| | | |
| | | function submit(consultationId: string) { |
| | | RouteHelper.navigateTo({ |
| | | url: `${RouterPath.applyResult}?consultationId=${consultationId}`, |
| | | }); |
| | | } |
| | | </script> |