zhengyiming
13 小时以前 1327b99efda99ada27a956981648950f580314b0
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
<template>
  <PageLayout title="立即申请" class="applyAgent-page-wrapper" hasBgColor :needAuth="false">
    <ContentScrollView hasPaddingTop style="background-color: transparent">
      <ApplyAgentView @submit="submit" ref="orderApplyRefundViewRef" />
    </ContentScrollView>
    <PageFooter>
      <PageFooterBtn type="primary" @click="handleSubmit">提交申请</PageFooterBtn>
    </PageFooter>
  </PageLayout>
</template>
 
<script setup lang="ts">
import { PageLayout } from '@/components';
import { ApplyAgentView } from '@life-payment/components';
import { goBack } from '@/utils';
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() {
  goBack();
}
</script>