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 @@ + + + + +