Merge branch 'map_dev' into dev

This commit is contained in:
2026-04-03 10:25:53 +08:00
2 changed files with 8 additions and 25 deletions

View File

@@ -618,9 +618,9 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
tvStationName.setText(endName);
tvStationAddr.setText(endAddress);
double distanceKm = path.getDistance() / 1000f;
long durationMin = path.getDuration() / 60;
double tolls = path.getTolls();
double distanceKm = truckRouteData.pathDto.distance / 1000f;
long durationMin = truckRouteData.pathDto.duration / 60;
String tolls = truckRouteData.pathDto.tolls;
String hydrogenCost = "--"; // 默认显示横线
try {
@@ -634,7 +634,7 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
tvDuration.setText("预计时间:" + durationMin + "分钟");
tvDistance.setText("行驶里程:" + String.format("%.1f", distanceKm) + "公里");
tvTolls.setText("过路费:" + (int) tolls + "");
tvTolls.setText("过路费:" + tolls + "");
tvTollsFuel.setText("加氢费用:" + (isGetInputtips ? "--" : hydrogenCost) + "");
isGetInputtips = false;