|
|
@@ -151,7 +151,7 @@ Page({ |
|
|
|
|
|
|
|
const data = { |
|
|
|
avatarUrl: that.data.avatarUrl, |
|
|
|
nickName: e.detail.value.nickname, |
|
|
|
nickName: e.detail.value.nickname.trim(), |
|
|
|
name: e.detail.value.username, |
|
|
|
sex: 1 * that.data.gender + 1, |
|
|
|
birthdate: birthdate, |
|
|
@@ -172,6 +172,12 @@ Page({ |
|
|
|
icon: 'error', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
} else if (data.nickName.length > 16) { |
|
|
|
wx.showToast({ |
|
|
|
title: '昵称上限为16字符', |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
Http.post({ |
|
|
|
url: "/user/updateUserInfo", |