@ -19,8 +19,8 @@
</view>
<!-- 服务状态 -->
<view class="devinfo">
<view class="dev-txt" :class="hasverify?'verify':'unverfiy'">有效期: 0个月</view>
<view class="dev-txt" :class="hasverify?'verify':'unverfiy'">设备数: 0台</view>
<view class="dev-txt" :class="hasverify?'verify':'unverfiy'">有效期: 1个月</view>
<view class="dev-txt" :class="hasverify?'verify':'unverfiy'">设备数: 1台</view>
<!-- 交易中心的快速连接 -->
@ -18,9 +18,22 @@
this.url = item.url
},
mounted() {
this.govak()
this.startCountdown()
methods:{
startCountdown() {
this.jst = 20; // 设置倒计时初始值
const timer = setInterval(() => {
if (this.jst > 0) {
this.jst--; // 每秒减1
} else {
clearInterval(timer); // 倒计时结束,清除定时器
//
uni.navigateBack();
}
}, 1000);
govak(){
let ms = this.jst*1000
@ -28,8 +41,7 @@
let st = setTimeout(function() {
// https://pelerin.cn/planet
uni.navigateBack()
}, ms);