From 25b381ee1a2ee7f93083d2da67cba19f75312e31 Mon Sep 17 00:00:00 2001 From: yxq Date: Mon, 16 Dec 2024 16:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4=E6=89=93=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/AttendanceCard/list.vue | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue index f4ba4d0cf..83856c2f0 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue @@ -106,6 +106,8 @@ this.timer2 = setTimeout(()=>{ this.TOAST('打卡超时!请重新进入页面') setTimeout(()=>{ + this.timer&&clearInterval(this.timer) + this.timer1&&clearInterval(this.timer1) this.TAB_TO('/pages/home') },1000) },60000) @@ -181,16 +183,16 @@ if(!this.postData.ClockPlace){ return true } - // 获取定位信息成功,开始定时 - this.timer1 = setInterval(async ()=>{ - if(this.isGetingLocal)return - if(!this.postData.ClockPlace){ - clearInterval(this.timer1) - } - this.isGetingLocal = true - await this.updatePageInfo() - this.isGetingLocal = false - },3000) + // // 获取定位信息成功,开始定时 + // this.timer1 = setInterval(async ()=>{ + // if(this.isGetingLocal)return + // if(!this.postData.ClockPlace){ + // clearInterval(this.timer1) + // } + // this.isGetingLocal = true + // await this.updatePageInfo() + // this.isGetingLocal = false + // },3000) return true }, //获取当前时间