|
@@ -9,6 +9,9 @@
|
|
|
|
|
|
- (void)setDatas:(NSInteger)index model:(ReportDrankModel*)model {
|
|
|
if (index == 1) {
|
|
|
+ [self.pulseLabel setText:[NSString stringWithFormat:@"%ld",(long)model.healthy.heartRate]];
|
|
|
+ [self.pulseStatusBtn changeRiskStyle:model.healthy.level];
|
|
|
+ } else if (index == 2) {
|
|
|
[self.spo2Label setText:[NSString stringWithFormat:@"%ld",(long)model.healthy.bloodOxygen]];
|
|
|
[self.mSlider setValue:model.healthy.bloodOxygen];
|
|
|
} else {
|
|
@@ -17,11 +20,11 @@
|
|
|
}
|
|
|
|
|
|
- (void)setDrank:(ReportDrankModel*)model {
|
|
|
- if (!model || !(model.drank))
|
|
|
+ if (!model || !(model.drunkJudgment))
|
|
|
return;
|
|
|
- [self.drankLevelLabel setText:[NSString stringWithFormat:@"%ld", model.drank.score]];
|
|
|
- [self.drankLevelDetailLabel setText:model.drank.content];
|
|
|
- [self.drankLevelHintLabel setText:model.drank.healthTipsContent];
|
|
|
+ [self.drankLevelLabel setText:[NSString stringWithFormat:@"%ld%@", model.drunkJudgment.score, @"级"]];
|
|
|
+ [self.drankLevelDetailLabel setText:model.drunkJudgment.content];
|
|
|
+ [self.drankLevelHintLabel setText:model.drunkJudgment.healthTipsContent];
|
|
|
}
|
|
|
|
|
|
@end
|