|
@@ -281,7 +281,7 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
|
|
|
|
|
return <View style={{
|
|
return <View style={{
|
|
|
display: 'flex', alignItems: 'center', justifyContent: 'center', width: 114, height: 114,
|
|
display: 'flex', alignItems: 'center', justifyContent: 'center', width: 114, height: 114,
|
|
|
- marginLeft: rpxToPx(50),
|
|
|
|
|
|
|
+ marginLeft: rpxToPx(42),
|
|
|
marginTop: rpxToPx(86),
|
|
marginTop: rpxToPx(86),
|
|
|
position: 'relative',
|
|
position: 'relative',
|
|
|
}}>
|
|
}}>
|
|
@@ -324,7 +324,7 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
else if (fast.target.start_timestamp <= new Date().getTime() && new Date().getTime() < fast.target.end_timestamp) {
|
|
else if (fast.target.start_timestamp <= new Date().getTime() && new Date().getTime() < fast.target.end_timestamp) {
|
|
|
outRange = false
|
|
outRange = false
|
|
|
}
|
|
}
|
|
|
- return <View style={{ display: 'flex', marginTop: rpxToPx(100), marginLeft: rpxToPx(70), alignItems: 'center', justifyContent: 'center', width: 96, height: 96, position: 'relative' }}> <Rings common={common3}
|
|
|
|
|
|
|
+ return <View style={{ display: 'flex', marginTop: rpxToPx(100), marginLeft: rpxToPx(42), alignItems: 'center', justifyContent: 'center', width: 96, height: 96, position: 'relative' }}> <Rings common={common3}
|
|
|
bgRing={bgRing}
|
|
bgRing={bgRing}
|
|
|
targetRing={target1BigRing()}
|
|
targetRing={target1BigRing()}
|
|
|
realRing={real1BigRing()}
|
|
realRing={real1BigRing()}
|
|
@@ -342,7 +342,7 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
else if (sleep.target.start_timestamp <= new Date().getTime() && new Date().getTime() < sleep.target.end_timestamp) {
|
|
else if (sleep.target.start_timestamp <= new Date().getTime() && new Date().getTime() < sleep.target.end_timestamp) {
|
|
|
outRange = false
|
|
outRange = false
|
|
|
}
|
|
}
|
|
|
- return <View style={{ display: 'flex', marginTop: rpxToPx(100), marginLeft: rpxToPx(70), alignItems: 'center', justifyContent: 'center', width: 96, height: 96, position: 'relative' }}> <Rings common={common3}
|
|
|
|
|
|
|
+ return <View style={{ display: 'flex', marginTop: rpxToPx(100), marginLeft: rpxToPx(42), alignItems: 'center', justifyContent: 'center', width: 96, height: 96, position: 'relative' }}> <Rings common={common3}
|
|
|
bgRing={bgRing}
|
|
bgRing={bgRing}
|
|
|
targetRing={target2BigRing()}
|
|
targetRing={target2BigRing()}
|
|
|
realRing={real2BigRing()}
|
|
realRing={real2BigRing()}
|
|
@@ -382,7 +382,7 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return <View style={{ display: 'flex', marginTop: rpxToPx(100), marginLeft: rpxToPx(70), alignItems: 'center', justifyContent: 'center', width: 96, height: 96, position: 'relative' }}> <Rings common={common3}
|
|
|
|
|
|
|
+ return <View style={{ display: 'flex', marginTop: rpxToPx(100), marginLeft: rpxToPx(42), alignItems: 'center', justifyContent: 'center', width: 96, height: 96, position: 'relative' }}> <Rings common={common3}
|
|
|
bgRing={bgRing}
|
|
bgRing={bgRing}
|
|
|
targetRing={target3BigRing()}
|
|
targetRing={target3BigRing()}
|
|
|
realRing={real3BigRing()}
|
|
realRing={real3BigRing()}
|
|
@@ -461,13 +461,12 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
type = StatusType.normal
|
|
type = StatusType.normal
|
|
|
}
|
|
}
|
|
|
else if (status == 'OG2_NO1') {
|
|
else if (status == 'OG2_NO1') {
|
|
|
- type = StatusType.img
|
|
|
|
|
|
|
+ type = StatusType.normal
|
|
|
color = MainColorType.error
|
|
color = MainColorType.error
|
|
|
- img = <IconMiss width={rpxToPx(26)} color='#fff' />
|
|
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
type = StatusType.img
|
|
type = StatusType.img
|
|
|
- img = <IconCheck width={rpxToPx(26)} height={rpxToPx(26)} color='#fff' />
|
|
|
|
|
|
|
+ img = <IconCheck width={rpxToPx(20)} height={rpxToPx(20)} color='#fff' />
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return <View style={{
|
|
return <View style={{
|
|
@@ -508,21 +507,16 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
var type = StatusType.normal
|
|
var type = StatusType.normal
|
|
|
var img: any = null
|
|
var img: any = null
|
|
|
var color: any = MainColorType.sleep
|
|
var color: any = MainColorType.sleep
|
|
|
- if (status == 'WFS' || status == 'OG1') {
|
|
|
|
|
- type = StatusType.normal
|
|
|
|
|
- // img = <IconCircle width={rpxToPx(26)} color={MainColorType.sleep} />
|
|
|
|
|
- // color = 'transparent'
|
|
|
|
|
|
|
+ if (status == 'OG1'){
|
|
|
|
|
+ color = MainColorType.g03
|
|
|
}
|
|
}
|
|
|
- else if (status == 'OG2') {
|
|
|
|
|
- type = StatusType.normal
|
|
|
|
|
- }
|
|
|
|
|
- else if (status == 'OG2_NO1') {
|
|
|
|
|
|
|
+ if (status == 'WFS' || status == 'OG1' || status == 'OG2' || status == 'OG2_NO1') {
|
|
|
type = StatusType.normal
|
|
type = StatusType.normal
|
|
|
// img = <IconMiss width={rpxToPx(26)} color='#fff' />
|
|
// img = <IconMiss width={rpxToPx(26)} color='#fff' />
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
type = StatusType.img
|
|
type = StatusType.img
|
|
|
- img = <IconCheck width={rpxToPx(26)} height={rpxToPx(26)} color='#fff' />
|
|
|
|
|
|
|
+ img = <IconCheck width={rpxToPx(20)} height={rpxToPx(20)} color='#fff' />
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// debugger
|
|
// debugger
|
|
@@ -576,7 +570,7 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
}}>
|
|
}}>
|
|
|
<StatusIndicator type={type}
|
|
<StatusIndicator type={type}
|
|
|
// color={status == 'OG3' ? MainColorType.fast : 'transparent'}
|
|
// color={status == 'OG3' ? MainColorType.fast : 'transparent'}
|
|
|
- color={MainColorType.fast}
|
|
|
|
|
|
|
+ color={status != 'WFS' && status != 'OG3' ? MainColorType.g03 : MainColorType.fast}
|
|
|
text={title}
|
|
text={title}
|
|
|
fontColor={MainColorType.g01}
|
|
fontColor={MainColorType.g01}
|
|
|
fontSize={rpxToPx(20)}
|
|
fontSize={rpxToPx(20)}
|