From 44020afbe01aee65a856496c497915be1eb3bddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rhett=E9=9C=8D?= <741354752@qq.com> Date: Mon, 23 Mar 2026 13:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=BE=AE=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E5=AE=9E=E7=8E=B0=E8=87=AA=E5=8A=A8=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/login.js | 18 ++++ pages/login.vue | 199 +++++++++++++++++++++++++++++++++++------- store/modules/user.js | 1 + 3 files changed, 188 insertions(+), 30 deletions(-) diff --git a/api/login.js b/api/login.js index 6ce7e7c..55ee3e8 100644 --- a/api/login.js +++ b/api/login.js @@ -57,3 +57,21 @@ export function getCodeImg() { timeout: 20000 }) } + +// 微信自动登录 +export function autoLogin(data) { + return request({ + 'url': '/weixin/auth/autoLogin', + 'data':data, + 'method': 'post' + }) +} + +// 微信-登录绑定微信号 +export function autobind(data) { + return request({ + 'url': '/weixin/auth/bind', + 'data':data, + 'method': 'post' + }) +} \ No newline at end of file diff --git a/pages/login.vue b/pages/login.vue index 4401d80..71e18e0 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -39,8 +39,8 @@