...
|
...
|
@@ -86,7 +86,10 @@ Component({ |
|
|
this.commonService = new CommonService();
|
|
|
const timeId = setInterval(() => {
|
|
|
if (this.data.isStart) {
|
|
|
this.triggerEvent('changeStatus');
|
|
|
const changeStatusTimeId = setTimeout(()=> {
|
|
|
this.triggerEvent('changeStatus');
|
|
|
clearTimeout(changeStatusTimeId)
|
|
|
}, 1000);
|
|
|
clearInterval(timeId);
|
|
|
}
|
|
|
const fomartTimes = fomartCountdownTime({
|
...
|
...
|
@@ -94,7 +97,7 @@ Component({ |
|
|
});
|
|
|
this.setData({
|
|
|
remainingTime: fomartTimes.join(':') || '00:00:00',
|
|
|
isStart: fomartTimes.length === 0,
|
|
|
isStart: fomartTimes.length === 0 && this.properties.status === 1,
|
|
|
});
|
|
|
}, 1000);
|
|
|
},
|
...
|
...
|
|