| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { showToast } from '../../../components/toast'; |
| | | import { useCallback, useState } from 'react'; |
| | | import { getOrderDistance } from '../../../api/select-map-site'; |
| | | import { getDistance } from '../../../../utils/Robotaxi-public-method'; |
| | |
| | | } |
| | | const openCityId = await resolveOpenCityId(); |
| | | if (openCityId) return openCityId; |
| | | Taro.showToast({ title: '未能获取所在城市信息,请重试', icon: 'none' }); |
| | | showToast({ title: '未能获取所在城市信息,请重试', icon: 'none' }); |
| | | deps.onCheckFailed(); |
| | | return null; |
| | | }; |