Showing
2 changed files
with
2 additions
and
8 deletions
@@ -86,10 +86,7 @@ Component({ | @@ -86,10 +86,7 @@ Component({ | ||
86 | this.commonService = new CommonService(); | 86 | this.commonService = new CommonService(); |
87 | const timeId = setInterval(() => { | 87 | const timeId = setInterval(() => { |
88 | if (this.data.isStart) { | 88 | if (this.data.isStart) { |
89 | - const changeStatusTimeId = setTimeout(()=> { | ||
90 | - this.triggerEvent('changeStatus'); | ||
91 | - clearTimeout(changeStatusTimeId) | ||
92 | - }); | 89 | + this.triggerEvent('changeStatus'); |
93 | clearInterval(timeId); | 90 | clearInterval(timeId); |
94 | } | 91 | } |
95 | const fomartTimes = fomartCountdownTime({ | 92 | const fomartTimes = fomartCountdownTime({ |
@@ -37,10 +37,7 @@ Component({ | @@ -37,10 +37,7 @@ Component({ | ||
37 | ready: function() { | 37 | ready: function() { |
38 | const timeId = setInterval(() => { | 38 | const timeId = setInterval(() => { |
39 | if (this.data.isEnd) { | 39 | if (this.data.isEnd) { |
40 | - const changeStatusTimeId = setTimeout(()=> { | ||
41 | - this.triggerEvent('changeStatus'); | ||
42 | - clearTimeout(changeStatusTimeId) | ||
43 | - }); | 40 | + this.triggerEvent('changeStatus'); |
44 | clearInterval(timeId); | 41 | clearInterval(timeId); |
45 | } | 42 | } |
46 | const formatTimeList = this.formatCountDown(); | 43 | const formatTimeList = this.formatCountDown(); |
-
Please register or login to post a comment