From e027c6e3ee42e338292750d15c29519371ba895c Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 17 Apr 2025 12:19:28 +0800
Subject: [PATCH] =?UTF-8?q?feat(market):=20=E6=B7=BB=E5=8A=A0=E9=94=80?=
=?UTF-8?q?=E5=94=AE=E7=AB=AF=E9=A6=96=E9=A1=B5=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增 xsIndex 方法获取销售首页数据
- 在页面中显示目标、预测、成交等业绩信息
- 动态显示待领取、待释放、待协作等数据
- 优化页面布局和样式
---
api/market.js | 8 +++
pages/market/index/index.vue | 130 +++++++++++++++++++++--------------
2 files changed, 87 insertions(+), 51 deletions(-)
diff --git a/api/market.js b/api/market.js
index 6e7217b..aa1bb49 100644
--- a/api/market.js
+++ b/api/market.js
@@ -133,6 +133,14 @@ export default {
})
},
+ //销售端首页
+ xsIndex(data = {}) {
+ let url = '/member/xs_index'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
diff --git a/pages/market/index/index.vue b/pages/market/index/index.vue
index 64aaf5d..25179fa 100644
--- a/pages/market/index/index.vue
+++ b/pages/market/index/index.vue
@@ -24,7 +24,7 @@
目标
- 50.000元
+ {{infoData.goal}}元
@@ -33,7 +33,7 @@
预测
- 50.000元
+ {{infoData.yc_yj}}元
@@ -42,37 +42,39 @@
成交
- 50.000元
-
-
-
-
-
-
- 定金
-
- 50.000元
+ {{infoData.cj_yj}}元
+
+
+
+
+
+
+
+
+
-
+
08月01日-08月30日
目标 100%
+
目标 1%
+
目标 20%
-
- 目标 8%
-
-
+
+
+
+
@@ -85,6 +87,7 @@
本月业绩
+
@@ -102,9 +105,9 @@
- 待联系
+ 待领取
- 50个
+ {{infoData.dlq}}个
@@ -115,28 +118,31 @@
待释放
- 50个
-
-
-
-
-
-
- 合同审核中
-
- 50个
+ {{infoData.dsf}}个
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 待协作
+
+ {{infoData.dxz}}个
+
+
-
-
-
-
-
- 待协作
-
- 50个
-
+
@@ -144,7 +150,7 @@
消息
- 50个
+ {{infoData.xx}}个
@@ -156,20 +162,42 @@