From c25c762385b9efc114e53230fab58e1ed9c1ec3a Mon Sep 17 00:00:00 2001 From: Jruome <2559028966@qq.com> Date: Tue, 30 May 2023 17:15:26 +0800 Subject: [PATCH] =?UTF-8?q?uniapp=20=E9=94=80=E5=94=AE=E4=B8=9A=E7=BB=A9?= =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/api/member.js | 14 ++++ yudao-ui-app/pages/sale_performance/index.vue | 78 +++++++++++------- yudao-ui-app/static/images/money2.png | Bin 8910 -> 10755 bytes .../static/images/tabbar/nav_icon_member.png | Bin 5472 -> 6095 bytes .../images/tabbar/nav_icon_member_active.png | Bin 11380 -> 9738 bytes yudao-ui-app/static/images/user_1.png | Bin 5656 -> 5632 bytes 6 files changed, 64 insertions(+), 28 deletions(-) diff --git a/yudao-ui-app/api/member.js b/yudao-ui-app/api/member.js index 5b62e3e21..3a93f9b33 100644 --- a/yudao-ui-app/api/member.js +++ b/yudao-ui-app/api/member.js @@ -62,3 +62,17 @@ export function memberTopUp(data) { export function memberApplyRefund(data) { return request.post('api/order/member/memberApplyRefund',data); } + +/** + * "获取当前登录账号为推广员的推广会员记录 + */ +export function promoterOrderInfo(data) { + return request.post('api/order/member/promoterOrderInfo',data); +} + +/** + * "获取当前登录发展会员数量统计 + */ +export function promoterOrderCount(type) { + return request.get(`api/order/member/promoterOrderCount?type=${type}`); +} diff --git a/yudao-ui-app/pages/sale_performance/index.vue b/yudao-ui-app/pages/sale_performance/index.vue index a5b104ab9..1d1d20557 100644 --- a/yudao-ui-app/pages/sale_performance/index.vue +++ b/yudao-ui-app/pages/sale_performance/index.vue @@ -2,9 +2,9 @@ - + @@ -16,7 +16,7 @@ 总计金额 - 2400 + {{orderDetail.totalAmount}} @@ -24,7 +24,7 @@ 已发展会员个数 - 10个 + {{orderDetail.memberCount}}个 @@ -33,7 +33,7 @@ 提成比例 - 5% + {{orderDetail.memberCommission}}% @@ -42,7 +42,7 @@ 预计提成金额 - 120 + {{parseFloat(orderDetail.totalAmount*(parseFloat(orderDetail.memberCommission) / 100))}} @@ -51,27 +51,23 @@ 流水明细 + + - 客户1 + {{item.nickname}} - ¥640.00 - - - - - 客户1 + ¥{{item.payPrice}} - ¥640.00 - - - - - 客户1 - - ¥640.00 - + + @@ -80,11 +76,12 @@