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 @@