样式调整

This commit is contained in:
2026-02-12 16:54:50 +08:00
parent 909dc95771
commit 3dfc1dfc2c
2 changed files with 62 additions and 33 deletions

View File

@@ -253,7 +253,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
if (_debounce?.isActive ?? false) {
return;
}
_debounce = Timer(const Duration(seconds: 1), () {});
_debounce = Timer(const Duration(milliseconds: 200), () {});
showLoading("加载中");
@@ -393,7 +393,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
// 创建一个每1分钟执行一次的周期性定时器
_refreshTimer = Timer.periodic(const Duration(minutes: 1), (timer) {
getSiteList();
getSiteList(showloading: false);
});
}
@@ -521,7 +521,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
updateUi();
}
void getSiteList() async {
void getSiteList({showloading = true}) async {
if (StorageService.to.phone == "13888888888") {
//该账号给stationOptions手动添加一个数据
final testStation = StationModel(
@@ -546,7 +546,9 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
}
try {
showLoading("加氢站数据加载中");
if(showloading){
showLoading("加氢站数据加载中");
}
var responseData = await HttpService.to.get(
"appointment/station/queryHydrogenSiteInfo",