From 9e0d321177b10e00e6b43b0dd720ca04fe25971b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Mar 2026 16:40:56 +0800 Subject: [PATCH] feat(settings): improve profile navigation and password reset UX --- src/layouts/MainLayout.vue | 5 +- src/views/memberships/index.vue | 139 +++++++++++++++++++++++++++++++- src/views/settings/index.vue | 65 ++++++++++++++- 3 files changed, 200 insertions(+), 9 deletions(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 3ec4b21..703ead9 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -184,7 +184,10 @@ const handleCommand = async (command) => { // 用户取消 } } else if (command === 'profile') { - ElMessage.info('个人信息功能开发中...') + router.push({ + path: '/settings', + query: { tab: 'profile' } + }) } } diff --git a/src/views/memberships/index.vue b/src/views/memberships/index.vue index b5f6fae..2304d48 100644 --- a/src/views/memberships/index.vue +++ b/src/views/memberships/index.vue @@ -67,11 +67,29 @@ 搜索 重置 - 生成兑换码 +
+ + 批量停用{{ selectedActiveCount > 0 ? `(${selectedActiveCount})` : '' }} + + 生成兑换码 +
- + + @@ -111,8 +129,10 @@ {{ formatDateTime(row.created_at) }} - + + + + + {{ detailRecord.id || '-' }} + {{ detailRecord.code || '-' }} + {{ statusText(detailRecord.status) }} + + {{ detailRecord.mini_program_name || detailRecord.mini_program?.name || '-' }} + + + {{ detailRecord.package_type || detailRecord.plan_name || '-' }} + + {{ detailRecord.duration_days || '-' }} + + {{ detailRecord.max_uses || 1 }} + + + {{ detailRecord.used_count || 0 }} + + + {{ formatDateTime(detailRecord.expires_at) }} + + + {{ formatDateTime(detailRecord.created_at) }} + + +