hejianhao
2026-03-24 e27181d8b38b2c7455a290b8427198dbe9b044d9
fix: 修正行程状态判断并调整汽车标注位置

移除非对应状态下的本地存储项,避免数据残留。同时微调汽车标注的垂直偏移量,以改善地图标注的视觉对齐。
1个文件已修改
8 ■■■■■ 已修改文件
src/robotaxi/pages/begin-route/index.tsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);