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... +
- +
BD
-
2025.10.01-2025.10.15:
+
{{ BDData.billTitle }}
- Team total recharge: $400 Team total salary: $400 + Team total recharge: ${{ BDData.totalRecharge }} Team total salary: ${{ + BDData.totalSalary + }}
- aaaaa + {{ BDInfo.agentName }}
- ID: 321654 + ID: {{ BDInfo.agentAccount }}
-
Salary: $100
-
Recharge: $500
-
Host:8
+
+ Salary: ${{ BDInfo.teamSalaryAmount }} +
+
+ Recharge: ${{ BDInfo.teamRechargeAmount }} +
+
Host:{{ BDInfo.teamMemberCount }}
@@ -241,8 +249,12 @@ >
-
Total income:$1000
-
Previous period income:$1000
+
+ Total income:${{ BDSalary.totalIncome }} +
+
+ Previous period income:${{ BDSalary.previousPeriodIncome }} +
@@ -259,22 +271,28 @@ --> - -