|
|
@@ -40,7 +40,7 @@ let isTimeout = false
|
|
|
let stageIndex = 0
|
|
|
|
|
|
let nativePushListener = null
|
|
|
-export default function IndexConsole(props: { record: any, count: number,access:any }) {
|
|
|
+export default function IndexConsole(props: { record: any, count: number, access: any }) {
|
|
|
const user = useSelector((state: any) => state.user);
|
|
|
const { status } = props.record.current_record;
|
|
|
const currentRecord = props.record.current_record;
|
|
|
@@ -398,10 +398,6 @@ export default function IndexConsole(props: { record: any, count: number,access:
|
|
|
if (now - real_start_time >= dayMilliSeconds) {
|
|
|
//严重超时
|
|
|
isTimeout = true
|
|
|
- // defaultTimestamp = Math.min(props.record.current_record.fast.target_end_time, now)
|
|
|
- // min = Math.max(last_check_time, defaultTimestamp - 3 * dayMillionSeconds)
|
|
|
- // max = Math.min(now, defaultTimestamp + 3 * dayMillionSeconds)
|
|
|
- // debugger
|
|
|
defaultTimestamp = now
|
|
|
min = Math.max(last_check_time, defaultTimestamp - 6 * dayMilliSeconds)
|
|
|
max = defaultTimestamp
|
|
|
@@ -577,13 +573,6 @@ export default function IndexConsole(props: { record: any, count: number,access:
|
|
|
|
|
|
t1 = date.getTime();
|
|
|
|
|
|
- // if (process.env.TARO_ENV=='rn'){
|
|
|
- // debugger
|
|
|
- // JPush.isNotificationEnabled((res)=>{
|
|
|
- // console.log(res)
|
|
|
- // debugger
|
|
|
- // })
|
|
|
- // }
|
|
|
|
|
|
|
|
|
switch (operateType) {
|
|
|
@@ -596,7 +585,6 @@ export default function IndexConsole(props: { record: any, count: number,access:
|
|
|
refreshDayNight()
|
|
|
|
|
|
if (process.env.TARO_ENV == 'weapp') {
|
|
|
- debugger
|
|
|
if (permission.wxPubFollow) {
|
|
|
// showAlert({
|
|
|
// title: t('feature.track_time_duration.reminders.fast_end_title'),
|
|
|
@@ -860,9 +848,9 @@ export default function IndexConsole(props: { record: any, count: number,access:
|
|
|
}
|
|
|
</View>
|
|
|
}
|
|
|
- {expand && <View className='btn_line' />}
|
|
|
+ {status == 'WAIT_FOR_START' && expand && <View className='btn_line' />}
|
|
|
{
|
|
|
- expand && <View onClick={tapEndFast} className={status == 'ONGOING3' ? 'console_btn' : 'console_btn btn_disable'}>
|
|
|
+ status == 'WAIT_FOR_START' && expand && <View onClick={tapEndFast} className={status == 'ONGOING3' ? 'console_btn' : 'console_btn btn_disable'}>
|
|
|
<Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.end_fast')}</Text>
|
|
|
</View>
|
|
|
}
|
|
|
@@ -1017,7 +1005,7 @@ export default function IndexConsole(props: { record: any, count: number,access:
|
|
|
{
|
|
|
props.record.scenario.name == 'FAST_SLEEP' ? mixed() : single()
|
|
|
}
|
|
|
- <CheckAccess record={props.record} count={props.count} access={props.access}/>
|
|
|
+ <CheckAccess record={props.record} count={props.count} access={props.access} />
|
|
|
</View>
|
|
|
|
|
|
}
|