diff --git a/api/appUser.js b/api/appUser.js index b59a53d..88b6d8e 100644 --- a/api/appUser.js +++ b/api/appUser.js @@ -271,6 +271,10 @@ export function getUserInvites(user_id, page = 1, page_size = 20) { // 兼容性适配接口 (适配 pages/mine/index.vue) // ============================================ +export function bindInviter(invite_code) { + return authRequest({ url: '/api/app/users/inviter/bind', method: 'POST', data: { invite_code } }) +} + // ============================================ // 用户信息修改 API // ============================================ diff --git a/pages/mine/index.vue b/pages/mine/index.vue index a824ae8..bf7b2a2 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -157,6 +157,12 @@ 任务中心 + + + + + 填写邀请码 + @@ -492,13 +498,31 @@ + + + + + 填写邀请码 + × + + + 请输入好友的邀请码,绑定后双方可获得奖励 + + + + + + + +