APP-PUSH和纯色小组件
This commit is contained in:
@@ -33,9 +33,13 @@ function mapMomStage(raw: string | undefined): QuestionnaireAnswersV1_2['mom_sta
|
||||
|
||||
function mapEmotion(raw: string | undefined): QuestionnaireAnswersV1_2['emotion'] {
|
||||
if (!raw) return null;
|
||||
// UI 当前选项:happy/calm/stressed/low
|
||||
// UI 选项:
|
||||
// - happy/calm/stressed/low:历史选项(仍保留兼容)
|
||||
// - okay/tired:新增选项
|
||||
if (raw === 'happy') return 'joyful';
|
||||
if (raw === 'calm') return 'calm';
|
||||
if (raw === 'okay') return 'neutral';
|
||||
if (raw === 'tired') return 'tired';
|
||||
if (raw === 'stressed') return 'overwhelmed';
|
||||
if (raw === 'low') return 'low';
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user