mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
refactor: 整体项目样式与组件优化升级
主要变更: 1. 新增uhemoji2图标字体库并全局引入 2. 重构导航组件与页面布局,统一使用自定义导航栏 3. 替换旧图标为emoji图标,统一视觉风格 4. 清理冗余调试代码与注释 5. 优化快捷导航、关于页等页面样式与交互 6. 修复滚动到顶部组件黑名单配置
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
<script lang="ts" setup>
|
||||
/**
|
||||
* 收藏页(纯本地,文章 × 瞬间)
|
||||
* 功能:双 Tab(仿图库顶部吸顶胶囊 chip)本地收藏列表 + 跳详情 + 删除 + 状态舞台
|
||||
* 数据:useFavoritesStore(persist),快照自包含,无需网络加载
|
||||
* 状态:useDataLoadingStatus + uh-data-loading(与 tabbar 页同构);本地同步数据,状态直接推导
|
||||
*/
|
||||
import { computed, ref, watchEffect } from 'vue'
|
||||
import { formatTime } from '@/utils/formatTime'
|
||||
import { useFavoritesStore } from '@/store/favorites'
|
||||
@@ -14,7 +8,7 @@ import type { FavoriteKind, IFavoriteItem } from '@/utils/favorite'
|
||||
definePage({
|
||||
style: {
|
||||
navigationBarTitleText: '我的收藏',
|
||||
backgroundColor: '#f6f3ee',
|
||||
navigationStyle: 'custom',
|
||||
},
|
||||
})
|
||||
|
||||
@@ -80,6 +74,9 @@ const emptyText = computed(() => (activeKind.value === 'post' ? '还没有收藏
|
||||
|
||||
<template>
|
||||
<view class="box-border min-h-screen w-screen bg-page pb-10">
|
||||
<!-- 自定义导航 -->
|
||||
<uh-navbar default-title="我的收藏" title-color="text-gray-900"></uh-navbar>
|
||||
|
||||
<!-- 顶部类型 Tab(与图库页同款:吸顶玻璃胶囊 chip) -->
|
||||
<wd-sticky>
|
||||
<scroll-view scroll-x class="w-full whitespace-nowrap">
|
||||
|
||||
Reference in New Issue
Block a user