From 695e750841152e2d8337474798473e45bd61deb9 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 30 Oct 2025 22:15:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(BD=E4=B8=AD=E5=BF=83):=20=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5BD=E6=88=90=E5=91=98=E8=B4=A6=E5=8D=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=92=8C=E5=8E=86=E5=8F=B2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bdCenter.js | 38 ++++++------- src/views/BDCenterView.vue | 111 ++++++++++++++++++++++++++++--------- 2 files changed, 105 insertions(+), 44 deletions(-) diff --git a/src/api/bdCenter.js b/src/api/bdCenter.js index bb26a18..4cc1303 100644 --- a/src/api/bdCenter.js +++ b/src/api/bdCenter.js @@ -60,6 +60,17 @@ export const cancelInvite = async (userId) => { } } +// 提交提现申请 +export const withdrawApply = async (data) => { + try { + const response = await post('/team/bd/withdraw/apply', data) + return response + } catch (error) { + console.error('Failed to fetch withdraw apply:', error) + throw error + } +} + // 查询BD成员账单列表 export const getBdMemberBillList = async (type) => { try { @@ -72,37 +83,26 @@ export const getBdMemberBillList = async (type) => { } } -// 查询BD成员账单明细 -export const getBdMemberBillDetailList = async (teamId) => { +// 查询BD历史记录 +export const getBdHistory = async () => { try { - const response = await get(`/team/bd/member-bill/detail-list`, { teamId }) + const response = await get(`/team/bd/history`) return response } catch (error) { - console.error('Failed to fetch BD member bill detail list:', error) + console.error('Failed to fetch BD history:', error) console.error('error:' + error.response.errorMsg) throw error } } -// 查询BD团队月度收入汇总 -export const getBdMonthlyIncome = async (bdUserId) => { +// 查询BD Leader历史记录 +export const getBdLeaderHistory = async () => { try { - const response = await get(`/team/bd/monthly-income`, { bdUserId }) + const response = await get(`/team/bd/leader/history`) return response } catch (error) { - console.error('Failed to fetch BD monthly income:', error) + console.error('Failed to fetch BD leader history:', error) console.error('error:' + error.response.errorMsg) throw error } } - -// 提交提现申请 -export const withdrawApply = async (data) => { - try { - const response = await post('/team/bd/withdraw/apply', data) - return response - } catch (error) { - console.error('Failed to fetch withdraw apply:', error) - throw error - } -} diff --git a/src/views/BDCenterView.vue b/src/views/BDCenterView.vue index 98c169f..da4d7e4 100644 --- a/src/views/BDCenterView.vue +++ b/src/views/BDCenterView.vue @@ -29,6 +29,7 @@ 正在连接APP... +