| | |
| | | import { listAvailableVehicles, getUserBoundVehicle } from "@/api/vehicle" |
| | | import { searchHospitals, searchHospitalsByDeptRegion } from "@/api/hospital" |
| | | import DepartureSelector from './components/DepartureSelector.vue' |
| | | import { calculateDistance, baiduDistanceByAddress, baiduPlaceSuggestion } from "@/api/map" |
| | | import { calculateTianDiTuDistance } from "@/api/map" |
| | | import { listBranchUsers } from "@/api/system/user" |
| | | import { searchIcd10 } from "@/api/icd10" |
| | | import { calculateTransferPrice } from "@/api/price" |
| | |
| | | |
| | | // 调用百度地图API计算距离 |
| | | const region = this.selectedRegion || '广州' |
| | | baiduDistanceByAddress(fromAddress, region, toAddress, region) |
| | | calculateTianDiTuDistance(fromAddress, toAddress) |
| | | .then(response => { |
| | | uni.hideLoading() |
| | | |
| | |
| | | |
| | | // 使用uni-app的GPS定位功能 |
| | | uni.getLocation({ |
| | | type: 'gcj02', // 返回国测局坐标,适用于国内地图 |
| | | type: 'gcj02', // 返回国测局坐标,适用于国内地图 火星坐标 |
| | | success: (res) => { |
| | | console.log('获取到GPS坐标:', res) |
| | | const latitude = res.latitude |
| | |
| | | }) |
| | | |
| | | // 调用百度地图API计算距离 |
| | | baiduDistanceByAddress(fromAddress, fromCity, toAddress, toCity) |
| | | calculateTianDiTuDistance(fromAddress, toAddress) |
| | | .then(response => { |
| | | uni.hideLoading() |
| | | |