From ec08e2f581ae6ade720dff3f8649cc6ce522c874 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Tue, 20 May 2025 12:38:33 +0800
Subject: [PATCH] =?UTF-8?q?refactor(market):=20=E9=87=8D=E6=9E=84=E5=B8=82?=
=?UTF-8?q?=E5=9C=BA=E6=A8=A1=E5=9D=97=E7=BA=BF=E7=B4=A2=E7=9B=B8=E5=85=B3?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改 apiRoute.js,添加新的资源共享详情接口
- 重构 clue_info.vue 页面,适配新的数据结构
- 更新 index.vue 页面,调整线索列表和详情的显示逻辑
-优化用户体验,统一意向等级的显示方式
---
api/apiRoute.js | 9 ++++
pages/market/clue/clue_info.vue | 80 +++++++++++++++++----------------
pages/market/clue/index.vue | 16 +++----
3 files changed, 59 insertions(+), 46 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index 3459dda..238abee 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -160,6 +160,15 @@ export default {
return res;
})
},
+ //销售端-资源共享-详情(客户资源详情)
+ xs_resourceSharingInfo(data = {}) {
+ let url = '/resourceSharing/info'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
+
diff --git a/pages/market/clue/clue_info.vue b/pages/market/clue/clue_info.vue
index a03e384..91e17b5 100644
--- a/pages/market/clue/clue_info.vue
+++ b/pages/market/clue/clue_info.vue
@@ -9,31 +9,34 @@
-
- {{ clientInfo.student_name }}
+
+ {{ clientInfo.customerResource.name }}
- {{ clientInfo.follow.follow_up_time}} 跟进
+ {{ $util.formatToDateTime((clientInfo.customerResource.updated_at || ''),'m-d H:i') }} 跟进
-
-
-
+
+
- 意向:{{ clientInfo.follow.initial_customer_intent }}
+ 意向:{{ clientInfo.customerResource.initial_intent_name }}
-
-
-
- 重点关注
+
+
+
+
@@ -61,23 +64,23 @@
来源渠道
- {{clientInfo.source_channel}}
+ {{clientInfo.customerResource.source_channel_name}}
来源
- {{clientInfo.customer_source}}
+ {{clientInfo.customerResource.source_name}}
顾问
- {{clientInfo.gw}}
+ {{clientInfo.customerResource.consultant_name}}
学生姓名
- {{clientInfo.student_name}}
+ {{clientInfo.customerResource.name}}
性别
- {{clientInfo.sex == 1 ? '男':'女'}}
+ {{clientInfo.customerResource.gender_name}}
@@ -85,11 +88,11 @@
已成交次数
- {{clientInfo.cj_count}}次
+ {{clientInfo.customerResource.cj_count || 0}}次
体验课程
- {{clientInfo.ty_count}}次
+ {{clientInfo.customerResource.trial_class_count}}次
@@ -255,15 +258,16 @@
- 添加跟进记录
+ 编辑详情
拨打电话
- 转交跟进任务
+ 修改记录