liaof
2026-08-05 bbdc3671f92a2de50868ac657ea16ff67cc780ec
Merge branch 'bugfix/operate-share-0804' into 'feature_v2.5.0'

fix:修复首页查看运营区域无响应问题

See merge request robotaxi1/xp-robotaxi-miniprogram!242
3个文件已修改
69 ■■■■■ 已修改文件
src/pages/robotaxi/home/components/home-map-panel.tsx 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/components/map-overlay-tips/index.tsx 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/index.less 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/components/home-map-panel.tsx
@@ -159,7 +159,25 @@
        }}
      >
        <View className='origin-box-container'>
          <Image onClick={props.onToOrigin} className="origin-icon" src='https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/origin-icon-20260716.png' />
          <View className='tips-and-origin'>
            <Image onClick={props.onToOrigin} className="origin-icon" src='https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/origin-icon-20260716.png' />
            <MapOverlayTips
              isGuest={props.shouldShowGuestTip}
              isLocationAuthDenied={props.isLocationAuthDenied}
              isOperatingArea={props.isOperatingArea}
              isMaintain={props.isMaintain}
              maintainBounce={props.maintainBounce}
              hotfixEndText={props.hotfixEndText}
              anchorBottom={props.overlayAnchorBottom ?? undefined}
              opacity={props.originOpacity}
              isDragging={props.isDragging}
              onShowPrivacy={props.onShowPrivacy}
              onOpenSetting={props.onOpenSetting}
              onViewOperatingArea={props.onViewOperatingArea}
              shouldShowOrderStatusCard={props.shouldShowOrderStatusCard}
            />
          </View>
          {props.shouldShowOrderStatusCard && (
            <View  className="order-status-overlay">
              <OrderStatusCard
@@ -172,21 +190,7 @@
          )}
        </View>
      </View>
      <MapOverlayTips
        isGuest={props.shouldShowGuestTip}
        isLocationAuthDenied={props.isLocationAuthDenied}
        isOperatingArea={props.isOperatingArea}
        isMaintain={props.isMaintain}
        maintainBounce={props.maintainBounce}
        hotfixEndText={props.hotfixEndText}
        anchorBottom={props.overlayAnchorBottom ?? undefined}
        opacity={props.originOpacity}
        isDragging={props.isDragging}
        onShowPrivacy={props.onShowPrivacy}
        onOpenSetting={props.onOpenSetting}
        onViewOperatingArea={props.onViewOperatingArea}
        shouldShowOrderStatusCard={props.shouldShowOrderStatusCard}
      />
      <View className="map-entry">
        <View className="map-entry-box">
          <Image onClick={props.onToPersonalCenter} className="map-entry-icon" src='https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/personal-center-20260716.png' />
src/pages/robotaxi/home/components/map-overlay-tips/index.tsx
@@ -32,33 +32,23 @@
 * 地图顶部提示层。
 */
export default function MapOverlayTips(props: Props) {
  const anchorStyle = typeof props.anchorBottom === 'number'
    ? {
        top: 'auto',
        bottom: `${props.anchorBottom}px`,
        opacity: props.opacity !== undefined ? props.opacity : 1,
        visibility: props.opacity !== undefined && props.opacity <= 0 ? 'hidden' : 'visible' as any,
        pointerEvents: props.opacity !== undefined && props.opacity <= 0 ? 'none' : 'auto' as any,
        transition: props.isDragging ? 'none' : 'opacity 0.2s ease-out'
      }
    : undefined;
  return (
    <View className="content-box-top" style={anchorStyle}>
    <View className="content-box-top">
      <View className="position-box">
        {
          props.isGuest && <View className="visitor-stste ml-32">
          props.isGuest && <View className="visitor-stste">
            <View className="visitor-stste-tip">同意隐私协议体验更多约车体验</View>
            <View onClick={props.onShowPrivacy} className="visitor-stste-go">去同意</View>
          </View>
        }
        {
          props.isLocationAuthDenied && <View className="visitor-stste ml-32 mt-20">
          props.isLocationAuthDenied && <View className="visitor-stste">
            <View className="visitor-stste-tip">未开启位置权限,开启后即可发布行程</View>
            <View onClick={props.onOpenSetting} className="visitor-stste-go">去开启</View>
          </View>
        }
        {
          props.isMaintain && <View className={`is-maintain ml-32 ${props.maintainBounce ? 'maintain-bounce' : ''}`}>系统维护中,预计{props.hotfixEndText || '-:-'}恢复服务</View>
          props.isMaintain && <View className={`is-maintain ${props.maintainBounce ? 'maintain-bounce' : ''}`}>系统维护中,预计{props.hotfixEndText || '-:-'}恢复服务</View>
        }
        {
          !props.isOperatingArea && !props.shouldShowOrderStatusCard && <View onClick={props.onViewOperatingArea} className="is-operating-area mt-20">查看运营区域</View>
src/pages/robotaxi/home/index.less
@@ -103,8 +103,16 @@
  }
  .origin-icon {
    position: absolute;
    bottom: 0px;
    right: 24px;
    width: 80px;
    height: 80px;
  }
  .tips-and-origin {
    position: relative;
    width: 100%;
    min-height: 80px;
  }
}
@@ -215,10 +223,6 @@
.content-box-top {
  width: 100%;
  position: fixed;
  top: 55%;
  left: 0px;
  z-index: 2;
  .position-box {
    .is-operating-area {
@@ -255,9 +259,6 @@
      }
    }
    .ml-32 {
      margin-left: 32px;
    }
    .mt-20 {
      margin-top: 20px;