车辆图片动态

This commit is contained in:
2026-02-05 13:54:10 +08:00
parent 7d9b4d99e8
commit 211d0225e4
3 changed files with 20 additions and 2 deletions

View File

@@ -539,6 +539,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
String workEfficiency = "0";
String fillingWeight = "0";
String fillingTimes = "0";
String modeImage = "";
String plateNumber = "";
String vin = "";
String leftHydrogen = "0";
@@ -650,7 +651,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
try {
HttpService.to.setBaseUrl(AppTheme.test_service_url);
var responseData = await HttpService.to.get(
'appointment/truck/history-filling-summary?vin=$vin',
'appointment/truck/history-filling-summary?vin=$vin&plateNumber=$plateNumber',
);
if (responseData == null || responseData.data == null) {
showToast('服务暂不可用,请稍后');
@@ -664,6 +665,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
fillingWeight = "$formatted${result.data["fillingWeightUnit"]}";
fillingTimes = "${result.data["fillingTimes"]}${result.data["fillingTimesUnit"]}";
modeImage = result.data["modeImage"].toString();
updateUi();
} catch (e) {