|
@@ -112,13 +112,13 @@ const handleSelect = (item, index) => {
|
|
|
itemInfo.value = item
|
|
|
current.value = index + 1
|
|
|
price.value = item.payPrice
|
|
|
- // if (timer.value) clearInterval(timer.value); timer.value = null
|
|
|
+ if (timer.value) clearInterval(timer.value); timer.value = null // 每一次点击都清除上一个轮询
|
|
|
timer.value = setInterval(() => { clearIntervalFun() }, interval)
|
|
|
}
|
|
|
|
|
|
// 一段时间后清除二维码轮询
|
|
|
const clearIntervalFun = () => {
|
|
|
- console.log('一段时间后清除二维码轮询', (count * interval))
|
|
|
+ // console.log('一段时间后清除二维码轮询', (count * interval))
|
|
|
count++
|
|
|
if ((count * interval) >= 30000 && timer.value) {
|
|
|
current.value = 0
|