diff --git a/sheep/api/member/user.js b/sheep/api/member/user.js index f0aba4ce..38ed1103 100644 --- a/sheep/api/member/user.js +++ b/sheep/api/member/user.js @@ -1,6 +1,19 @@ import request from '@/sheep/request2'; const UserApi = { + // 修改密码 + updateUserPassword: (data) => { + return request({ + url: '/app-api/member/user/update-password', + method: 'PUT', + data, + custom: { + loadingMsg: '验证中', + showSuccess: true, + successMsg: '修改成功' + }, + }); + }, // 重置密码 resetUserPassword: (data) => { return request({ diff --git a/sheep/api/user.js b/sheep/api/user.js index ee153b7f..6021a106 100644 --- a/sheep/api/user.js +++ b/sheep/api/user.js @@ -93,18 +93,6 @@ export default { }, }), - // 修改密码 - changePassword: (data) => - request({ - url: '/user/api/user/changePassword', - method: 'POST', - data, - custom: { - showSuccess: true, - loadingMsg: '验证中', - }, - }), - // 绑定、更换手机号 changeMobile: (data) => request({ @@ -117,18 +105,6 @@ export default { }, }), - // 修改用户名 - changeUsername: (data) => - request({ - url: '/user/api/user/changeUsername', - method: 'POST', - data, - custom: { - showSuccess: true, - loadingMsg: '验证中', - }, - }), - // 更新小程序信息 updateMpUserInfo: (data) => request({ diff --git a/sheep/components/s-auth-modal/components/change-password.vue b/sheep/components/s-auth-modal/components/change-password.vue index 0e0af5cc..b02ea021 100644 --- a/sheep/components/s-auth-modal/components/change-password.vue +++ b/sheep/components/s-auth-modal/components/change-password.vue @@ -1,4 +1,4 @@ - +