样式调整
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user