From 1d37c375fd114212ee1419c3bbdadc81d76666a4 Mon Sep 17 00:00:00 2001
From: yearning <10538594+wangweifeng1999@user.noreply.gitee.com>
Date: 星期四, 03 九月 2026 18:01:59 +0800
Subject: [PATCH] 优化

---
 src/views/h5/map/index.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/views/h5/map/index.vue b/src/views/h5/map/index.vue
index ded16a6..43b4d2e 100644
--- a/src/views/h5/map/index.vue
+++ b/src/views/h5/map/index.vue
@@ -15,6 +15,7 @@
               @getUserPositionStatus="getUserPositionStatus"
               @getMapStatus="(evt) => mapStatus = evt"
               @getDistance="getDistance"
+              @getPosition="getUserPosition"
             />
           </div>
           <div class="center-sign">
@@ -88,7 +89,8 @@
       },
       clickCount: 0,
       personType: 0,
-      limitDistanceFlag: false
+      limitDistanceFlag: false,
+      userPosition: {}
     }
   },
   computed: {
@@ -117,7 +119,7 @@
   },
   created() {
     const type = localStorage.getItem('_personType')
-    this.personType = Number(type)
+    this.personType = 0
     if (this.personType == 2) {
       this.limitDistanceFlag = true
       this.getVerifyAddress()
@@ -129,6 +131,9 @@
     this.currentTimeText = this.$dayjs().format('HH:mm')
   },
   methods: {
+    getUserPosition(evt) {
+      this.userPosition = evt
+    },
     getVerifyAddress() {
       const params = { applicationId: this.appId }
       this.$axios.get('/exam/verify-record/get-by-application-id', { params }).then(res => {
@@ -169,7 +174,8 @@
         targetId: this.appId,
         targetType: this.personType,
         url: this.url,
-        type: this.url ? 0 : 2
+        type: this.url ? 0 : 2,
+        details: JSON.stringify(this.userPosition)
       }
       this.confirmLoading = true
       this.$axios.post('/exam/staff/checkin', data).then(res => {

--
Gitblit v1.8.0