diff --git a/yudao-ui-app/common/api.js b/yudao-ui-app/common/api.js index 0ba9e579f..307b37505 100644 --- a/yudao-ui-app/common/api.js +++ b/yudao-ui-app/common/api.js @@ -1,3 +1,4 @@ +//请求工具参考https://ext.dcloud.net.cn/plugin?id=392 const { http } = uni.$u /* login */ @@ -19,6 +20,11 @@ export const updateAvatar = filePath => fileType: 'image', filePath: filePath }) +//修改用户昵称 +export const updateNickname = params => + http.put('/app-api/member/user/update-nickname', {}, { + params + }) /* index */ // 获取滚动图数据 diff --git a/yudao-ui-app/pages/profile/profile.vue b/yudao-ui-app/pages/profile/profile.vue index c556b8c4f..ac129959f 100644 --- a/yudao-ui-app/pages/profile/profile.vue +++ b/yudao-ui-app/pages/profile/profile.vue @@ -10,9 +10,33 @@ 昵称: - + {{ userInfo.nickname }} - + + + + + + + + @@ -27,7 +51,7 @@