feat(家庭健康): 优化家庭组加入流程,移除自动创建家庭组逻辑

This commit is contained in:
richarjiang
2025-12-04 19:10:05 +08:00
parent a254af92c7
commit f3d4264b53
5 changed files with 193 additions and 62 deletions

View File

@@ -265,9 +265,9 @@ export default function WeightRecordsPage() {
<Text style={styles.mainStatUnit}>kg</Text>
</View>
<View style={styles.totalLossTag}>
<Ionicons name={totalWeightLoss <= 0 ? "trending-down" : "trending-up"} size={16} color="#ffffff" />
<Ionicons name={totalWeightLoss > 0 ? "trending-down" : "trending-up"} size={16} color="#ffffff" />
<Text style={styles.totalLossText}>
{totalWeightLoss > 0 ? '+' : ''}{totalWeightLoss.toFixed(1)} kg
{totalWeightLoss > 0 ? '-' : totalWeightLoss < 0 ? '+' : ''}{Math.abs(totalWeightLoss).toFixed(1)} kg
</Text>
</View>
</View>