From 158f6fccd9b87653b5fa02b23f1b817c4bfbc108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E6=9D=B0=E5=88=9A?= <1543758718@qq.com> Date: Wed, 7 May 2025 23:30:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=A1=A8=E5=8D=95=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BB=A3=E7=A0=81=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/apis/type.ts | 11 ++- src/pages/login/index.vue | 177 +++++++++++++++++++++++------------ types/auto/components.d.ts | 10 ++ 3 files changed, 138 insertions(+), 60 deletions(-) diff --git a/src/pages/login/apis/type.ts b/src/pages/login/apis/type.ts index 7b430be..8ef7ffe 100644 --- a/src/pages/login/apis/type.ts +++ b/src/pages/login/apis/type.ts @@ -4,14 +4,21 @@ export interface LoginRequestData { /** 密码 */ password: string, //手机号 - phone: string, + // phone: string, + //手机验证码 + //mobileCode: string +} + +export interface phoneLoginRequestData { + //手机号 + phone: string, //手机验证码 mobileCode: string } export interface forgetRequestData { /** admin 或 editor */ - username: string + // username: string /** 密码 */ password: string, //确认密码 diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 4fdf7b2..a8784ac 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -1,6 +1,10 @@