diff --git a/mini-program/src/pages/main/RecordView.vue b/mini-program/src/pages/main/RecordView.vue
index b509db6..bd02d23 100644
--- a/mini-program/src/pages/main/RecordView.vue
+++ b/mini-program/src/pages/main/RecordView.vue
@@ -10,7 +10,7 @@
- {{ profile.nickname || 'Zoey' }}
+ {{ profile.nickname || '未设置' }}
✦
正在成为更清晰的自己
@@ -28,21 +28,21 @@
♋
星座
- {{ profile.zodiac || '巨蟹座' }}
+ {{ profile.zodiac || '未设置' }}
MBTI
- {{ profile.mbti || 'ENTJ' }}
+ {{ profile.mbti || '未设置' }}
职业
- {{ profile.profession || '产品经理' }}
+ {{ profile.profession || '未设置' }}
@@ -53,7 +53,7 @@
♡
爱好
- {{ heroTags.join(' · ') }}
+ {{ heroTags.length ? heroTags.join(' · ') : '未设置' }}
@@ -140,54 +140,16 @@ const baseFilters = [
]
const filters = computed(() => [...baseFilters, ...customFilters.value])
-const sampleEvents = [
- {
- id: 'sample-1',
- title: '决定全职做自己热爱的AI产品',
- time: '2025-05-20',
- content: '辞去稳定的工作,孤注一掷地投入到AI产品的创业中,每天都充满挑战...',
- eventType: 'highlight',
- tags: ['高光']
- },
- {
- id: 'sample-2',
- title: '一段关系的结束',
- time: '2024-11-12',
- content: '这段关系让我成长了很多,虽然很痛,但也让我更清楚自己想要什么...',
- eventType: 'valley',
- tags: ['低谷']
- },
- {
- id: 'sample-3',
- title: '第一次独自旅行',
- time: '2024-06-08',
- content: '去了大理,遇见了很多有趣的人和事。那段时间真正感受到了自由和快乐...',
- eventType: 'daily_log',
- tags: ['美好的瞬间']
- },
- {
- id: 'sample-4',
- title: '考上理想的高中',
- time: '2016-09-01',
- content: '那天拿到录取通知书,爸妈为我开心地庆祝,我暗下决心要更加努力...',
- eventType: 'childhood',
- tags: ['童年']
- }
-]
-
const profile = computed(() => store.userProfile || store.registrationData || {})
-const events = computed(() => {
- const list = store.events || []
- return list.length ? list : sampleEvents
-})
+const events = computed(() => store.events || [])
const heroTags = computed(() => {
const hobbies = profile.value.hobbies
if (Array.isArray(hobbies) && hobbies.length) return hobbies.slice(0, 4)
- return ['阅读', '旅行', '音乐', '创作']
+ return []
})
const avatar = computed(() => {
- const nickname = profile.value.nickname || 'Zoey'
+ const nickname = profile.value.nickname || 'User'
return `https://api.dicebear.com/7.x/avataaars/svg?seed=${encodeURIComponent(nickname)}&backgroundColor=b982ff`
})