|
|
@@ -226,9 +226,8 @@ export default function Component() {
|
|
|
setHours(durationTime(e, endTime)[0])
|
|
|
setMinutes(durationTime(e, endTime)[1])
|
|
|
saveTempCache(e, endTime);
|
|
|
- console.log(e)
|
|
|
-
|
|
|
- global.updateDial(e, endTime)
|
|
|
+ if (global.updateDial)
|
|
|
+ global.updateDial(e, endTime)
|
|
|
}
|
|
|
|
|
|
function onEndTimeChange(e: string) {
|
|
|
@@ -322,7 +321,7 @@ export default function Component() {
|
|
|
t('feature.track_time_duration.dial.picker_fast_schedule_duration') :
|
|
|
t('feature.track_time_duration.dial.picker_sleep_schedule_duration')}
|
|
|
themeColor={scenario.step == 'fast' ? global.fastColor ? global.fastColor : ColorType.fast : global.sleepColor ? global.sleepColor : ColorType.sleep}
|
|
|
- showBtns={true} onCancel={() => { setIsOpen(false) }} />
|
|
|
+ showBtns={true} onCancel={() => { setIsOpen(false); }} />
|
|
|
}
|
|
|
|
|
|
function pickerTitle() {
|
|
|
@@ -350,7 +349,6 @@ export default function Component() {
|
|
|
}
|
|
|
|
|
|
function detail() {
|
|
|
-
|
|
|
return <View style={{ height: Taro.getSystemInfoSync().screenHeight - 200, flexDirection: 'column', display: 'flex' }}>
|
|
|
{/* <Text className="subtitle">{t('page.set_schedule.fast_subtitle')}</Text> */}
|
|
|
<TitleView title={scenario.step == 'fast' ? t('page.set_schedule.fast_title') : t('page.set_schedule.sleep_title')}
|
|
|
@@ -378,7 +376,7 @@ export default function Component() {
|
|
|
<Text className="cell_title">开始时间</Text>
|
|
|
<Text className="cell_value" style={{ color: scenario.step == 'fast' ? ColorType.fast : ColorType.sleep }}>{startTime}</Text>
|
|
|
<Image className="cell_arrow" src={require('@/assets/images/arrow3.png')} />
|
|
|
- <View className="cell_line" style={{height:1/PixelRatio.get()}}/>
|
|
|
+ <View className="cell_line" style={{ height: 1 / PixelRatio.get() }} />
|
|
|
</View>
|
|
|
<View className="cell_bottom" onClick={() => {
|
|
|
setIsModalTimePicker(true)
|
|
|
@@ -403,6 +401,20 @@ export default function Component() {
|
|
|
onClick={() => start()} />
|
|
|
</Footer>
|
|
|
|
|
|
+ {
|
|
|
+ (isOpen || isTimeOpen) && <PageContainer style={{ backgroundColor: '#1c1c1c' }}
|
|
|
+ overlayStyle={{ backgroundColor: 'rgba(0,0,0,0.9)' }}
|
|
|
+ customStyle={{ backgroundColor: '#1c1c1c' }}
|
|
|
+ closeOnSlideDown={false}
|
|
|
+ onAfterLeave={() => { setIsOpen(false); setIsTimeOpen(false) }}
|
|
|
+ show={isOpen || isTimeOpen} round={true} overlay={true} position='bottom'
|
|
|
+ >
|
|
|
+ {
|
|
|
+ isTimeOpen ? timeContent() : layoutContent()
|
|
|
+ }
|
|
|
+ </PageContainer>
|
|
|
+ }
|
|
|
+
|
|
|
{/* <PageContainer style={{ backgroundColor: '#1c1c1c' }}
|
|
|
overlayStyle='background-color:rgba(0,0,0,0.9)'
|
|
|
custom-style='background-color:#1c1c1c'
|
|
|
@@ -414,7 +426,7 @@ export default function Component() {
|
|
|
isModalTimePicker?timeContent():layoutContent()
|
|
|
}
|
|
|
</PageContainer> */}
|
|
|
- {
|
|
|
+ {/* {
|
|
|
isOpen && <Modal children={layoutContent()} dismiss={() => setIsOpen(false)} confirm={() => {
|
|
|
setIsOpen(false)
|
|
|
durationChange(pickerRef.current.getConfirmData())
|
|
|
@@ -424,7 +436,7 @@ export default function Component() {
|
|
|
isTimeOpen && <Modal children={timeContent()} dismiss={() => setIsTimeOpen(false)} confirm={() => {
|
|
|
setIsTimeOpen(false)
|
|
|
}} />
|
|
|
- }
|
|
|
+ } */}
|
|
|
|
|
|
</View>
|
|
|
}
|