You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
584 B

const http = uni.$u.http;
import upload from '@/utils/upload'
//修改个人信息
export function updateProfile(params) {
return http.put('/system/user/profile', params);
}
//用户头像上传
export function uploadAvatar(data) {
return upload({
url: '/system/user/profile/avatar',
method: 'post',
name: data.name,
filePath: data.filePath
})
}
//用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
return http.request({
url: '/system/user/profile/updatePwd?oldPassword=' + oldPassword + '&newPassword=' + newPassword,
method: 'put',
})
}