|
@@ -99,6 +99,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ debugger
|
|
|
if (!sleepStart && props.scenario == 'FAST_SLEEP') {
|
|
if (!sleepStart && props.scenario == 'FAST_SLEEP') {
|
|
|
Taro.showToast({
|
|
Taro.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -127,7 +128,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
|
|
|
sleep.real_start_time = sleepStart.time
|
|
sleep.real_start_time = sleepStart.time
|
|
|
sleep.real_start_date = sleepStart.date
|
|
sleep.real_start_date = sleepStart.date
|
|
|
}
|
|
}
|
|
|
- if (!sleepEnd) {
|
|
|
|
|
|
|
+ if (!sleepEnd && props.scenario == 'FAST_SLEEP') {
|
|
|
Taro.showToast({
|
|
Taro.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
|
title: '请选择结束睡眠时间'
|
|
title: '请选择结束睡眠时间'
|
|
@@ -141,8 +142,11 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- sleep.real_end_time = sleepEnd.time
|
|
|
|
|
- sleep.real_end_date = sleepEnd.date
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (props.scenario == 'FAST_SLEEP') {
|
|
|
|
|
+ sleep.real_end_time = sleepEnd.time
|
|
|
|
|
+ sleep.real_end_date = sleepEnd.date
|
|
|
|
|
+ }
|
|
|
fast.real_end_time = fastEnd.time
|
|
fast.real_end_time = fastEnd.time
|
|
|
fast.real_end_date = fastEnd.date
|
|
fast.real_end_date = fastEnd.date
|
|
|
break;
|
|
break;
|