| | |
| | | "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/change-site-up.png"; // 行程中修改目的地时的上车点图标 |
| | | // 接驾态(前往上车点)上车点三角图标 |
| | | const PICKUP_APPROACHING_ICON_URL = |
| | | "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/up-triangle-20260722.png"; |
| | | "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/up-triangle-20260812.png"; |
| | | // 送驾态(前往目的地)下车点三角图标 |
| | | const DROPOFF_INSERVICE_ICON_URL = |
| | | "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/down-triangle-20260722.png"; |
| | |
| | | !shouldUseChangePickupIcon; |
| | | // 修改目的地预览:起点(上车点)统一用三角图标 up-triangle + 名称显示在图标下方 |
| | | const isPickupModifyPreview = deps.isModifyDestinationReviewVisible; |
| | | // 发布路线态:上车点同样展示三角图标(仅 iOS,Android 不展示) |
| | | const isPickupPublishRoute = |
| | | deps.tripStatus === TripStatus.PublishRoute && !shouldUseChangePickupIcon && !deps.isAndroid; |
| | | // 接驾态路线切换卡片展示中:地图状态被切换为 PublishRoute 展示态,但上车点名称仍需按三角图标态展示 |
| | | const isPickupTriangle = isPickupApproaching || isPickupArrived || isPickupSettled || isPickupModifyPreview || deps.showTrip1StyleEndpoint; |
| | | const isPickupTriangle = isPickupApproaching || isPickupArrived || isPickupSettled || isPickupModifyPreview || isPickupPublishRoute || deps.showTrip1StyleEndpoint; |
| | | // 名称在图标下方:接驾态 11px,到达/待支付/完成态 22px |
| | | const pickupNameLabelConfig = isPickupApproaching |
| | | ? SITE_NAME_LABEL_BASE |
| | |
| | | : dropoffSite.name || "目的地"; |
| | | // 送驾态(前往目的地):下车点改用三角图标,名称移到图标下方,浮窗展示 end-site 图片; |
| | | // 待支付/完成态:下车点同样三角图标 + end-site 浮窗,名称移到图标左侧。 |
| | | // 发布路线态:下车点同样展示三角图标。 |
| | | const isDropoffInService = deps.tripStatus === TripStatus.InService; |
| | | const isDropoffSettled = [ |
| | | TripStatus.TripFinished, |
| | | TripStatus.PaymentSuccess |
| | | ].includes(deps.tripStatus); |
| | | const isDropoffTriangle = isDropoffInService || isDropoffSettled; |
| | | const isDropoffPublishRoute = deps.tripStatus === TripStatus.PublishRoute && !deps.isAndroid; |
| | | const isDropoffTriangle = isDropoffInService || isDropoffSettled || isDropoffPublishRoute; |
| | | const useDropoffRichCallout = isDropoffTriangle; // cover-view 富浮窗 |
| | | const getCustomCalloutAnchorY = () => { |
| | | if (!deps.isAndroid && isDropoffSettled) { |