diff --git a/src/api/wallet.js b/src/api/wallet.js index 5c13bd7..01ce27e 100644 --- a/src/api/wallet.js +++ b/src/api/wallet.js @@ -115,6 +115,26 @@ export function getFreightWaterFlow(userId) { return get(`/wallet/freight/balance/running/water/client/flowByUserId?userId=${userId}`) } +/** + * 根据账号搜索团队 + * @param {string} account - 代理账号 + * @returns {Promise} 返回团队信息 + */ +export function searchTeamByAccount(account) { + return get(`/team/search-account?account=${account}`) +} + +/** + * 发送加入团队申请 + * @param {Object} data - 申请数据 + * @param {string} data.teamId - 团队ID + * @param {string} data.reason - 申请原因 + * @returns {Promise} 返回申请结果 + */ +export function sendTeamApplyJoin(data) { + return post('/team/user/apply', data) +} + /** * 格式化时间戳为可读格式 * @param {number} timestamp - 时间戳(毫秒) diff --git a/src/views/ApplyView.vue b/src/views/ApplyView.vue index 2982390..6c1181c 100644 --- a/src/views/ApplyView.vue +++ b/src/views/ApplyView.vue @@ -1,377 +1,408 @@ -