From e27181d8b38b2c7455a290b8427198dbe9b044d9 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期二, 24 三月 2026 20:14:41 +0800
Subject: [PATCH] fix: 修正行程状态判断并调整汽车标注位置

---
 src/robotaxi/pages/begin-route/index.tsx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/robotaxi/pages/begin-route/index.tsx b/src/robotaxi/pages/begin-route/index.tsx
index a9474d8..82dd86b 100644
--- a/src/robotaxi/pages/begin-route/index.tsx
+++ b/src/robotaxi/pages/begin-route/index.tsx
@@ -186,6 +186,12 @@
     } else {
       setShowLocationFlag(true);
     }
+    if (tripStatus != 4) {
+      Taro.removeStorageSync('pickupEndTime')
+    }
+    if (tripStatus != 7) {
+      Taro.removeStorageSync('finishEndTime')
+    }
     if (!wasHold && isHold) {
       orderRouteInitializedRef.current = false;
       tripStatus6ViewportLockedRef.current = false;
@@ -322,7 +328,7 @@
           setCarCalloutStyle({
             position: 'fixed',
             left: `${rect.left + x}px`,
-            top: `${rect.top + y + 45}px`,
+            top: `${rect.top + y + 60}px`,
             transform: 'translate(-50%, -120%)'
           });
           setCarCalloutVisible(true);

--
Gitblit v1.7.1