From c1f59759f7fa2305041678d75e344667cb4edda1 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 22 May 2025 16:25:47 +0800
Subject: [PATCH] =?UTF-8?q?feat(market):=20=E4=BF=AE=E6=94=B9=E5=AF=86?=
=?UTF-8?q?=E7=A0=81=E5=8A=9F=E8=83=BD=E5=8D=87=E7=BA=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加验证旧密码功能- 新增上一步按钮,优化用户体验
- 完善新密码设置流程,增加密码长度和一致性校验
- 实现密码修改后的成功提示和自动跳转到个人中心
- 优化页面样式,调整按钮布局
---
api/apiRoute.js | 16 ++++
pages/market/my/update_pass.vue | 165 +++++++++++++++++++++++++++-----
2 files changed, 159 insertions(+), 22 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index c0f67d8..7903f78 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -52,6 +52,22 @@ export default {
return res;
})
},
+ //公共端-教师/销售端验证旧密码是否正确
+ common_personnelCheckOldPwd(data = {}) {
+ let url = '/personnel/checkOldPwd'
+ return http.post(url, data).then(res => {
+ return res;
+ })
+ },
+
+ //公共端-教师/销售端验证旧密码是否正确
+ common_personnelEdidPassword(data = {}) {
+ let url = '/personnel/edidPassword'
+ return http.post(url, data).then(res => {
+ return res;
+ })
+ },
+
diff --git a/pages/market/my/update_pass.vue b/pages/market/my/update_pass.vue
index 3544848..486fe37 100644
--- a/pages/market/my/update_pass.vue
+++ b/pages/market/my/update_pass.vue
@@ -2,7 +2,7 @@
- 1.验证手机号码
+ 1.验证旧密码
2.设置新密码
@@ -12,24 +12,36 @@
为保障您的账号安全,修改密码前请填写原密码
-
-
-
- 下一步
- 提交
+
+ 上一步
+
+
+ 下一步
+
+ 提交
+
+
+
忘记原密码
@@ -39,36 +51,139 @@
@@ -104,4 +219,10 @@
color: #999999;
padding-left: 30rpx;
}
+
+ .btn_box{
+ display: flex;
+ flex-direction: column;
+ gap: 40rpx;
+ }
\ No newline at end of file