修改打卡间隔时间

This commit is contained in:
13684185576
2025-12-04 10:57:55 +08:00
parent e3c36848b7
commit 52d4a65473
4 changed files with 17 additions and 47 deletions

View File

@ -1,14 +1,8 @@
<template>
<router-view v-slot="{ Component }">
<Component :is="Component"></Component>
<van-popup
v-model:show="showAlert"
closeable
:close-on-click-overlay="false"
close-icon-position="top-right"
position="bottom"
@close="closePopup"
>
<van-popup v-model:show="showAlert" closeable :close-on-click-overlay="false" close-icon-position="top-right"
position="bottom" @close="closePopup">
<div class="alert-content">
<div class="alert-cnt">
<van-icon name="warning-o" color="orange"></van-icon> {{ message }}
@ -30,17 +24,10 @@ import watermark from "./utils/watermark.js";
import emitter from "./utils/eventBus.js";
import { onMounted, onUnmounted, ref, watch, reactive } from "vue";
import { getMyTaskList, getMyTaskTotal } from "./api/rwzx.js";
import { updateDate } from "./api/checkponit.js";
import { getDistance, hintToast, timeValidate } from "./utils/tools";
import { getAPPLocation } from "./api/spsApi";
import { qcckPost, qcckGet } from "@/api/qcckApi";
import { useRoute } from "vue-router";
import router from "./router/index.js";
import store from "./store";
const route = useRoute();
let userLocation = null; //用户位置信息
const keepAlive = ref(false);
const routerName = ref(""); //要跳转的路由名称
const bbTime = ref(null); //查询报备定时函数
let userInfo;
let message = ref("版本已经更新,请退出重新登录!");
@ -86,10 +73,10 @@ watch(
);
onMounted(() => {
getLocation(); //获取经纬度
setInterval(() => {
getLocation(); //获取经纬度
}, 10000);
// getLocation(); //获取经纬度
// setInterval(() => {
// getLocation(); //获取经纬度
// }, 10000);
//默认设置用户主题色
if (!getStorage("themeSetting")) {
setStorage("themeSetting", "light");
@ -151,7 +138,7 @@ function _getTaskList() {
pageSize: 10,
pageCurrent: 1,
};
getMyTaskList(data).then((res) => {});
getMyTaskList(data).then((res) => { });
}
onUnmounted(() => {
clearInterval(bbTime.value);
@ -464,6 +451,7 @@ body {
.sticky_box {
@include bg_color($background-color-theme);
}
.amap-icon img {
width: 25px;
height: 34px;