diff --git a/pages/index/index.vue b/pages/index/index.vue
index 314b293..637245b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -19,7 +19,7 @@
·我的打卡
打卡规则
- 上线打卡
+ {{punchSuccess ? '打卡成功' : '上线打卡'}}
{{currentTime}}
@@ -192,6 +192,7 @@
if(res.code == 1) {
this.punchSuccess = true
clearInterval(this.timeInterval); // 打卡成功后清除时间定时器
+ navigator.geolocation.clearWatch(this.watchId); // 打卡成功时清除位置监听
let timer = setInterval(() => {
this.timeSuccess--;
if (this.timeSuccess == 0) {
diff --git a/pages/login/login.vue b/pages/login/login.vue
index c8c55d2..5fec856 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -56,6 +56,7 @@
onShow() {
this.getCodeImg()
+ console.log(this.calculateDistance(120.633401, 31.266909,31.323512,120.631235))
},
methods: {
// 获取验证码
diff --git a/subPackages/clockIn/record.vue b/subPackages/clockIn/record.vue
index b364f34..d4724bf 100644
--- a/subPackages/clockIn/record.vue
+++ b/subPackages/clockIn/record.vue
@@ -33,7 +33,7 @@
limit: 30,
}
},
- onLoad() {
+ onShow() {
this.page = 1
this.finished = false
this.list = []
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 2b374ed..b229174 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -1,2 +1,2 @@
daoyou
\ No newline at end of file
+ document.write('')