diff --git a/pages/index/index.vue b/pages/index/index.vue
index 3f491b8..f789232 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -25,7 +25,7 @@
{{isCanPunch ? '您已进入打卡范围:' + userPunch.clock_address[nearestFenceIndex].title : '您当前不在可打卡范围内'}}
- 审批打卡
+ 审批打卡
@@ -202,6 +202,16 @@
}
})
},
+ // 审批打卡
+ examinePunch() {
+ if(this.userPunch.is_clock == 1) {
+ // 去审批打卡
+ this.gotoPath('/subPackages/clockIn/apply')
+ }else if([3,4].includes(this.userPunch.is_clock)) {
+ // 查看审批记录
+ this.gotoPath('/subPackages/clockIn/apply?id=' + this.userPunch.clock_id)
+ }
+ },
// 监听用户位置变化
watchLocation() {
if (navigator.geolocation) {
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index e9ca8e7..42ddbfa 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('')