From edcc8611e5b61b25bcf56262d5cc523229a76816 Mon Sep 17 00:00:00 2001 From: meowrain Date: Sun, 18 Jan 2026 17:29:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=94=A8=E6=88=B7=E8=B5=84=E6=96=99):=20?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=94=A8=E6=88=B7=E8=B5=84=E6=96=99=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在用户类型定义中新增userPhone、unionId和mpOpenId字段 - 重构验证码输入组件,使用a-input-group替代a-input-search - 实现用户资料更新、密码修改和邮箱绑定功能 - 添加验证码发送倒计时功能 - 优化表单验证和错误处理 - 清理定时器防止内存泄漏 --- src/store/types.d.ts | 3 + src/views/user/UserProfileView.vue | 241 +++++++++++++++++++++++------ 2 files changed, 195 insertions(+), 49 deletions(-) diff --git a/src/store/types.d.ts b/src/store/types.d.ts index 1059b80..5b680ff 100644 --- a/src/store/types.d.ts +++ b/src/store/types.d.ts @@ -7,6 +7,9 @@ export interface LoginUesr { userRole?: string; userProfile?: string; userEmail?: string; + userPhone?: string; + unionId?: string; + mpOpenId?: string; createTime?: string; updateTime?: string; [key: string]: any; diff --git a/src/views/user/UserProfileView.vue b/src/views/user/UserProfileView.vue index 2e15c38..bc0861d 100644 --- a/src/views/user/UserProfileView.vue +++ b/src/views/user/UserProfileView.vue @@ -152,9 +152,9 @@ @@ -185,9 +185,9 @@ @@ -198,13 +198,21 @@ /> - + + + + {{ phoneCountdown > 0 ? `${phoneCountdown}秒后重试` : '发送验证码' }} + + @@ -213,9 +221,9 @@ @@ -226,13 +234,21 @@ /> - + + + + {{ emailCountdown > 0 ? `${emailCountdown}秒后重试` : '发送验证码' }} + + @@ -240,10 +256,16 @@