From 1d830dc30c1d4b0071fc22c72a0cd3822c987991 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 09 六月 2025 10:31:16 +0800
Subject: [PATCH] fix: v1.4

---
 apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue |   17 ++++++++
 packages/core/src/lifeRechargeConstants.ts                         |   15 +++++++
 packages/core/src/lifeRechargeServices.ts                          |   29 ++++++++------
 3 files changed, 49 insertions(+), 12 deletions(-)

diff --git a/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue b/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue
index 760d6d4..7f10ab2 100644
--- a/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue
+++ b/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue
@@ -40,6 +40,7 @@
 import { RouterPath, OssAssets } from '@/constants';
 import { Image } from '@tarojs/components';
 import Taro from '@tarojs/taro';
+import { useLifeRechargeContext } from '@life-payment/core-vue';
 
 defineOptions({
   name: 'AgentRecruitment',
@@ -49,6 +50,12 @@
 
 const promoterIdNumber = router.params?.promoterIdNumber ?? '';
 
+onMounted(()=>{
+  if(promoterIdNumber){
+    setClickCount()
+  }
+})
+
 function submit() {
   RouteHelper.navigateTo({
     url: promoterIdNumber
@@ -56,6 +63,16 @@
       : RouterPath.applyAgent,
   });
 }
+
+const { blLifeRecharge } = useLifeRechargeContext();
+
+async function setClickCount() {
+  try {
+    let res = await blLifeRecharge.services.setClickCount({
+      idnumber: promoterIdNumber,
+    });
+  } catch (error) {}
+}
 </script>
 
 <style lang="scss">
diff --git a/packages/core/src/lifeRechargeConstants.ts b/packages/core/src/lifeRechargeConstants.ts
index 6d3d950..4904582 100644
--- a/packages/core/src/lifeRechargeConstants.ts
+++ b/packages/core/src/lifeRechargeConstants.ts
@@ -210,4 +210,19 @@
     /**宸插紑閫� */
     Open = 1,
   }
+
+  export enum LifePayChannelAgentType {
+    /**闆跺敭浠g悊 */
+    RetailAgent = 1,
+    /**鍝佺墝浠g悊 */
+    BrandAgent = 2,
+    /**鍖哄煙浠g悊 */
+    AreaAgent = 3,
+  }
+
+  export const LifePayChannelAgentTypeText = {
+    [LifePayChannelAgentType.RetailAgent]: '闆跺敭浠g悊',
+    [LifePayChannelAgentType.BrandAgent]: '鍝佺墝浠g悊',
+    [LifePayChannelAgentType.AreaAgent]: '鍖哄煙浠g悊',
+  };
 }
diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts
index 39398ad..e612ef8 100644
--- a/packages/core/src/lifeRechargeServices.ts
+++ b/packages/core/src/lifeRechargeServices.ts
@@ -411,12 +411,9 @@
     });
   }
 
-  /** 鏂板鍥炶 POST /api/Promoter/CreateChannelConsultationFollowup */
-  async createChannelConsultationFollowup(
-    body: CreateChannelConsultationFollowupInput,
-    options?: RequestConfig
-  ) {
-    return this.request<string>('/api/Promoter/CreateChannelConsultationFollowup', {
+  /** 鐢宠娓犻亾鍜ㄨ POST /api/Promoter/CreateChannelConsultation */
+  async createChannelConsultation(body: CreateChannelConsultationInput, options?: RequestConfig) {
+    return this.request<string>('/api/Promoter/CreateChannelConsultation', {
       method: 'POST',
       headers: {
         'Content-Type': 'application/json',
@@ -931,10 +928,18 @@
   idnumber?: string;
 }
 
-export interface CreateChannelConsultationFollowupInput {
-  /** 娓犻亾鍜ㄨId */
-  channelConsultationId?: string;
-  followupStatus?: LifeRechargeConstants.LifePayChannelConsultationFollowupStatus;
-  /** 鍥炶璁板綍 */
-  followupRemark?: string;
+export interface CreateChannelConsultationInput {
+  /** 瀹㈡埛绔敤鎴稩d 濡傛湁 */
+  userId?: string;
+  /** 鎺ㄥ箍浜篒d */
+  idNumber?: string;
+  /** 鍜ㄨ浜� */
+  name?: string;
+  agentType?: LifeRechargeConstants.LifePayChannelAgentType;
+  /** 鑱旂郴鏂瑰紡 */
+  phoneNumber?: string;
+  /** 鍏徃鍚嶇О */
+  companyName?: string;
+  /** 瀹㈡埛璧勬簮 */
+  customerResources?: string;
 }

--
Gitblit v1.9.1