wupengfei
2025-06-09 17336d42e38798b0289029e84271d1433ea21080
apps/taro/src/subpackages/my/applyAgent/applyAgent.vue
@@ -1,18 +1,18 @@
<template>
  <PageLayout title="立即申请" class="applyAgent-page-wrapper" hasBgColor :needAuth="false">
    <ContentScrollView hasPaddingTop style="background-color: transparent">
      <ApplyAgentView @submit="submit" 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 { goBack } from '@/utils';
import type { ComponentExposed } from 'vue-component-type-helpers';
defineOptions({
@@ -26,7 +26,9 @@
  applyAgentViewRef.value?.handleSubmit?.();
}
function submit() {
  goBack();
function submit(value: string) {
  RouteHelper.navigateTo({
    url: `${RouterPath.applyResult}?promoterIdNumber=${value}`,
  });
}
</script>