feat: 更新 AI 教练聊天界面和个人信息页面
- 在 AI 教练聊天界面中添加训练记录分析功能,允许用户基于近期训练记录获取分析建议 - 更新 Redux 状态管理,集成每日步数和卡路里目标 - 在个人信息页面中优化用户头像显示,支持从库中选择头像 - 修改首页布局,添加可拖动的教练徽章,提升用户交互体验 - 更新样式以适应新功能的展示和交互
This commit is contained in:
@@ -8,7 +8,7 @@ type PlanCardProps = {
|
||||
image: string;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
level: Level;
|
||||
level?: Level;
|
||||
progress: number; // 0 - 1
|
||||
};
|
||||
|
||||
@@ -17,11 +17,13 @@ export function PlanCard({ image, title, subtitle, level, progress }: PlanCardPr
|
||||
<View style={styles.card}>
|
||||
<Image source={{ uri: image }} style={styles.image} />
|
||||
<View style={styles.content}>
|
||||
<View style={styles.badgeContainer}>
|
||||
<View style={styles.badge}>
|
||||
<Text style={styles.badgeText}>{level}</Text>
|
||||
{level && (
|
||||
<View style={styles.badgeContainer}>
|
||||
<View style={styles.badge}>
|
||||
<Text style={styles.badgeText}>{level}</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
|
||||
<Text style={styles.title}>{title}</Text>
|
||||
<Text style={styles.subtitle}>{subtitle}</Text>
|
||||
|
||||
Reference in New Issue
Block a user