|
|
@@ -300,6 +300,8 @@ export default function Component() {
|
|
|
cancel={() => { setIsTimeOpen(false) }} />
|
|
|
}
|
|
|
|
|
|
+ console.log(scenario)
|
|
|
+
|
|
|
function detail() {
|
|
|
return <View >
|
|
|
<Text className="subtitle">{t('page.set_schedule.fast_subtitle')}</Text>
|
|
|
@@ -310,16 +312,16 @@ export default function Component() {
|
|
|
setChooseStart(true)
|
|
|
setIsTimeOpen(true)
|
|
|
}}>
|
|
|
- <Text className="item_title">{t('feature.track_time_duration.dial.start_time')}</Text>
|
|
|
- <Text className="item_text">{startTime}</Text>
|
|
|
+ <Text className="item_title schedule_text_key">{t('feature.track_time_duration.dial.start_time')}</Text>
|
|
|
+ <Text className="item_text schedule_text_value">{startTime}</Text>
|
|
|
</View>
|
|
|
<View style={{ width: 23 }} />
|
|
|
<View className="item1" style={{ opacity: operateType == 2 || operateType == 3 ? 1 : 0.4, backgroundColor: isDebugMode ? 'pink' : 'transparent' }} onClick={() => {
|
|
|
setChooseStart(false)
|
|
|
setIsTimeOpen(true)
|
|
|
}}>
|
|
|
- <Text className="item_title">{t('feature.track_time_duration.dial.end_time')}</Text>
|
|
|
- <Text className="item_text">{endTime}</Text>
|
|
|
+ <Text className="item_title schedule_text_key">{t('feature.track_time_duration.dial.end_time')}</Text>
|
|
|
+ <Text className="item_text schedule_text_value">{endTime}</Text>
|
|
|
</View>
|
|
|
|
|
|
</View>
|
|
|
@@ -327,14 +329,14 @@ export default function Component() {
|
|
|
<Dial ref={canvasRef} />
|
|
|
</View>
|
|
|
<View className="duration_bg" style={{ opacity: operateType == 1 || operateType == 2 ? 1 : 0.4, backgroundColor: isDebugMode ? 'pink' : 'transparent' }} onClick={() => { setIsOpen(true) }}>
|
|
|
- <Text className="duration_title">{t('feature.track_time_duration.dial.duration')}</Text>
|
|
|
- <Text className="duration" >{hours > 0 ? hours + '小时' : ''}{minutes > 0 ? minutes + '分钟' : ''}</Text>
|
|
|
+ <Text className="duration_title schedule_text_key">{t('feature.track_time_duration.dial.duration')}</Text>
|
|
|
+ <Text className="duration_value schedule_text_value" >{hours > 0 ? hours + '小时' : ''}{minutes > 0 ? minutes + '分钟' : ''}</Text>
|
|
|
</View>
|
|
|
|
|
|
</View>
|
|
|
|
|
|
<Footer>
|
|
|
- <SetScheduleBtn title={scenario.step == 'fast' ? t('feature.common.btn_set_and_next') : t('feature.common.btn_set_and_done')}
|
|
|
+ <SetScheduleBtn title={(scenario.step == 'fast' && scenario.name == 'FAST_SLEEP') ? t('feature.common.btn_set_and_next') : t('feature.common.btn_set_and_done')}
|
|
|
lowLight={operateType != 0}
|
|
|
isFast={scenario.step == 'fast'}
|
|
|
onClick={() => start()} />
|