hejianhao
2026-06-09 a6cfb0ed154e65813a625f7ceb140f93e7e2acdc
6-9晚上更改
6个文件已修改
23 ■■■■■ 已修改文件
src/pages/not-on-whitelist/index.tsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-home-bootstrap.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/components/customer-service/index.tsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/hooks/use-view-delegates.tsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/ride-guide/index.tsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/utils/login-agreement.ts 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/not-on-whitelist/index.tsx
@@ -5,7 +5,8 @@
import './index.less';
/** 白名单拦截图 CDN 地址。 */
const NOT_ON_WHITELIST_IMAGE_URL = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/not-on-whitelist.png';
// const NOT_ON_WHITELIST_IMAGE_URL = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/not-on-whitelist.png';
const NOT_ON_WHITELIST_IMAGE_URL = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/not-on-whitelist-v2.png';
const BACK_ICON = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/back-icon.png';
/**
src/pages/robotaxi/home/hooks/use-home-bootstrap.ts
@@ -328,7 +328,7 @@
   */
  const onDidShow = () => {
    deps.getServicePhone().then((res) => {
      Taro.setStorageSync('customerServicePhone', res?.customerServicePhone || '');
      Taro.setStorageSync('customerServicePhone', '4007626688'||res?.customerServicePhone || '');
    });
    deps.syncSelectedCityFromStorage({
      setSelectedCity: deps.setSelectedCity,
src/robotaxi/components/customer-service/index.tsx
@@ -18,7 +18,7 @@
  useEffect(() => {
    if (show && !visible) {
      getServicePhone().then((res) => {
        setPhoneNumber(res?.customerServicePhone);
        setPhoneNumber('4007626688'||res?.customerServicePhone || '');
        setTimeout(() => {
          Taro.hideTabBar({ animation: true });
          setVisible(true);
src/robotaxi/pages/begin-route/hooks/use-view-delegates.tsx
@@ -256,7 +256,10 @@
        <>
          {(item.name !== '车辆位置' && !(item.id === 2 && [TripStatus.ArrivedDestination].includes(deps.tripStatus)) && !item.hideNameCallout) && (
            <CoverView className={`custom-callout-content ${deps.isAndroid && 'txt-center '}`} style={{ zIndex: 1 }}>
              <CoverView style={{ lineHeight: '22px', whiteSpace: 'nowrap' }}>{item.name}</CoverView>
              <CoverView style={{ lineHeight: '22px', whiteSpace: 'nowrap', display: 'flex' }}>
                {item.name}
                {!deps.isAndroid && <CoverView style={{ color: 'transparent' }}>占</CoverView>}
              </CoverView>
              {deps.isAndroid && <CoverView style={{ width: '2px' }}></CoverView>}
              {(deps.tripStatus === TripStatus.PublishRoute || deps.showTrip1StyleEndpoint) && <CoverImage className='custom-callout-icon' src={deps.customCalloutIconSrc} />}
            </CoverView>
src/robotaxi/pages/ride-guide/index.tsx
@@ -33,7 +33,7 @@
  return (
    <View className='ride-guide'>
      <Image src={content} style={{ width: '100%', height: '100%' }} mode="aspectFit" />
      <Image src={content} style={{ width: '100%' }} mode="widthFix" />
    </View>
  )
}
src/robotaxi/utils/login-agreement.ts
@@ -35,16 +35,19 @@
    .filter((item: LoginAgreementItem) => item.id !== undefined && item.id !== null && item.name);
};
// 统一拉取协议列表,并按配置补充“乘车须知”
// 统一拉取协议列表,默认保留接口返回的全部协议;按配置兜底补充“乘车须知”
export const getNormalizedLoginAgreementList = async (options: LoginAgreementListOptions = {}) => {
  const includeRideNotice = options.includeRideNotice ?? false;
  const rideNoticeInsertBeforeId = options.rideNoticeInsertBeforeId ?? 7;
  const res = await getLoginAgreement();
  const normalized = normalizeLoginAgreementList(resolveLoginAgreementList(res))
    .filter((item: LoginAgreementItem) => Number(item.id) !== RIDE_NOTICE_ID);
  const normalized = normalizeLoginAgreementList(resolveLoginAgreementList(res));
  if (!includeRideNotice) {
    return normalized;
  }
  const hasRideNotice = normalized.some((item: LoginAgreementItem) => Number(item.id) === RIDE_NOTICE_ID);
  if (hasRideNotice) {
    return normalized;
  }
  const insertIndex = normalized.findIndex((item: LoginAgreementItem) => Number(item.id) === rideNoticeInsertBeforeId);
  if (insertIndex >= 0) {
    return [