yearning
20 小时以前 1d37c375fd114212ee1419c3bbdadc81d76666a4
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 => {