From 8ba72c9a8fa572846a5ca2d47720d2ddb3acf595 Mon Sep 17 00:00:00 2001 From: hajimi Date: Mon, 3 Aug 2026 20:48:09 +0800 Subject: [PATCH] style: refine collection page visual design --- uniapp/src/pages/collection/collection.vue | 208 ++++++++++++++++++--- 1 file changed, 183 insertions(+), 25 deletions(-) diff --git a/uniapp/src/pages/collection/collection.vue b/uniapp/src/pages/collection/collection.vue index 772f20d6..0c34fa0f 100644 --- a/uniapp/src/pages/collection/collection.vue +++ b/uniapp/src/pages/collection/collection.vue @@ -9,6 +9,20 @@ + + + PERSONAL ARCHIVE + 把喜欢的内容收好 + 资讯、帖子、比赛与行情,随时回看 + + + {{ collectionCount }} + 已收藏 + + + + + + + 资讯文章 + 已收藏 + {{ item.title || '未命名文章' }} {{ item.desc }} @@ -122,6 +140,7 @@ const refreshing = ref(false) const articleCount = computed(() => articles.value.length) const cryptoCount = computed(() => coins.value.length) +const collectionCount = computed(() => articleCount.value + cryptoCount.value) const activeTabLabel = computed(() => collectionTabs.find((tab) => tab.key === activeType.value)?.label || '') const loadArticles = async () => { @@ -211,46 +230,142 @@ onShow(() => {