feat: 更新 CoachScreen 和欢迎消息生成逻辑

- 在 CoachScreen 中优化欢迎消息的生成,整合用户配置文件数据,支持选择选项和表情
- 更新欢迎消息生成函数,返回包含内容、选择和交互类型的结构
- 在多个组件中调整样式,提升用户体验和界面一致性
- 在 Statistics 组件中添加记录更新时间,确保数据展示的准确性
- 在 FitnessRingsCard 中修正卡路里和运动时间的显示,确保数值四舍五入
This commit is contained in:
richarjiang
2025-08-27 08:15:37 +08:00
parent 0a8b20f0ec
commit 533b40a12d
5 changed files with 232 additions and 130 deletions

View File

@@ -256,6 +256,7 @@ export default function ExploreScreen() {
if (data.records.length > 0) {
const summary = calculateNutritionSummary(data.records);
summary.updatedAt = data.records[0].updatedAt;
setNutritionSummary(summary);
} else {
setNutritionSummary(null);