车辆图片动态
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user