|
|
@ -18,9 +18,22 @@ |
|
|
this.url = item.url |
|
|
this.url = item.url |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.govak() |
|
|
this.startCountdown() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
startCountdown() { |
|
|
|
|
|
this.jst = 20; // 设置倒计时初始值 |
|
|
|
|
|
const timer = setInterval(() => { |
|
|
|
|
|
if (this.jst > 0) { |
|
|
|
|
|
this.jst--; // 每秒减1 |
|
|
|
|
|
} else { |
|
|
|
|
|
clearInterval(timer); // 倒计时结束,清除定时器 |
|
|
|
|
|
// |
|
|
|
|
|
uni.navigateBack(); |
|
|
|
|
|
} |
|
|
|
|
|
}, 1000); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// |
|
|
// |
|
|
govak(){ |
|
|
govak(){ |
|
|
let ms = this.jst*1000 |
|
|
let ms = this.jst*1000 |
|
|
@ -28,8 +41,7 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
let st = setTimeout(function() { |
|
|
let st = setTimeout(function() { |
|
|
// |
|
|
// https://pelerin.cn/planet |
|
|
|
|
|
|
|
|
uni.navigateBack() |
|
|
uni.navigateBack() |
|
|
}, ms); |
|
|
}, ms); |
|
|
|
|
|
|
|
|
|