data () {
return {
timer: null
}
}
tenGo () { const TIME_COUNT = 10 if (!this.timer) { this.countTime = TIME_COUNT this.timer = setInterval(() => { if (this.countTime > 0 && this.countTime <= TIME_COUNT) { this.countTime -- } else { clearInterval(this.timer) this.timer = null this.$router.push({ path: '/bkShop/myExchange' }) } }, 1000) } },

被折叠的 条评论
为什么被折叠?



