增加找回密码的功能

This commit is contained in:
Sakura-RanChen
2025-05-19 14:15:28 +08:00
parent 737c4a6b5d
commit f242d43f73
4 changed files with 309 additions and 0 deletions
+24
View File
@@ -169,4 +169,28 @@ export default {
});
}).send();
},
// 找回用户密码
retrievePassword(passwordData, callback, failCallback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/user/retrieve-password`)
.method('PUT')
.data({
phone: passwordData.phone,
code: passwordData.code,
password: passwordData.password
})
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.fail((err) => {
RequestService.clearRequestTime();
failCallback(err);
})
.networkFail(() => {
RequestService.reAjaxFun(() => {
this.retrievePassword(passwordData, callback, failCallback);
});
}).send()
}
}