From bd22acebd4e821fdda60e005b6a9a78669885bd2 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Fri, 30 May 2025 16:40:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(student):=20=E5=AD=A6=E5=91=98=E5=BF=98?= =?UTF-8?q?=E8=AE=B0=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增忘记密码页面,包含验证手机号码和设置新密码两个步骤 - 添加用户类型选择功能,支持学员和员工两种类型 - 实现短信验证码发送和验证功能 - 增加表单验证逻辑,确保用户输入的密码一致且符合要求- 添加重置密码接口调用,完成密码重置流程 --- api/apiRoute.js | 7 + pages/student/login/forgot.vue | 232 +++++++++++++++++++++++++++------ 2 files changed, 200 insertions(+), 39 deletions(-) diff --git a/api/apiRoute.js b/api/apiRoute.js index 8fd04e3..db7a892 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -88,6 +88,13 @@ export default { return res; }) }, + //公共端-忘记密码-通过短信验证码进行密码重置(学生/员工通用) + common_forgetPassword(data = {}) { + let url = '/common/forgetPassword' + return http.post(url, data).then(res => { + return res; + }) + }, diff --git a/pages/student/login/forgot.vue b/pages/student/login/forgot.vue index d91ac04..f26877b 100644 --- a/pages/student/login/forgot.vue +++ b/pages/student/login/forgot.vue @@ -1,55 +1,99 @@