From 8237e3ef42ddc82f2ee7e4be965bfc2e235c66a6 Mon Sep 17 00:00:00 2001 From: tsui110 Date: Fri, 2 Jan 2026 11:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86=E6=8A=96=E9=9F=B3?= =?UTF-8?q?=E7=99=BB=E5=BD=95=EF=BC=8C=E5=8C=BA=E5=88=86=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=9A=84=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/appUser.js | 6 ++ pages/login/index.vue | 180 ++++++++++++++++++++++++++++++++++-------- 2 files changed, 153 insertions(+), 33 deletions(-) diff --git a/api/appUser.js b/api/appUser.js index a2e9142..133d054 100644 --- a/api/appUser.js +++ b/api/appUser.js @@ -5,6 +5,12 @@ export function wechatLogin(code, invite_code) { return request({ url: '/api/app/users/weixin/login', method: 'POST', data }) } +// 抖音小程序登录 +export function toutiaoLogin(code, invite_code) { + const data = invite_code ? { code, invite_code } : { code } + return request({ url: '/api/app/users/toutiao/login', method: 'POST', data }) +} + // ============================================ // 短信登录 API // ============================================ diff --git a/pages/login/index.vue b/pages/login/index.vue index 92c7292..12d5e6f 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -17,15 +17,26 @@ - + - 手机号快捷登录 + 微信快捷登录 - + + + 抖音快捷登录 + + + @@ -37,6 +48,7 @@ +