|
|
@@ -98,7 +98,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
})
|
|
|
global.set_time = timestamp;
|
|
|
setLogEvent('NOTIFY_ONE_TAP');
|
|
|
- setLogEvent(timestamp)
|
|
|
+ // setLogEvent(timestamp)
|
|
|
switch (action_id) {
|
|
|
case 'START_TIMER_NOW':
|
|
|
{
|
|
|
@@ -109,7 +109,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
operateType = 'startSleep'
|
|
|
}
|
|
|
global.set_time = timestamp//new Date().getTime()
|
|
|
- pickerConfirm(timestamp)
|
|
|
+ pickerConfirm(timestamp,'NOTIFY_ONE_TAP')
|
|
|
// pickerConfirm(new Date().getTime())
|
|
|
}
|
|
|
break;
|
|
|
@@ -163,7 +163,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
operateType = 'endSleep'
|
|
|
}
|
|
|
global.set_time = timestamp//new Date().getTime()
|
|
|
- pickerConfirm(timestamp)
|
|
|
+ pickerConfirm(timestamp,'NOTIFY_ONE_TAP')
|
|
|
// pickerConfirm(new Date().getTime())
|
|
|
}
|
|
|
break;
|
|
|
@@ -472,7 +472,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
// showEndTime={operateType == 'startFast' || operateType == 'startSleep'}
|
|
|
duration={duration}
|
|
|
onCancel={hidePicker} onChange={(e) => {
|
|
|
- pickerConfirm(e)
|
|
|
+ pickerConfirm(e,null)
|
|
|
global.pauseIndexTimer = false
|
|
|
// hidePicker()
|
|
|
}} />
|
|
|
@@ -519,7 +519,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
isTimeout={isTimeout}
|
|
|
isLoading={btnDisable}
|
|
|
onChange={(e) => {
|
|
|
- pickerConfirm(e)
|
|
|
+ pickerConfirm(e,null)
|
|
|
global.pauseIndexTimer = false
|
|
|
}}
|
|
|
/>
|
|
|
@@ -579,7 +579,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
jumpPage('/pages/common/H5?title=fast16cc 关注服务号&url=' + resource[0].url)
|
|
|
}
|
|
|
|
|
|
- function pickerConfirm(t1: number) {
|
|
|
+ function pickerConfirm(t1: number,event:any) {
|
|
|
if (btnDisable) {
|
|
|
return
|
|
|
}
|
|
|
@@ -596,7 +596,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
|
|
|
switch (operateType) {
|
|
|
case 'startFast':
|
|
|
- startFast(t1, fastDuration,logEvent).then(res => {
|
|
|
+ startFast(t1, fastDuration,event?event:logEvent).then(res => {
|
|
|
global.indexPageRefresh()
|
|
|
setFirstEnter(false)
|
|
|
hidePicker()
|
|
|
@@ -669,7 +669,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
})
|
|
|
break
|
|
|
case 'startSleep':
|
|
|
- startSleep(t1, sleepDuration,logEvent).then(res => {
|
|
|
+ startSleep(t1, sleepDuration,event?event:logEvent).then(res => {
|
|
|
global.indexPageRefresh()
|
|
|
setFirstEnter(false)
|
|
|
hidePicker()
|
|
|
@@ -744,7 +744,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
})
|
|
|
break
|
|
|
case 'endSleep':
|
|
|
- endSleep(t1,logEvent).then(res => {
|
|
|
+ endSleep(t1,event?event:logEvent).then(res => {
|
|
|
getLocalPush()
|
|
|
setBtnDisable(false)
|
|
|
global.indexPageRefresh()
|
|
|
@@ -767,7 +767,7 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
})
|
|
|
break
|
|
|
case 'endFast':
|
|
|
- endFast(t1,logEvent).then(res => {
|
|
|
+ endFast(t1,event?event:logEvent).then(res => {
|
|
|
getLocalPush()
|
|
|
setBtnDisable(false)
|
|
|
global.indexPageRefresh()
|