zhengyiming
2025-06-09 1d830dc30c1d4b0071fc22c72a0cd3822c987991
fix: v1.4
3个文件已修改
61 ■■■■ 已修改文件
apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRechargeConstants.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRechargeServices.ts 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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">
packages/core/src/lifeRechargeConstants.ts
@@ -210,4 +210,19 @@
    /**已开通 */
    Open = 1,
  }
  export enum LifePayChannelAgentType {
    /**零售代理 */
    RetailAgent = 1,
    /**品牌代理 */
    BrandAgent = 2,
    /**区域代理 */
    AreaAgent = 3,
  }
  export const LifePayChannelAgentTypeText = {
    [LifePayChannelAgentType.RetailAgent]: '零售代理',
    [LifePayChannelAgentType.BrandAgent]: '品牌代理',
    [LifePayChannelAgentType.AreaAgent]: '区域代理',
  };
}
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 {
  /** 客户端用户Id 如有 */
  userId?: string;
  /** 推广人Id */
  idNumber?: string;
  /** 咨询人 */
  name?: string;
  agentType?: LifeRechargeConstants.LifePayChannelAgentType;
  /** 联系方式 */
  phoneNumber?: string;
  /** 公司名称 */
  companyName?: string;
  /** 客户资源 */
  customerResources?: string;
}