fix(robotaxi): 修复导航跳转并完善订单取消事件上报
| | |
| | | }); |
| | | |
| | | const handleBack = () => { |
| | | Taro.reLaunch({ |
| | | url: '/pages/xpeng/index', |
| | | Taro.switchTab({ |
| | | url: '/pages/home/index', |
| | | }); |
| | | }; |
| | | |
| | |
| | | style={{ width: '100%', height: HOME_MAP_HEIGHT, flex: 'none' }} |
| | | > |
| | | <View className="select-city-container"> |
| | | <View onClick={() => Taro.reLaunch({ url: '/pages/xpeng/index' })} className="home-back-btn"> |
| | | <View onClick={() => Taro.switchTab({ url: '/pages/home/index' })} className="home-back-btn"> |
| | | <Image className="home-back-icon" src="https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/back-icon.png" /> |
| | | </View> |
| | | <View onClick={props.onSelectCity} className="select-city"> |
| | |
| | | |
| | | try { |
| | | await cancelOrder(targetOrderId); |
| | | if (shouldReportWaitingForDispatchCancel) { |
| | | if (shouldReportWaitingForDispatchCancel || shouldReportWaitingForPickupCancel) { |
| | | reportWaitingForDispatchCancelEvent(); |
| | | } |
| | | if (shouldReportWaitingForPickupCancel) { |