@@ -62,15 +62,21 @@
payTime: '竞拍正式开始!\n'
}],
auctionList: [],
+ timer: null
}
},
onLoad(options) {
this.goodId = options.goodId
this.getAuctionData()
- setInterval(() => {
+ },
+ onShow() {
+ this.timer = setInterval(() => {
}, 5000)
+ onHide() {
+ clearInterval(this.timer)
methods: {
// 获取拍卖详情
getAuctionData() {