Merge branch 'feature_v2.0' into lucl/auto-scale-v5
| | |
| | | import { View, Image, Map } from '@tarojs/components'; |
| | | import { formatDurationDisplay, safeParse } from '../../../../utils/Robotaxi-public-method'; |
| | | import { safeParse } from '../../../../utils/Robotaxi-public-method'; |
| | | import { formatRemainingDurationDisplay } from '../../../utils/format'; |
| | | import { TripStatus } from '../../../constants/trip-status'; |
| | | |
| | | type Props = { |
| | |
| | | handleContactService, |
| | | }: Props) { |
| | | const hasRouteDuration = typeof routeDuration === 'number' && Number.isFinite(routeDuration); |
| | | const durationDisplay = hasRouteDuration ? formatDurationDisplay(routeDuration) : null; // 预计耗时展示文案 |
| | | // 与 begin-route 对齐:分钟按向下取整,秒按四舍五入。 |
| | | const durationDisplay = hasRouteDuration ? formatRemainingDurationDisplay(routeDuration) : null; // 预计耗时展示文案 |
| | | const isCanceledTrip = tripData?.tripStatus === TripStatus.CancelOnlyPickup || Number(tripData?.rawOrderStatus) === 0; |
| | | |
| | | if (isExpired) { |
| | |
| | | latitude: pickupSite.latitude, |
| | | longitude: pickupSite.longitude, |
| | | iconPath: "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/start-icon.png", |
| | | width: 20, |
| | | height: 36, |
| | | anchor: { x: 0.5, y: 1 }, |
| | | zIndex: 1, |
| | | width: 21, |
| | | height: 31.5, |
| | | anchor: { x: 0.5, y: 1 }, |
| | | zIndex: 1, |
| | | name: pickupSite?.name || '上车点', |
| | | ...(useAndroidNativeTrip1Callout |
| | | ? { |
| | |
| | | latitude: dropoffSite.latitude, |
| | | longitude: dropoffSite.longitude, |
| | | iconPath: 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/end-icon.png', |
| | | width: 20, |
| | | height: 36, |
| | | anchor: { x: 0.5, y: 1 }, |
| | | zIndex: 1, |
| | | width: 21, |
| | | height: 31.5, |
| | | anchor: { x: 0.5, y: 1 }, |
| | | zIndex: 1, |
| | | name: dropoffName, |
| | | ...(useAndroidNativeTrip1Callout || deps.tripStatus === TripStatus.InService |
| | | ? { |