From ed92c7c78f5502ca7765bd35219cd0d2d4036af6 Mon Sep 17 00:00:00 2001
From: bjang03 <259278618@qq.com>
Date: Wed, 9 Oct 2024 14:19:28 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=A0=A1=E9=AA=8C=E5=AF=86?=
=?UTF-8?q?=E7=A0=81=E6=98=AF=E5=90=A6=E7=AC=A6=E5=90=88=E5=AF=86=E7=A0=81?=
=?UTF-8?q?=E7=AD=96=E7=95=A5=EF=BC=8C=E4=B8=8D=E7=AC=A6=E5=90=88=E5=88=99?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/request2.js | 15 +++-
src/pages.json | 7 ++
src/pages/setter/loginPwdUpdate.vue | 126 ++++++++++++++++++++++++++++
3 files changed, 147 insertions(+), 1 deletion(-)
create mode 100644 src/pages/setter/loginPwdUpdate.vue
diff --git a/src/api/request2.js b/src/api/request2.js
index 2f8668c8..f774ca73 100644
--- a/src/api/request2.js
+++ b/src/api/request2.js
@@ -81,6 +81,7 @@ export function getUserProfile() {
method: 'get'
})
}
+
/**
* 修改个人用户密码
*/
@@ -95,7 +96,19 @@ export function updateUserPwd(oldPassword, newPassword) {
data: data
})
}
-
+export function loginUpdateUserPwd(userName,oldPassword, password,againPassword) {
+ const data = {
+ userName,
+ oldPassword,
+ password,
+ againPassword
+ }
+ return request({
+ url: baseApi + '/system/user/updatePassword',
+ method: 'PUT',
+ data: data
+ })
+}
/**
* 获取仓库代码
* @param {*}
diff --git a/src/pages.json b/src/pages.json
index 61420e80..ac7b1728 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -156,6 +156,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/setter/loginPwdUpdate",
+ "style": {
+ "navigationBarTitleText": "修改密码",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "pages/supplierDeliver/record/supplierDeliverRecord",
"style": {
diff --git a/src/pages/setter/loginPwdUpdate.vue b/src/pages/setter/loginPwdUpdate.vue
new file mode 100644
index 00000000..1f9bec84
--- /dev/null
+++ b/src/pages/setter/loginPwdUpdate.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+