From f8ecfe3ad244bc273eb105b5da4501ab88cb1a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E4=B8=AB=E8=AE=B2=E6=A2=B5?= Date: Thu, 9 Mar 2023 11:37:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E7=9A=84=E9=80=BB=E8=BE=91,=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=AA=8C=E8=AF=81=E7=A0=81=E6=A0=A1=E9=AA=8C=20(#38)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.js | 10 ++- src/views/changePassword/index.vue | 138 +++++++++++++++-------------- 2 files changed, 81 insertions(+), 67 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index 8fba8b7..42c5e8a 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -25,6 +25,14 @@ export function changePwd(data) { data }) } +// 输入邮箱获取验证码 +export function sendCode(data) { + return request({ + url: '/api/base/sendcode', + method: 'post', + data + }) +} // 邮箱更新用户密码(已完成) export function emailPass(data) { return request({ @@ -33,7 +41,7 @@ export function emailPass(data) { data }) } -// 创建用户(已完成) +// 创建用户(已完成) export function createUser(data) { return request({ url: '/api/user/add', diff --git a/src/views/changePassword/index.vue b/src/views/changePassword/index.vue index d7a3714..97705a6 100644 --- a/src/views/changePassword/index.vue +++ b/src/views/changePassword/index.vue @@ -1,95 +1,101 @@