|
@@ -106,6 +106,8 @@ |
|
|
this.timer2 = setTimeout(()=>{ |
|
|
this.timer2 = setTimeout(()=>{ |
|
|
this.TOAST('打卡超时!请重新进入页面') |
|
|
this.TOAST('打卡超时!请重新进入页面') |
|
|
setTimeout(()=>{ |
|
|
setTimeout(()=>{ |
|
|
|
|
|
this.timer&&clearInterval(this.timer) |
|
|
|
|
|
this.timer1&&clearInterval(this.timer1) |
|
|
this.TAB_TO('/pages/home') |
|
|
this.TAB_TO('/pages/home') |
|
|
},1000) |
|
|
},1000) |
|
|
},60000) |
|
|
},60000) |
|
@@ -181,16 +183,16 @@ |
|
|
if(!this.postData.ClockPlace){ |
|
|
if(!this.postData.ClockPlace){ |
|
|
return true |
|
|
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 |
|
|
return true |
|
|
}, |
|
|
}, |
|
|
//获取当前时间 |
|
|
//获取当前时间 |
|
|