wupengfei
2025-06-09 9932280cc032c62b23bf77fba8287d739243dc37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<template>
  <PageLayout title="立即申请" class="applyAgent-page-wrapper" hasBgColor :needAuth="false">
    <ContentScrollView hasPaddingTop style="background-color: transparent">
      <ApplyAgentView @submit="submit" ref="applyAgentViewRef" />
    </ContentScrollView>
    <PageFooter>
      <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',
});
 
const applyAgentViewRef =
  useTemplateRef<ComponentExposed<typeof ApplyAgentView>>('applyAgentViewRef');
 
function handleSubmit() {
  applyAgentViewRef.value?.handleSubmit?.();
}
 
function submit() {
  RouteHelper.navigateTo({
    url: RouterPath.applyResult,
  });
}
</script>