feat(dealer/wechat, user/profile): 添加联系电话展示并优化用户信息更新逻辑
- 在微信二维码页面添加联系电话展示 - 在用户资料页面添加用户信息更新逻辑 - 优化用户信息保存和上传后的处理流程
This commit is contained in:
@@ -50,7 +50,7 @@ function Profile() {
|
||||
}
|
||||
|
||||
// 提交表单
|
||||
const submitSucceed = (values: any) => {
|
||||
const submitSucceed = (values: User) => {
|
||||
console.log(values, 'values')
|
||||
console.log(formId, 'formId>>')
|
||||
updateUserInfo(values).then(() => {
|
||||
@@ -66,11 +66,11 @@ function Profile() {
|
||||
});
|
||||
})
|
||||
}
|
||||
const submitFailed = (error: any) => {
|
||||
const submitFailed = (error: unknown) => {
|
||||
console.log(error, 'err...')
|
||||
}
|
||||
|
||||
const uploadAvatar = ({detail}) => {
|
||||
const uploadAvatar = ({detail}: {detail: {avatarUrl: string}}) => {
|
||||
setFormData({
|
||||
...FormData,
|
||||
avatar: `${detail.avatarUrl}`,
|
||||
@@ -160,7 +160,7 @@ function Profile() {
|
||||
className="info-content__input"
|
||||
placeholder="请输入昵称"
|
||||
value={FormData?.nickname}
|
||||
onInput={(e) => getWxNickname(e.detail.value)}
|
||||
onInput={(e: {detail: {value: string}}) => getWxNickname(e.detail.value)}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
|
||||
Reference in New Issue
Block a user