From b15fb02ecfa53eb4755cde2ca318542790d06c75 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 5 Sep 2023 21:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BD=A3=EF=BC=9Acommission-rank=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/member/brokerage.js | 21 ----- api/trade/brokerage.js | 31 +++++++ pages/users/commission_rank/index.vue | 112 ++++++++++++------------ pages/users/promoter-order/index.vue | 2 +- pages/users/promoter_rank/index.vue | 23 ++--- pages/users/user_spread_code/index.vue | 5 +- pages/users/user_spread_money/index.vue | 2 +- pages/users/user_spread_user/index.vue | 2 +- utils/date.js | 26 ++++++ 9 files changed, 123 insertions(+), 101 deletions(-) delete mode 100644 api/member/brokerage.js create mode 100644 api/trade/brokerage.js create mode 100644 utils/date.js diff --git a/api/member/brokerage.js b/api/member/brokerage.js deleted file mode 100644 index bb056e08..00000000 --- a/api/member/brokerage.js +++ /dev/null @@ -1,21 +0,0 @@ -import request from "@/utils/request.js"; - -// 获得个人分销统计 -export function getBrokerageUserSummary() { - return request.get('app-api/member/brokerage-user/get-summary'); -} - -// 获得分销用户排行分页 -export function getBrokerageUserRankPage(data) { - return request.get('app-api/member/brokerage-user/rank-page', data); -} - -// 获得分销提现分页记录 -export function getBrokerageWithdrawPage(data) { - return request.get('app-api/member/brokerage-withdraw/page', data); -} - -// 获得分销记录分页 -export function getBrokerageRecordPage(data) { - return request.get('app-api/member/brokerage-record/page', data); -} diff --git a/api/trade/brokerage.js b/api/trade/brokerage.js new file mode 100644 index 00000000..70202bad --- /dev/null +++ b/api/trade/brokerage.js @@ -0,0 +1,31 @@ +import request from "@/utils/request.js"; + +// 获得个人分销统计 +export function getBrokerageUserSummary() { + return request.get('app-api/trade/brokerage-user/get-summary'); +} + +// 获得分销用户排行分页(基于用户量) +export function getBrokerageUserRankPageByUserCount(data) { + return request.get('app-api/trade/brokerage-user/rank-page-by-user-count', data); +} + +// 获得分销用户排行(基于佣金) +export function getBrokerageUserRankByPrice(data) { + return request.get('app-api/trade/brokerage-user/get-rank-by-price', data); +} + +// 获得分销用户排行分页(基于佣金) +export function getBrokerageUserRankPageByPrice(data) { + return request.get('app-api/trade/brokerage-user/rank-page-by-price', data); +} + +// 获得分销提现分页记录 +export function getBrokerageWithdrawPage(data) { + return request.get('app-api/trade/brokerage-withdraw/page', data); +} + +// 获得分销记录分页 +export function getBrokerageRecordPage(data) { + return request.get('app-api/trade/brokerage-record/page', data); +} diff --git a/pages/users/commission_rank/index.vue b/pages/users/commission_rank/index.vue index 3cecd719..f9162a3d 100644 --- a/pages/users/commission_rank/index.vue +++ b/pages/users/commission_rank/index.vue @@ -7,63 +7,49 @@ - + {{ item }} - + - {{index+1}} + {{index + 1}} - {{item.nickname}} + {{ item.nickname }} - ¥{{item.brokeragePrice}} + ¥{{ fen2yuan(item.brokeragePrice) }} - + - - - -