From cdfe233ea8f5496c4ea7fc55dd3606f7f4f88dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=96=B9=E6=88=90?= Date: Wed, 4 Feb 2026 13:09:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E9=82=80=E8=AF=B7=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/appUser.js | 4 + pages/mine/index.vue | 182 +++++++++++++++++++++++++++++++++---------- utils/request.js | 2 +- 3 files changed, 148 insertions(+), 40 deletions(-) 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 @@ + + + + + 填写邀请码 + × + + + 请输入好友的邀请码,绑定后双方可获得奖励 + + + + + + + +