chore: 将本地图片资源替换为远程CDN链接
移除本地图片文件,将相关图片的引用改为使用远程CDN地址,以减少打包体积并统一资源管理
| | |
| | | import personalCenter from '../../../robotaxi/assets/personal-center.png' |
| | | import coupon from '../../../robotaxi/assets/coupon.png' |
| | | import contactService from '../../../robotaxi/assets/contact-service.png' |
| | | import floatDefaultImg from '../../../robotaxi/assets/coverImage.png' |
| | | import { |
| | | convertTemperatureByUnit, |
| | | DEFAULT_TEMPERATURE_UNIT, |
| | |
| | | </> |
| | | ); |
| | | }; |
| | | |
| | | const floatDefaultImg = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/coverImage.png'; |
| | | const [showMarketing, setShowMarketing] = useState(false); // 营销弹窗是否显示 |
| | | const [marketingData, setMarketingData] = useState({}); // 营销弹窗数据 |
| | | const [showFloatActivity, setShowFloatActivity] = useState(false); // 活动悬浮窗是否显示 |
| | |
| | | width: 100%; |
| | | min-height: 184px; |
| | | border-radius: 24px; |
| | | background: url("../../assets/coupon-bg.png") center center / 100% 100% |
| | | background: url("https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/coupon-bg.png") center center / 100% 100% |
| | | no-repeat; |
| | | padding: 28px 24px 28px 28px; |
| | | margin-bottom: 0; |
| | |
| | | import { View, Image, Text } from "@tarojs/components"; |
| | | import { useState, useEffect, useRef } from "react"; |
| | | import { submitOrderComment } from '../../../../api/begin-route'; |
| | | import good from '../../../../assets/good.png' |
| | | import normal from '../../../../assets/normal.png' |
| | | import bad from '../../../../assets/bad.png' |
| | | import activeGood from '../../../../assets/active-good.png' |
| | | import activeBad from '../../../../assets/active-bad.png' |
| | | import activeNormal from '../../../../assets/active-normal.png' |
| | | import { TripStatus } from '../../constants/trip-status'; |
| | | |
| | | type Props = { |
| | |
| | | evaluateSubmitVersion, |
| | | evaluateCloseVersion |
| | | }: Props) { |
| | | const good = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/good.png'; |
| | | const normal = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/normal.png'; |
| | | const bad = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/bad.png'; |
| | | const activeGood = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-good.png'; |
| | | const activeBad = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-bad.png'; |
| | | const activeNormal = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-normal.png'; |
| | | const [activeIndex, setActiveIndex] = useState(0); // 当前选中的满意度 |
| | | const [isEvaluated, setIsEvaluated] = useState(false); // 是否已完成评价 |
| | | const skipEvaluateResetRef = useRef(false); // 跳过关闭重置的一次性标记 |
| | |
| | | } |
| | | |
| | | export default function EvaluatePopup({ show = false, onClose, onConfirm, orderId, orderRating, submitMode = 'comment' }: Props) { |
| | | const activeBad = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-bad.png'; |
| | | const [visible, setVisible] = useState(false); // 弹窗显示状态 |
| | | const [animationData, setAnimationData] = useState<any>(); // 弹窗进出场动画 |
| | | const [selectedTypeId, setSelectedTypeId] = useState<number | null>(null); // 当前选择的问题类型 |
| | |
| | | <Image onClick={onClose} src={require('../../../assets/close-icon.png')} /> |
| | | </View> |
| | | <View className='evaluate-content-title'> |
| | | <Image src={require('../../../assets/active-bad.png')} /> |
| | | <Image src={activeBad} /> |
| | | <View>“不满意,我要吐槽”</View> |
| | | </View> |
| | | <View className='content-box'> |
| | |
| | | import coupon from '../../../robotaxi/assets/coupon.png' |
| | | import contactService from '../../../robotaxi/assets/contact-service.png' |
| | | import originIcon from '../../../robotaxi/assets/origin-icon.png' |
| | | import selectRouteIcon from '../../../robotaxi/assets/select-route.png' |
| | | import packUpIcon from '../../../robotaxi/assets/pack-up.png' |
| | | import walkIcon from '../../../robotaxi/assets/walk-icon.png' |
| | | import { _ROBOTAXI_WS_HOST } from '../../../constants/api'; |
| | | |
| | | const ROUTE_SUMMARY_MARKER_ID = 999001; |
| | |
| | | toOrigin={toOrigin} |
| | | handleWalkNavigation={handleWalkNavigation} |
| | | showWalkNavigationButton={showWalkNavigationButton} |
| | | selectRouteIcon={selectRouteIcon} |
| | | selectRouteIcon={'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/select-route.png'} |
| | | packUpIcon={packUpIcon} |
| | | onSelectRouteClick={() => setIsRouteSelectExpanded(!isRouteSelectExpanded)} |
| | | isRouteSelectExpanded={isRouteSelectExpanded} |
| | | canToggleRouteSelect={canToggleRouteSelect} |
| | | walkIcon={walkIcon} |
| | | walkIcon={'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/walk-icon.png'} |
| | | originIcon={originIcon} |
| | | renderTripCard={renderTripCard} |
| | | showCustomerService={showCustomerService} |
| | |
| | | width: 100%; |
| | | min-height: 184px; |
| | | border-radius: 24px; |
| | | background: url("../../assets/coupon-bg.png") center center / 100% 100% |
| | | background: url("https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/coupon-bg.png") center center / 100% 100% |
| | | no-repeat; |
| | | padding: 28px 24px 28px 28px; |
| | | margin-bottom: 24px; |
| | |
| | | import { useState, useEffect, useRef } from 'react'; |
| | | import { View, Text, Image, Map } from '@tarojs/components'; |
| | | import './index.less'; |
| | | import good from '../../../assets/good.png' |
| | | import normal from '../../../assets/normal.png' |
| | | import bad from '../../../assets/bad.png' |
| | | import activeGood from '../../../assets/active-good.png' |
| | | import activeBad from '../../../assets/active-bad.png' |
| | | import activeNormal from '../../../assets/active-normal.png' |
| | | import right from '../../../assets/right.png' |
| | | import lineRight from '../../../assets/line-right.png' |
| | | import { getOrderDetail } from '../../../api/order'; |
| | |
| | | const router = useRouter(); |
| | | const { orderId } = router.params; |
| | | |
| | | const good = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/good.png'; |
| | | const normal = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/normal.png'; |
| | | const bad = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/bad.png'; |
| | | const activeGood = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-good.png'; |
| | | const activeBad = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-bad.png'; |
| | | const activeNormal = 'https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/active-normal.png'; |
| | | |
| | | const [activeIndex, setActiveIndex] = useState<number | null>(null) // 默认选中"非常满意" |
| | | const [orderData, setOrderData] = useState<any>(null); |
| | | const [showEvaluatePopup, setShowEvaluatePopup] = useState(false); |