From 6a6b899fbffe820f37e9e991f2335ef0c6b911c8 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 09 六月 2025 16:21:25 +0800
Subject: [PATCH] Merge branch 'dev-ui' of http://120.26.58.240:8888/r/LifePaymentFront into dev-ui

---
 apps/taro/src/subpackages/my/applyAgent/applyAgent.vue   |    4 ++--
 packages/components/src/views/Mine/ApplyAgentView.vue    |    2 +-
 apps/taro/src/subpackages/my/applyResult/applyResult.vue |    9 +++------
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/apps/taro/src/subpackages/my/applyAgent/applyAgent.vue b/apps/taro/src/subpackages/my/applyAgent/applyAgent.vue
index 0f50218..71ce83a 100644
--- a/apps/taro/src/subpackages/my/applyAgent/applyAgent.vue
+++ b/apps/taro/src/subpackages/my/applyAgent/applyAgent.vue
@@ -26,9 +26,9 @@
   applyAgentViewRef.value?.handleSubmit?.();
 }
 
-function submit(value: string) {
+function submit(consultationId: string) {
   RouteHelper.navigateTo({
-    url: `${RouterPath.applyResult}?channelConsultationId=${value}`,
+    url: `${RouterPath.applyResult}?consultationId=${consultationId}`,
   });
 }
 </script>
diff --git a/apps/taro/src/subpackages/my/applyResult/applyResult.vue b/apps/taro/src/subpackages/my/applyResult/applyResult.vue
index c916847..297ffab 100644
--- a/apps/taro/src/subpackages/my/applyResult/applyResult.vue
+++ b/apps/taro/src/subpackages/my/applyResult/applyResult.vue
@@ -26,9 +26,7 @@
 
 const router = Taro.useRouter();
 const { blLifeRecharge } = useLifeRechargeContext();
-
-const channelConsultationId = router.params?.channelConsultationId ?? '';
-console.log('channelConsultationId: ', channelConsultationId);
+const consultationId = router.params?.consultationId ?? '';
 
 async function getPromoter(phoneNumber: string) {
   try {
@@ -42,7 +40,7 @@
 async function getChannelConsultationById() {
   try {
     let params: APIgetChannelConsultationByIdParams = {
-      id: channelConsultationId,
+      id: consultationId,
     };
     return await blLifeRecharge.services.getChannelConsultationById(params);
   } catch (error) {}
@@ -61,7 +59,7 @@
 
 async function generate() {
   try {
-    if (channelConsultationId) {
+    if (consultationId) {
       let res = await getChannelConsultationById();
       if (res) {
         let promoterIdNumber = await getPromoter(res.phoneNumber);
@@ -78,7 +76,6 @@
           }
         }
       }
-    } else {
     }
   } catch (error) {}
 }
diff --git a/packages/components/src/views/Mine/ApplyAgentView.vue b/packages/components/src/views/Mine/ApplyAgentView.vue
index 38a3938..bb671f4 100644
--- a/packages/components/src/views/Mine/ApplyAgentView.vue
+++ b/packages/components/src/views/Mine/ApplyAgentView.vue
@@ -77,7 +77,7 @@
 });
 
 const emit = defineEmits<{
-  (e: 'submit', value: string): void;
+  (e: 'submit', consultationId: string): void;
 }>();
 
 const router = Taro.useRouter();

--
Gitblit v1.9.1