Showing
1 changed file
with
3 additions
and
3 deletions
@@ -303,7 +303,6 @@ Page( | @@ -303,7 +303,6 @@ Page( | ||
303 | let product = r1.data; | 303 | let product = r1.data; |
304 | 304 | ||
305 | this._getMineCode(product.id); | 305 | this._getMineCode(product.id); |
306 | - | ||
307 | this._formatCountdownTime(product.remaining); | 306 | this._formatCountdownTime(product.remaining); |
308 | 307 | ||
309 | this.setData({ | 308 | this.setData({ |
@@ -341,10 +340,11 @@ Page( | @@ -341,10 +340,11 @@ Page( | ||
341 | } | 340 | } |
342 | remaining--; | 341 | remaining--; |
343 | const formatTimeList = fomartCountdownTime(remaining); | 342 | const formatTimeList = fomartCountdownTime(remaining); |
343 | + const isCountdownEnd = formatTimeList.join('') === '000000'; | ||
344 | this.setData({ | 344 | this.setData({ |
345 | formatTimeList, | 345 | formatTimeList, |
346 | - timeId, | ||
347 | - isCountdownEnd: formatTimeList.join('') === '000000', | 346 | + timeId: isCountdownEnd ? null: timeId, |
347 | + isCountdownEnd, | ||
348 | }); | 348 | }); |
349 | }, 1000); | 349 | }, 1000); |
350 | }, | 350 | }, |
-
Please register or login to post a comment