调整
This commit is contained in:
BIN
ln_jq_app/assets/html/ic_tag.png
Normal file
BIN
ln_jq_app/assets/html/ic_tag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
@@ -653,13 +653,10 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
|||||||
|
|
||||||
var result = BaseModel.fromJson(responseData.data);
|
var result = BaseModel.fromJson(responseData.data);
|
||||||
|
|
||||||
final value = double.tryParse(
|
final value = double.tryParse(result.data["fillingWeight"]?.toString() ?? '0') ?? 0;
|
||||||
result.data["fillingWeight"]?.toString() ?? '0',
|
|
||||||
) ?? 0;
|
|
||||||
final String formatted = value.toStringAsFixed(2);
|
final String formatted = value.toStringAsFixed(2);
|
||||||
|
|
||||||
fillingWeight =
|
fillingWeight = "$formatted${result.data["fillingWeightUnit"]}";
|
||||||
"$formatted${result.data["fillingWeightUnit"]}";
|
|
||||||
fillingTimes = "${result.data["fillingTimes"]}${result.data["fillingTimesUnit"]}";
|
fillingTimes = "${result.data["fillingTimes"]}${result.data["fillingTimesUnit"]}";
|
||||||
|
|
||||||
updateUi();
|
updateUi();
|
||||||
@@ -824,30 +821,9 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
|||||||
return '$hour:$minute';
|
return '$hour:$minute';
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
void onDetached() {
|
|
||||||
super.onDetached();
|
|
||||||
Logger.d('aaa-onDetached');
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void onHidden() {
|
|
||||||
super.onHidden();
|
|
||||||
Logger.d('aaa-onHidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@override
|
|
||||||
void onPaused() {
|
|
||||||
super.onPaused();
|
|
||||||
Logger.d('aaa-onPaused');
|
|
||||||
stopAutoRefresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onClose() {
|
void onClose() {
|
||||||
super.onClose();
|
super.onClose();
|
||||||
Logger.d('aaa-onClose');
|
|
||||||
amountController.dispose();
|
amountController.dispose();
|
||||||
plateNumberController.dispose();
|
plateNumberController.dispose();
|
||||||
if (_debounce != null) {
|
if (_debounce != null) {
|
||||||
@@ -855,6 +831,5 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
|||||||
}
|
}
|
||||||
_sheetWorker?.dispose();
|
_sheetWorker?.dispose();
|
||||||
stopAutoRefresh();
|
stopAutoRefresh();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user