nieyuge 2 years ago
parent
commit
c46942baf5
1 changed files with 4 additions and 5 deletions
  1. 4 5
      pages/luckdraw.vue

+ 4 - 5
pages/luckdraw.vue

@@ -409,6 +409,7 @@ export default {
 			return moment(time).format(_type)
 		},
         getValidity(end_time) {
+            end_time += 3000;
             let _d1, _d2, _d3, _h, _m, _s
 			let timer = setInterval(() => {
 				let _time = new Date().getTime()
@@ -431,11 +432,9 @@ export default {
 					this.validity = `${_h}:${_m}:${_s}`
 				} else {
                     this.validity = `00:00:00`
-                    setTimeout(() => {
-                        this.getDetail(() => {
-                            this.handleStatusPage()
-                        })
-                    }, 1000)
+                    this.getDetail(() => {
+                        this.handleStatusPage()
+                    })
 					clearInterval(timer)
 				}
 			}, 1000)