## 完成的工作 ### P0: 基础设施准备 - 创建 features/ 和 shared/ 目录结构 - 迁移共享资源:API基础设施、工具函数、类型定义 - 迁移通用composables:useMoney, useSmsCountdown, usePricingCalculator - 迁移全局样式文件 - 建立模块化导出系统 ### P1.1: 钱包模块 (wallet) - 迁移 API: wallet.ts - 迁移 Views: WalletView.vue - 新增 Composable: useWallet.ts (封装钱包状态管理) - 更新导入路径到 shared/ ### P1.2: 聊天模块 (chats) - 迁移 API: chats.ts - 迁移 Views: ChatView, MessagesView (桌面+移动) - 迁移 Composables: useChatSSE.ts - 迁移 Components: ChatAttachmentImage.vue - 更新导入路径到 shared/ ## 技术改进 - 修复 shared/composables 导出问题 (default → 命名导出) - 修复 shared/api/client.ts 类型导入路径 - 建立清晰的模块边界和导出规范 ## 文档 - 添加完整的迁移计划文档 - 添加进度跟踪文档 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
43 lines
1.3 KiB
CSS
43 lines
1.3 KiB
CSS
:root {
|
|
color: #1f2933;
|
|
background: #f6f8fb;
|
|
font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
|
|
BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
max-width: 100%;
|
|
overflow-x: clip;
|
|
}
|
|
|
|
#app {
|
|
max-width: 100%;
|
|
overflow-x: clip;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ── Vant Toast 保护规则 ──────────────────────────────────
|
|
.van-popup 声明 background: var(--van-popup-background) = #fff (白色)
|
|
.van-toast 声明 background: var(--van-toast-background) = rgba(0,0,0,.7) (黑色)
|
|
两个类同优先级,但 .van-popup 在 vant/lib/index.css 中后声明 → 覆盖黑色背景
|
|
导致 Toast 白底白字看不见。用双类选择器提升优先级强制使用黑色背景。
|
|
────────────────────────────────────────────────────────── */
|
|
.van-popup.van-toast {
|
|
background: var(--van-toast-background) !important;
|
|
color: var(--van-toast-text-color) !important;
|
|
}
|