样式调整
This commit is contained in:
@@ -363,10 +363,10 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
(s) => s.hydrogenId == selectedStationId.value,
|
||||
);
|
||||
|
||||
if (selectedStation.siteStatusName != "营运中") {
|
||||
/*if (selectedStation.siteStatusName != "营运中") {
|
||||
showToast("该站点${selectedStation.siteStatusName},暂无法预约");
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
showLoading("提交中");
|
||||
|
||||
@@ -552,7 +552,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
getUserBindCarInfo();
|
||||
getSiteList();
|
||||
startAutoRefresh();
|
||||
_msgNotice();
|
||||
msgNotice();
|
||||
|
||||
if (!init) {
|
||||
_setupListener();
|
||||
@@ -562,7 +562,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
|
||||
bool isNotice = false;
|
||||
|
||||
Future<void> _msgNotice() async {
|
||||
Future<void> msgNotice() async {
|
||||
final Map<String, dynamic> requestData = {
|
||||
'appFlag': 1,
|
||||
'isRead': 1,
|
||||
@@ -578,6 +578,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
if (result.code == 0 && result.data != null) {
|
||||
String total = result.data["total"].toString();
|
||||
isNotice = int.parse(total) > 0;
|
||||
updateUi();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -656,8 +657,13 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
|
||||
var result = BaseModel.fromJson(responseData.data);
|
||||
|
||||
final value = double.tryParse(
|
||||
result.data["fillingWeight"]?.toString() ?? '0',
|
||||
) ?? 0;
|
||||
final String formatted = value.toStringAsFixed(2);
|
||||
|
||||
fillingWeight =
|
||||
"${result.data["fillingWeight"]}${result.data["fillingWeightUnit"]}";
|
||||
"$formatted${result.data["fillingWeightUnit"]}";
|
||||
fillingTimes = "${result.data["fillingTimes"]}${result.data["fillingTimesUnit"]}";
|
||||
|
||||
updateUi();
|
||||
|
||||
Reference in New Issue
Block a user