From 27321bda16d2b54e0bb073e49ac01fb5a90b3a1f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 5 Sep 2023 23:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BD=A3=EF=BC=9Apromoter-list=20?= =?UTF-8?q?=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/trade/brokerage.js | 5 + pages/users/promoter-list/index.vue | 183 +++++++++++++--------------- pages/users/promoter_rank/index.vue | 6 +- 3 files changed, 90 insertions(+), 104 deletions(-) diff --git a/api/trade/brokerage.js b/api/trade/brokerage.js index 70202bad..c8b63609 100644 --- a/api/trade/brokerage.js +++ b/api/trade/brokerage.js @@ -5,6 +5,11 @@ export function getBrokerageUserSummary() { return request.get('app-api/trade/brokerage-user/get-summary'); } +// 获得下级分销统计分页 +export function getBrokerageUserChildSummaryPage(data) { + return request.get('app-api/trade/brokerage-user/child-summary-page', data); +} + // 获得分销用户排行分页(基于用户量) export function getBrokerageUserRankPageByUserCount(data) { return request.get('app-api/trade/brokerage-user/rank-page-by-user-count', data); diff --git a/pages/users/promoter-list/index.vue b/pages/users/promoter-list/index.vue index 7399028b..674cc275 100644 --- a/pages/users/promoter-list/index.vue +++ b/pages/users/promoter-list/index.vue @@ -5,50 +5,50 @@ 推广人数 - {{peopleData.count}} + {{peopleData.firstBrokerageUserCount + peopleData.secondBrokerageUserCount}} - 一级({{peopleData.total}}) - 二级({{peopleData.totalLevel}}) + 一级({{peopleData.firstBrokerageUserCount}}) + 二级({{peopleData.secondBrokerageUserCount}}) - - 团队排序 + 团队排序 - 团队排序 + 团队排序 - 团队排序 + 团队排序 - + 金额排序 - 金额排序 + 金额排序 - 金额排序 + 金额排序 - 订单排序 + 订单排序 - 订单排序 + 订单排序 - 订单排序 + 订单排序 @@ -60,83 +60,70 @@ {{item.nickname}} - 加入时间: {{item.time.split(' ')[0]}} + 加入时间: {{ formatDate(item.brokerageTime) }} - {{item.childCount ? item.childCount : 0}}人 + {{ item.brokerageUserCount || 0}} - {{item.orderCount ? item.orderCount : 0}} - {{item.numberCount ? item.numberCount : 0}} + {{ item.orderCount|| 0}} + {{ fen2yuan(item.brokeragePrice || 0) }} - + - - - -