zhengyiming
13 小时以前 1327b99efda99ada27a956981648950f580314b0
apps/taro/src/subpackages/my/applyAgent/applyAgent.vue
@@ -1,11 +1,7 @@
<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="orderApplyRefundViewRef" />
    </ContentScrollView>
    <PageFooter>
      <PageFooterBtn type="primary" @click="handleSubmit">提交申请</PageFooterBtn>
@@ -15,10 +11,22 @@
<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',
});
function handleSubmit() {}
const applyAgentViewRef =
  useTemplateRef<ComponentExposed<typeof ApplyAgentView>>('applyAgentViewRef');
function handleSubmit() {
  applyAgentViewRef.value?.handleSubmit?.();
}
function submit() {
  goBack();
}
</script>