feat: 更新隐私同意弹窗和应用名称

- 将应用名称修改为“每日普拉提”,提升品牌识别度
- 新增隐私同意弹窗,确保用户在使用应用前同意隐私政策
- 更新 Redux 状态管理,添加隐私同意状态的处理
- 优化用户信息页面,确保体重和身高的格式化显示
- 更新今日训练页面标题为“快速训练”,提升用户体验
- 添加开发工具函数,便于测试隐私同意功能
This commit is contained in:
2025-08-15 20:44:06 +08:00
parent 6b6c4fdbad
commit 97e89b9bf0
15 changed files with 326 additions and 26 deletions

View File

@@ -45,12 +45,12 @@ export default function PersonalScreen() {
// 数据格式化函数
const formatHeight = () => {
if (userProfile.height == null) return '--';
return `${Math.round(userProfile.height)}cm`;
return `${parseFloat(userProfile.height).toFixed(1)}cm`;
};
const formatWeight = () => {
if (userProfile.weight == null) return '--';
return `${Math.round(userProfile.weight * 10) / 10}kg`;
return `${parseFloat(userProfile.weight).toFixed(1)}kg`;
};
const formatAge = () => {