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... +