修改打卡间隔时间
This commit is contained in:
28
src/App.vue
28
src/App.vue
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user