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