From 9e225417a65fe116928ff5a86d78cd41d2deb491 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Wed, 15 Oct 2025 22:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BE=AE=E4=BF=A1=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E7=99=BB=E5=BD=95=E5=8A=9F=E8=83=BD=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/personal-center/index.ts | 12 ++++- components/wx.vue | 69 +++++++++++++++++++++++++++-- pages/home/components/LoginForm.vue | 12 ++--- pages/index.vue | 2 +- 4 files changed, 81 insertions(+), 14 deletions(-) diff --git a/api/personal-center/index.ts b/api/personal-center/index.ts index 2321413..a2f02b4 100644 --- a/api/personal-center/index.ts +++ b/api/personal-center/index.ts @@ -184,5 +184,15 @@ export const getWalletConfig = () => { */ export const getLoginQrcode = () => { - return useDollarFetchRequest.get>('/prod-api/app-api/member/auth/wx-login-url', {}) + return useDollarFetchRequest.get>('/prod-api/app-api/member/auth/wx-login-url', {}) +} + +/*** + * member/auth/checkScanStatus + * 检查扫码登录状态 + */ +export const checkScanStatus = (params: { sceneStr: string }) => { + return useDollarFetchRequest.get>('/prod-api/app-api/member/auth/checkScanStatus', { + query: params, + }) } diff --git a/components/wx.vue b/components/wx.vue index e9f69f9..02f06f0 100644 --- a/components/wx.vue +++ b/components/wx.vue @@ -5,24 +5,87 @@
- 请使用微信扫描二维码登录 + {{ checkLoginStatus }}