|
|
@@ -7,7 +7,7 @@ import { jumpPage } from "@/features/trackTimeDuration/hooks/Common";
|
|
|
import dayjs from "dayjs";
|
|
|
import { MainColorType } from "@/context/themes/color";
|
|
|
import showAlert from "@/components/basic/Alert";
|
|
|
-import { IconArrow, IconCellArrow, IconNotification, IconNotificationOff } from "@/components/basic/Icons";
|
|
|
+import { IconArrow, IconCellArrow, IconCircle, IconNotification, IconNotificationOff } from "@/components/basic/Icons";
|
|
|
import { useSelector } from "react-redux";
|
|
|
import { delRecord } from "@/services/health";
|
|
|
import { TimeFormatter } from "@/utils/time_format";
|
|
|
@@ -132,27 +132,27 @@ export default function FastSleepConsole(props: { step: number, data: any, del:
|
|
|
// }
|
|
|
switch (index) {
|
|
|
case 0:
|
|
|
- if (new Date().getTime() <= fast.target.start_timestamp) {
|
|
|
+ if (!fast.timeline[0].real) {
|
|
|
return MainColorType.g02
|
|
|
}
|
|
|
break
|
|
|
case 1:
|
|
|
- if (new Date().getTime() <= sleep.target.start_timestamp) {
|
|
|
+ if (!sleep.timeline[0].real) {
|
|
|
return MainColorType.g02
|
|
|
}
|
|
|
break
|
|
|
case 2:
|
|
|
- if (new Date().getTime() <= sleep.target.end_timestamp) {
|
|
|
+ if (!sleep.timeline[1].real) {
|
|
|
return MainColorType.g02
|
|
|
}
|
|
|
break
|
|
|
case 3:
|
|
|
- if (new Date().getTime() <= fast.target.end_timestamp) {
|
|
|
+ if (!fast.timeline[1].real) {
|
|
|
return MainColorType.g02
|
|
|
}
|
|
|
break
|
|
|
}
|
|
|
- var color = MainColorType.g03
|
|
|
+ var color = MainColorType.g02
|
|
|
if (index == 1 || index == 2) {
|
|
|
color = MainColorType.sleep
|
|
|
}
|
|
|
@@ -169,7 +169,8 @@ export default function FastSleepConsole(props: { step: number, data: any, del:
|
|
|
if (finish) {
|
|
|
return <Image style={{ width: rpxToPx(24), height: rpxToPx(24) }} src={require('@assets/_health/checked.png')} />
|
|
|
}
|
|
|
- return <View style={{ width: rpxToPx(26), height: rpxToPx(26), borderRadius: rpxToPx(13), backgroundColor: '#fff' }} />
|
|
|
+ return <IconCircle width={rpxToPx(32)} color={MainColorType.g02}/>
|
|
|
+ // return <View style={{ width: rpxToPx(26), height: rpxToPx(26), borderRadius: rpxToPx(13), backgroundColor: '#fff' }} />
|
|
|
// if (item.timeline.reminder) {
|
|
|
// return <IconNotification color="#fff" width={rpxToPx(24)} />
|
|
|
// }
|
|
|
@@ -365,8 +366,9 @@ export default function FastSleepConsole(props: { step: number, data: any, del:
|
|
|
return <ConsoleCell
|
|
|
status={
|
|
|
<StatusIndicator type={StatusType.console}
|
|
|
- color={isError ? MainColorType.error : getIconColor(index, finish)}
|
|
|
- fontColor={isError ? MainColorType.error : MainColorType.g01}
|
|
|
+ color={isError ? MainColorType.error : getIconColor(index, finish)==MainColorType.g02?'transparent':getIconColor(index, finish)}
|
|
|
+ fontColor={isError ? MainColorType.error : getIconColor(index, finish)==MainColorType.g02?MainColorType.g01:getIconColor(index, finish)}
|
|
|
+ bold={getIconColor(index, finish)!=MainColorType.g02}
|
|
|
fontSize={rpxToPx(24)}
|
|
|
text={time}
|
|
|
>{
|