| | |
| | | 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', |
| | |
| | | |
| | | const promoterIdNumber = router.params?.promoterIdNumber ?? ''; |
| | | |
| | | onMounted(()=>{ |
| | | if(promoterIdNumber){ |
| | | setClickCount() |
| | | } |
| | | }) |
| | | |
| | | function submit() { |
| | | RouteHelper.navigateTo({ |
| | | url: promoterIdNumber |
| | |
| | | : RouterPath.applyAgent, |
| | | }); |
| | | } |
| | | |
| | | const { blLifeRecharge } = useLifeRechargeContext(); |
| | | |
| | | async function setClickCount() { |
| | | try { |
| | | let res = await blLifeRecharge.services.setClickCount({ |
| | | idnumber: promoterIdNumber, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | |
| | | /**已开通 */ |
| | | Open = 1, |
| | | } |
| | | |
| | | export enum LifePayChannelAgentType { |
| | | /**零售代理 */ |
| | | RetailAgent = 1, |
| | | /**品牌代理 */ |
| | | BrandAgent = 2, |
| | | /**区域代理 */ |
| | | AreaAgent = 3, |
| | | } |
| | | |
| | | export const LifePayChannelAgentTypeText = { |
| | | [LifePayChannelAgentType.RetailAgent]: '零售代理', |
| | | [LifePayChannelAgentType.BrandAgent]: '品牌代理', |
| | | [LifePayChannelAgentType.AreaAgent]: '区域代理', |
| | | }; |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 新增回访 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', |
| | |
| | | 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; |
| | | } |