|
|
@@ -140,7 +140,14 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
|
|
|
function real0BigRing() {
|
|
|
const { fast, sleep, status } = props.data
|
|
|
- if (status == 'WFS' || status == 'OG2_NO1') {
|
|
|
+ if (status == 'WFS'){
|
|
|
+ return {
|
|
|
+ color: MainColorType.fast,
|
|
|
+ startArc: getStartArc(fast.target.start_timestamp),
|
|
|
+ durationArc: getDurationArc(fast.target.start_timestamp, new Date().getTime())
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ( status == 'OG2_NO1') {
|
|
|
return null;
|
|
|
}
|
|
|
return {
|
|
|
@@ -604,29 +611,29 @@ export default function FastSleepCard(props: { step: number, data: any }) {
|
|
|
switch (props.step) {
|
|
|
case 0:
|
|
|
return <View className='right_content'>
|
|
|
- <View className='h34' style={{ color: MainColorType.g01, lineHeight: rpxToPx(42) + 'px' }}>{t('health.fasting')}</View>
|
|
|
- <View className='h44 bold' style={{ color: MainColorType.fast, lineHeight: rpxToPx(52) + 'px' }}>{fastTime()}</View>
|
|
|
+ <View className='h34 ' style={{ lineHeight: rpxToPx(42) + 'px' }}>{t('health.fasting')}</View>
|
|
|
+ <View className='h36 bold' style={{ color: MainColorType.fast, lineHeight: rpxToPx(52) + 'px' }}>{fastTime()}</View>
|
|
|
<View style={{ height: rpxToPx(24) }} />
|
|
|
- <View className='h34' style={{ color: MainColorType.g01, lineHeight: rpxToPx(42) + 'px' }}>{t('health.sleep')}</View>
|
|
|
- <View className='h44 bold' style={{ color: MainColorType.sleep, lineHeight: rpxToPx(52) + 'px' }}>{sleepTime()}</View>
|
|
|
+ <View className='h34 ' style={{ lineHeight: rpxToPx(42) + 'px' }}>{t('health.sleep')}</View>
|
|
|
+ <View className='h36 bold' style={{ color: MainColorType.sleep, lineHeight: rpxToPx(52) + 'px' }}>{sleepTime()}</View>
|
|
|
</View>
|
|
|
case 1:
|
|
|
return <View className='right_content'>
|
|
|
- <View className='h34' style={{ color: MainColorType.g01, lineHeight: rpxToPx(42) + 'px' }}>{t('health.fast_before_bed')}</View>
|
|
|
+ <View className='h34 ' style={{ lineHeight: rpxToPx(42) + 'px' }}>{t('health.fast_before_bed')}</View>
|
|
|
<View style={{ height: rpxToPx(12) }} />
|
|
|
- <View className='h44 bold' style={{ color: MainColorType.fast, lineHeight: rpxToPx(52) + 'px' }}>{step1()}</View>
|
|
|
+ <View className='h36 bold' style={{ color: MainColorType.fast, lineHeight: rpxToPx(52) + 'px' }}>{step1()}</View>
|
|
|
</View>
|
|
|
case 2:
|
|
|
return <View className='right_content'>
|
|
|
- <View className='h34' style={{ color: MainColorType.g01, lineHeight: rpxToPx(42) + 'px' }}>{t('health.fast_while_sleep')}</View>
|
|
|
+ <View className='h34 ' style={{ lineHeight: rpxToPx(42) + 'px' }}>{t('health.fast_while_sleep')}</View>
|
|
|
<View style={{ height: rpxToPx(12) }} />
|
|
|
- <View className='h44 bold' style={{ color: MainColorType.sleep, lineHeight: rpxToPx(52) + 'px' }}>{step2()}</View>
|
|
|
+ <View className='h36 bold' style={{ color: MainColorType.sleep, lineHeight: rpxToPx(52) + 'px' }}>{step2()}</View>
|
|
|
</View>
|
|
|
case 3:
|
|
|
return <View className='right_content'>
|
|
|
- <View className='h34' style={{ color: MainColorType.g01, lineHeight: rpxToPx(42) + 'px' }}>{t('health.fast_after_sleep')}</View>
|
|
|
+ <View className='h34 ' style={{ lineHeight: rpxToPx(42) + 'px' }}>{t('health.fast_after_sleep')}</View>
|
|
|
<View style={{ height: rpxToPx(12) }} />
|
|
|
- <View className='h44 bold' style={{ color: MainColorType.fast, lineHeight: rpxToPx(52) + 'px' }}>{step3()}</View>
|
|
|
+ <View className='h36 bold' style={{ color: MainColorType.fast, lineHeight: rpxToPx(52) + 'px' }}>{step3()}</View>
|
|
|
</View>
|
|
|
}
|
|
|
return <View className='right_content'></View>
|