Browse Source

Merge branch 'master' of http://git.dayaedu.com/lex/orchestra-app

lex 2 years ago
parent
commit
cc630c883c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/school/attendance/components/teacher-attendDetail.tsx

+ 3 - 2
src/school/attendance/components/teacher-attendDetail.tsx

@@ -13,6 +13,7 @@ import dayjs from 'dayjs'
 import { useRoute, useRouter } from 'vue-router'
 import { useRoute, useRouter } from 'vue-router'
 import { state as globalState } from '@/state'
 import { state as globalState } from '@/state'
 import request from '@/helpers/request'
 import request from '@/helpers/request'
+import { postMessage } from '@/helpers/native-message'
 export default defineComponent({
 export default defineComponent({
   props: ['item'],
   props: ['item'],
   name: 'teacher-attendDetail',
   name: 'teacher-attendDetail',
@@ -87,13 +88,13 @@ export default defineComponent({
         showToast('当前暂无定位')
         showToast('当前暂无定位')
         return
         return
       }
       }
-      console.log(myPoint, attendanceScope.value)
+
       try {
       try {
         await postMessage({
         await postMessage({
           api: 'sourseMapApi',
           api: 'sourseMapApi',
           content: {
           content: {
             type: 'display',
             type: 'display',
-            orginPoint: teacherAttInfo.value.addressLongitudeLatitude,
+            orginPoint: teacherAttInfo.value.schoolLongitudeLatitude,
             myPoint: myPoint,
             myPoint: myPoint,
             limitDistance: attendanceScope.value
             limitDistance: attendanceScope.value
           }
           }