|
@@ -645,10 +645,6 @@ export default function MainConsole(props: { type: WindowType }) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function tapSwitchBtn() {
|
|
function tapSwitchBtn() {
|
|
|
- if (!user.isLogin) {
|
|
|
|
|
- jumpPage('/pages/account/ChooseAuth', 'ChooseAuth', navigation)
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
switch (health.mode) {
|
|
switch (health.mode) {
|
|
|
case 'FAST':
|
|
case 'FAST':
|
|
|
dispatch(setMode('EAT'));
|
|
dispatch(setMode('EAT'));
|
|
@@ -798,10 +794,20 @@ export default function MainConsole(props: { type: WindowType }) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function ogTime() {
|
|
function ogTime() {
|
|
|
- return <View style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'center' }}>
|
|
|
|
|
- <View className="console_tag_bg" style={{backgroundColor:getThemeColor(health.mode)}}>
|
|
|
|
|
|
|
+ return <View className="h30 bold" style={{
|
|
|
|
|
+ display: 'flex',
|
|
|
|
|
+ color: '#fff',
|
|
|
|
|
+ borderRadius:rpxToPx(10),
|
|
|
|
|
+ minWidth:rpxToPx(137),
|
|
|
|
|
+ paddingLeft:rpxToPx(9),
|
|
|
|
|
+ paddingRight:rpxToPx(9),
|
|
|
|
|
+ boxSizing:'border-box',
|
|
|
|
|
+ height:rpxToPx(48),
|
|
|
|
|
+ flexDirection: 'row', alignItems: 'center', justifyContent: 'center', backgroundColor: getThemeColor(health.mode)
|
|
|
|
|
+ }}>
|
|
|
|
|
+ {/* <View className="console_tag_bg" style={{backgroundColor:getThemeColor(health.mode)}}>
|
|
|
<Image src={global.language=='en'?require('@assets/_health/tag_log.png'):require('@assets/_health/tag_record.png')} className="console_tag_img"/>
|
|
<Image src={global.language=='en'?require('@assets/_health/tag_log.png'):require('@assets/_health/tag_record.png')} className="console_tag_img"/>
|
|
|
- </View>
|
|
|
|
|
|
|
+ </View> */}
|
|
|
{
|
|
{
|
|
|
getCountownTime(health.windows, health.mode)
|
|
getCountownTime(health.windows, health.mode)
|
|
|
}
|
|
}
|
|
@@ -811,7 +817,7 @@ export default function MainConsole(props: { type: WindowType }) {
|
|
|
return <View className="main-console-bg">
|
|
return <View className="main-console-bg">
|
|
|
<Image className="main_arrow" src={require('@assets/images/center_arrow.png')} />
|
|
<Image className="main_arrow" src={require('@assets/images/center_arrow.png')} />
|
|
|
<View className="main_summary">
|
|
<View className="main_summary">
|
|
|
- <View className="main_summary_time bold" style={{
|
|
|
|
|
|
|
+ <View className="main_summary_time h30 bold" style={{
|
|
|
marginTop: rpxToPx(14),
|
|
marginTop: rpxToPx(14),
|
|
|
// color: getTitleColor()
|
|
// color: getTitleColor()
|
|
|
}} >{getScenario(health.windows, health.mode).status == 'OG' ? ogTime() : getDuration(health.windows, health.mode)}
|
|
}} >{getScenario(health.windows, health.mode).status == 'OG' ? ogTime() : getDuration(health.windows, health.mode)}
|