hejianhao
2026-04-08 317e0d7c59fa37b55020ea3d2fcec5dfc2c17e40
refs
用户 hejianhao <15708179461@qq.com>
星期三, 四月 8, 2026 17:09 +0800
提交者 hejianhao <15708179461@qq.com>
星期三, 四月 8, 2026 17:09 +0800
提交317e0d7c59fa37b55020ea3d2fcec5dfc2c17e40
目录 2eefb6674e02c4b5af6c5b46153b3cee2c587ee1 目录 | zip | gz
parent 8a0057c91a7e1fdebbedbd29f64dd4b6b73d58fa 查看 | 对比
refactor(robotaxi): 重构叫车页面架构并迁移静态资源域名

- 将叫车页面拆分为视图壳层与多个职责模块,提升代码可维护性
- 新增 use-order-status、use-route-and-fare 等自定义 Hook 集中管理状态
- 将静态资源从 COS 迁移至 CDN 域名 s.xiaopeng.com
- 新增 safeParse 工具函数处理 JSON 解析异常
- 优化 WebSocket 消息处理逻辑,增加容错机制
- 在站点搜索页面的搜索处理函数中增加返回值
18个文件已添加
9个文件已修改
6094 ■■■■■ 已修改文件
src/pages/robotaxi/home/hooks/use-city-switch.ts 73 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-home-bootstrap.ts 244 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-location.ts 232 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-map-adsorption.ts 173 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/index.tsx 650 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/architecture.md 151 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/announcements-popup.tsx 8 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/begin-route-view.tsx 202 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/door-trunk-control.tsx 172 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/evaluation-card.tsx 98 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/fare-detail-card.tsx 173 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/temperature-control.tsx 123 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/trip-status-header.tsx 69 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/use-trip-countdown.ts 243 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car-modules/vehicle-info-card.tsx 34 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/calling-car.tsx 940 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/components/release-route.tsx 2 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/hooks/use-map-viewport.ts 91 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/hooks/use-order-status.ts 46 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/hooks/use-popup-manager.ts 67 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/hooks/use-route-and-fare.ts 63 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/hooks/use-web-socket-events.ts 382 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/index.tsx 1784 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/order/detail/index.tsx 8 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/site-search/index.tsx 1 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/utils/Robotaxi-public-method.ts 18 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/utils/websocket.ts 47 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史