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 }}