pc端调整

This commit is contained in:
Jason
2023-01-10 15:57:36 +08:00
parent 678c5a5fb6
commit 79a3959a17
20 changed files with 101 additions and 112 deletions

View File

@@ -7,10 +7,6 @@ export function login(params: any) {
params: { ...params, client: getClient() }
})
}
// // 登录
export function logout() {
return $request.post({ url: '/login/logout' })
}
//注册
export function register(params: any) {
@@ -33,3 +29,8 @@ export function getWxCodeUrl() {
export function wxLogin(params: any) {
return $request.post({ url: '/login/scanLogin', params })
}
//忘记密码
export function forgotPassword(params: Record<string, any>) {
return $request.post({ url: '/login/forgotPassword', params })
}

View File

@@ -19,7 +19,7 @@ export function getArticleList(params) {
* @return { Promise }
*/
export function getArticleCenter() {
return $request.get({ url: '/pc/infoCenter' })
return $request.get({ url: '/pc/articleCenter' })
}
/**

View File

@@ -9,7 +9,7 @@ export function getUserInfo() {
// 个人编辑
export function userEdit(params: any) {
return $request.post({ url: '/user/setInfo', params })
return $request.post({ url: '/user/edit', params })
}
// 绑定手机
@@ -20,17 +20,7 @@ export function userBindMobile(params: any, headers?: any) {
)
}
// 微信电话
export function userMnpMobile(params: any) {
return $request.post({ url: '/user/getMobileByMnp', params })
}
// 更改密码
export function userChangePwd(params: any) {
return $request.post({ url: '/user/changePassword', params })
}
//忘记密码
export function forgotPassword(params: Record<string, any>) {
return $request.post({ url: '/user/resetPassword', params })
return $request.post({ url: '/user/changePwd', params })
}