柒零 1 yıl önce
ebeveyn
işleme
b314763a49

+ 5 - 5
subpages/sleepQualityIndexAssessment/sleepQualityIndexAssessment.js

@@ -416,21 +416,21 @@ Page({
 		if (comAll >= 0 && comAll <= 5) {
 			_comScoreStatus = "非常好";
 		} else if (comAll >= 6 && comAll <= 10) {
-			_comScoreStatus = "好";
+			_comScoreStatus = "好";
 			comScoreIndex = 1;
 		} else if (comAll >= 11 && comAll <= 15) {
-			_comScoreStatus = "良好";
+			_comScoreStatus = "一般";
 			comScoreIndex = 2;
 		} else if (comAll >= 16 && comAll <= 21) {
 			_comScoreStatus = "差";
 			comScoreIndex = 3;
 		}
 
-		if (this.judgmentScoreRange(comAll,0,3)) {
+		if (this.judgmentScoreRange(comAll,0,5)) {
 			_comScoreDesc = "你目前的睡眠质量非常高,而且健康状况良好,这一切应该继续保持下去。"
-		} else if (this.judgmentScoreRange(comAll, 4, 8)) {
+		} else if (this.judgmentScoreRange(comAll, 6, 10)) {
 			_comScoreDesc = "你的睡眠质量平平,健康状况也受到影响, 如果再不引起你对睡眠质量的足够重视, 那么你的睡眠质量很可能会迅速下降,向下一级别发展。"
-		} else if (this.judgmentScoreRange(comAll, 9, 16)) {
+		} else if (this.judgmentScoreRange(comAll, 11, 15)) {
 			_comScoreDesc = "如果你在这一级别内,那么你的睡眠质量可 就亮起红灯了。你必须警惕,因为你的睡眠质量确实比较糟糕,健康状况明显受损。饮食起居会受到一定影响,甚至部分工作你都开始感觉吃力。"
 		} else {
 			_comScoreDesc = "天啊!你的睡眠质量已经到了令人发指的地 步—长期睡眠不足导致了你的健康状况严重恶化,这就是你工作力不从心,情绪起伏不定的原因。"