Commit Graph

36 Commits

Author SHA1 Message Date
sion
a6f9053014 111 2026-04-06 12:15:33 +08:00
sion
b44067aff7 Merge remote-tracking branch 'origin/main' 2026-04-06 11:31:49 +08:00
sion
4f4f5df83e 111 2026-04-06 11:31:28 +08:00
93f8d70084 merge: 合并远程更新,保留UI修复
- 解决 balance_card.dart 冲突:保留撑满宽度的修改
- 解决 home_page.dart 冲突:保留移除日历的修改
- 合并远程的新功能和改进
2026-04-06 11:22:54 +08:00
2bc6ff66e1 fix: 修复UI样式问题
- 首页:移除盈亏日历,福利中心卡片改为白色背景,查看按钮改为黄色
- 资产页面:余额卡片撑满宽度
- 底部导航栏:移除背景高亮,只保留图标和文字变化
- 行情页面:调整卡片文字大小和柱形图样式
- 交易页面:买入按钮白色文字,卖出按钮红色文字,优化输入框和百分比卡片样式,添加顶部间距
- 全局:移除渐变色,统一使用纯色背景
2026-04-06 11:21:10 +08:00
sion
d4b0c6c128 111 2026-04-06 10:43:01 +08:00
sion
93df15244a Merge remote-tracking branch 'origin/main'
# Conflicts:
#	flutter_monisuo/lib/ui/pages/asset/components/asset_dialogs.dart
#	flutter_monisuo/lib/ui/pages/asset/components/balance_card.dart
#	flutter_monisuo/lib/ui/pages/home/home_page.dart
2026-04-06 09:39:52 +08:00
sion
2bec680d94 111 2026-04-06 09:31:14 +08:00
951d597057 fix(ui): 对齐所有页面样式到 Pencil 设计规范
transfer_page.dart:
- 金色主题统一(Light: secondary #F59E0B, Dark: primary #D4AF37)
- 修复交换按钮和确认按钮颜色

home_page.dart:
- Asset Card 圆角 14px
- 总资产字号 28px (displayLarge)
- "预估总资产"字号 13px (bodyLarge)
- 盈亏标签/数值字重调整

quick_actions_row.dart:
- padding 统一为 16px

welfare_center_page.dart:
- _statusBadge padding [6, 14]

trade_form_card.dart / price_card.dart:
- 样式细节对齐
2026-04-06 03:57:00 +08:00
d09c1a2061 fix(ui): 对齐首页样式到 Pencil 设计规范
- Asset Card: padding 20px (was 24px)
- 充值按钮: cornerRadius 6px, padding [5,10], icon 13px, text 12px
- Quick Actions: 边框颜色 Light #E2E8F0, Dark #1E293B
- Quick Action Icons: 背景色 Light #F3F4F6, Dark #1E293B
- Quick Action Icons: 图标色 Light #4B5563
- cornerRadius: -lg (14px) for cards
2026-04-06 03:45:13 +08:00
ac8f4f2870 fix(ui): 修复分割线透明度问题
- 使用 ghostBorder 替代 outlineVariant.withAlpha(0.1)
- 提高分割线可见度
2026-04-06 03:42:14 +08:00
fabce57657 fix(ui): 修复多个UI样式问题
1. 修复 Light Mode 卡片背景色(surfaceCard: #FFFFFF)
2. 修复首页充值按钮颜色(使用主色实心背景+白色文字)
3. 修复'更多'和'资产详情'文字颜色(使用 text-muted)
4. 修复邀请码卡片背景色(使用琥珀色渐变)
5. 修复'复制邀请码'按钮文字颜色(使用 onPrimary)
2026-04-06 03:40:45 +08:00
cc4d36d374 refactor(ui): 移除快捷操作栏盈亏按钮,今日盈亏/总盈亏卡片已有点击跳转 2026-04-06 03:15:32 +08:00
7ed2435a4c refactor(theme): 迁移主题感知颜色至 ThemeExtension
- 创建 AppThemeColors ThemeExtension 类,统一管理主题感知颜色(涨跌色、卡片背景、渐变等)
- 从 AppColorScheme 移除主题感知辅助函数,仅保留静态颜色常量
- 在 AppTheme 中注册 ThemeExtension,支持深色/浅色主题工厂
- 重构所有 UI 组件使用 context.appColors 访问主题颜色,替代硬编码的 AppColorScheme 方法调用
- 移除组件中重复的 isDark 判断逻辑,简化颜色获取方式
- 保持向后兼容性,所有现有功能不变
2026-04-06 01:58:08 +08:00
40ed445ae5 feat: add profit analysis page with monthly calendar view
Introduce a new profit analysis page featuring a monthly calendar view that displays daily profit/loss data. The page includes navigation controls to switch between months, loading states, and responsive design that adapts to both light and dark themes. Implements data fetching from asset service and visual indicators for profit trends.
2026-04-06 00:08:00 +08:00
f5ac578892 docs(theme): update documentation and clean up deprecated color scheme definitions
Removed outdated compatibility aliases and deprecated methods from AppColorScheme,
and updated CLAUDE.md to reflect new theme system requirements with centralized
color management and no hard-coded values in UI components.
2026-04-05 23:37:27 +08:00
d8cd38c4de feat(theme): update color scheme with new Slate theme and improved surface hierarchy
Updated the app's color scheme to implement a new "Slate" theme with refined dark and light variants. Changed background colors from #0A0E14 to #0B1120 for dark mode and updated surface layer colors to follow Material Design 3 specifications. Modified text colors and outline variants for better contrast and accessibility. Updated font sizes in transaction details screen from 11px to 12px for improved readability.
2026-04-05 22:24:04 +08:00
sion
37290e7846 111 2026-04-04 21:19:29 +08:00
ed25bb2da4 refactor: 优化字号主题体系,参考成熟交易平台标准
- 重构主题字号体系 (h1-h4, body, amount等)
- 修复16个页面文件中的硬编码字号
- 新字号层级参考币安/OKX标准
- Display: 22/20/18px (总资产、价格)
- Headline: 15/14/13px (标题、副标题)
- Body: 13/12/11px (正文、辅助文字)
- Label: 11/10/9px (标签)
- Number: 22/16/13px (数字)
2026-04-01 12:49:17 +08:00
7df584887b fix: 修复复制地址提示层级问题,改用 toast 提示
- 创建统一的 ToastUtils 工具类
- 使用 BotToast.showCustomText 确保显示在所有弹窗之上
- 更新三处复制地址的代码使用新的 toast 方案
- 添加阴影效果提升视觉层次
- 支持成功/错误/警告等多种提示类型
2026-03-30 11:26:47 +08:00
sion
2a901de2c3 111 2026-03-30 00:30:42 +08:00
sion
cb05e61285 111 2026-03-29 16:11:01 +08:00
7f416c7594 fix(theme): 修复亮色模式绿色对比度不足问题
- 添加主题感知颜色函数: getUpColor/getUpBackgroundColor
- app_color_scheme: 新增 getBuyGradient/getEmeraldGradient
- asset_card: emeraldGradient 支持主题切换
- neon_glow: 按钮颜色主题感知
- home_page: 涨跌颜色动态适配
- asset_page: 资产涨跌颜色适配
- trade_page: 交易涨跌颜色适配
- mine_page: 我的页面颜色适配

修复: 亮色模式下绿色 (#00a878) 与浅色背景对比度不足
效果: 亮色模式使用深绿色,深色模式使用亮绿色
2026-03-24 08:58:18 +08:00
13841b1958 refactor: 使用 Clean Code 原则优化 Flutter 代码
- 替换硬编码数字为 AppSpacing/AppRadius 常量
- 提升代码可读性和可维护性
- 添加必要注释说明固定尺寸的原因

优化文件:
- home_page.dart: 替换魔法数字为间距系统常量
- main_page.dart: 统一使用间距系统常量

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 03:06:17 +08:00
a65aa0fa86 fix(ui): 修复主题切换功能,支持明暗主题动态切换
- 替换所有硬编码颜色为动态颜色
- 所有页面使用 Theme.of(context) 获取主题颜色
- 支持深色和浅色主题切换
- 修复 GlassPanel 和 NeonGlow 组件的主题适配
- 完善 lightMaterial ColorScheme 定义
- 测试主题切换功能正常

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 02:50:25 +08:00
0218dc6a33 fix(ui): 修改首页总资产标签为中文
- 'TOTAL BALANCE' → '总资产'

确保所有显示给用户的文字都是中文
2026-03-24 02:30:10 +08:00
29aeeec0a1 fix(ui): 修改顶部导航栏和首页卡片英文为中文
- 'The Kinetic Vault' → '模拟所'
- 'Assets Detail' → '资产详情'
- 'NORMAL USER' → '普通用户'

确保所有顶部导航栏和首页卡片的文字都使用中文
2026-03-24 02:26:38 +08:00
be962bf7b8 feat 优化 2026-03-23 23:54:06 +08:00
019374df36 feat: 优化 2026-03-23 23:19:51 +08:00
6d7c4b0e93 refactor(theme): 移除硬编码颜色并统一使用主题系统
- 从多个页面移除对 `app_colors.dart` 的直接引用
- 在资产卡片和主页概览卡片中使用 `AppColorScheme.assetCardGradient` 替代硬编码渐变
- 在注册页面使用 `AppColorScheme` 和 `AppSpacing` 主题常量
- 移除未使用的导入以清理代码
2026-03-23 22:15:47 +08:00
b40c9f8360 feat(ui): 优化所有页面使用现代设计系统
- 使用 AppSpacing 替换硬编码间距
- 使用 AppRadius 替换硬编码圆角
- 使用 withValues(alpha:) 替换 withOpacity
- 优化 login_page, home_page, market_page, trade_page, asset_page, mine_page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 15:37:59 +08:00
a8f9882e54 优化 2026-03-23 02:43:35 +08:00
7be22da0f0 feat: 优化 2026-03-23 00:43:19 +08:00
sion
91227b7e51 feat: 重构充值提现功能,添加冷钱包管理
后端改动:
- 新增冷钱包管理模块(ColdWallet实体、Mapper、Service、Controller)
- 充值流程:创建订单→显示钱包地址→用户确认打款→管理员审核
- 提现流程:用户输入地址和联系方式→冻结余额→管理员审核
- OrderFund新增字段:walletId, walletAddress, withdrawContact, payTime, confirmTime

前端改动(monisuo-admin):
- 新增冷钱包管理页面(wallets.vue)
- 优化订单管理页面,支持新的状态流转
- 添加调试日志帮助排查登录问题

前端改动(flutter_monisuo):
- 更新OrderFund模型支持新字段
- 充值成功后显示钱包地址弹窗
- 提现时收集提现地址和联系方式
- 新增资金订单页面

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 23:16:41 +08:00
c3f196ded4 feat: 添加业务分析后端接口
新增 AnalysisController 提供 6 个分析接口:
- /admin/analysis/profit - 盈利分析(交易手续费/充提手续费/资金利差)
- /admin/analysis/cash-flow - 资金流动趋势(按月统计充值/提现/净流入)
- /admin/analysis/trade - 交易分析(买入/卖出统计+趋势)
- /admin/analysis/coin-distribution - 币种交易分布
- /admin/analysis/user-growth - 用户增长分析(新增/活跃用户)
- /admin/analysis/risk - 风险指标(大额交易/异常提现/KYC/冻结账户)
- /admin/analysis/health - 综合健康度评分

更新 Mapper 添加分析查询方法:
- OrderFundMapper: 手续费统计、时间范围查询、大额交易、异常提现
- OrderTradeMapper: 交易金额统计、活跃用户、币种分布

前端 API 对接:
- 新增 6 个分析相关 Query hooks
- 更新 analytics.vue 使用真实数据
- 动态决策建议基于实际数据
2026-03-22 04:50:19 +08:00
sion
ffac6fc267 refactor: 将前端从 uni-app x 重构为 Flutter
变更内容:
- 删除 uni-app x 项目 (app/ 目录)
- 新增 Flutter 项目 (flutter_monisuo/ 目录)
- 新增部署脚本 (deploy/ 目录)

Flutter 项目功能:
- 用户登录/注册
- 首页资产概览
- 行情币种列表
- 交易买卖操作
- 资产账户管理
- 充值/提现/划转
- 深色主题
- JWT Token 认证

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 00:21:21 +08:00