diff --git a/lib/address/address_map_page.dart b/lib/address/address_map_page.dart index abc6eb10..2a96c872 100644 --- a/lib/address/address_map_page.dart +++ b/lib/address/address_map_page.dart @@ -199,7 +199,7 @@ class _AddressMapPage extends State { if (await Permission.location.isPermanentlyDenied) { requestDialog(); } else if (await Permission.location.isGranted) { - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); aMapFlutterLocation.startLocation(); Future.delayed(Duration(seconds: 6), () { SmartDialog.dismiss(); diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index 2a8160ce..b5e766c0 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -83,7 +83,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { Founder founder; queryHome() async { - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); BaseData baseData = await apiService.queryBanner({ "model": {"type": "HOME_PAGE"}, }).catchError((onError) { diff --git a/lib/integral/integral_page.dart b/lib/integral/integral_page.dart index f007ee62..656a85b5 100644 --- a/lib/integral/integral_page.dart +++ b/lib/integral/integral_page.dart @@ -43,7 +43,7 @@ class _IntegralPage extends State { token: value.getString("token"), showLoading: false); userinfo = UserInfo.fromJson(jsonDecode(value.getString("user"))); - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); querySignInfo(); }); } @@ -511,6 +511,8 @@ class _IntegralPage extends State { SmartDialog.show( widget: SignInWidget("${signInfo.signInList.length + 1}", "${signInfo.rewardList[signInfo.signInList.length]}")); + } else { + SmartDialog.dismiss(); } } diff --git a/lib/login/login_page.dart b/lib/login/login_page.dart index 2ed589eb..e891ef0b 100644 --- a/lib/login/login_page.dart +++ b/lib/login/login_page.dart @@ -274,7 +274,7 @@ class _MyLoginPageState extends State with TickerProviderStateMixin { "capcha": code, "mobile": mobile, }; - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); BaseData value = await client.memberLogin(param).catchError((error) { print(error); SmartDialog.showToast("$error", alignment: Alignment.center); diff --git a/lib/mine/mine_page.dart b/lib/mine/mine_page.dart index 368ee822..331e035f 100644 --- a/lib/mine/mine_page.dart +++ b/lib/mine/mine_page.dart @@ -99,7 +99,7 @@ class _MinePage extends State with AutomaticKeepAliveClientMixin { List ranks = []; queryUserInfo() async { - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); BaseData rankData = await apiService.rankList(); if (rankData != null && rankData.isSuccess) { ranks.clear(); diff --git a/lib/order/store_selector_page.dart b/lib/order/store_selector_page.dart index 3dd8027f..5282beb3 100644 --- a/lib/order/store_selector_page.dart +++ b/lib/order/store_selector_page.dart @@ -119,7 +119,7 @@ class _StoreSelectorPage extends State { if (await Permission.location.isPermanentlyDenied) { requestDialog(); } else if (await Permission.location.isGranted) { - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); aMapFlutterLocation.startLocation(); Future.delayed(Duration(seconds: 6), () { SmartDialog.dismiss(); diff --git a/lib/union/union_page.dart b/lib/union/union_page.dart index ae9353f4..7d6aea9c 100644 --- a/lib/union/union_page.dart +++ b/lib/union/union_page.dart @@ -365,7 +365,7 @@ class _UnionPage extends State requestDialog(); refreshController.refreshCompleted(); } else if (await Permission.location.isGranted) { - SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); + SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); aMapFlutterLocation.startLocation(); Future.delayed(Duration(seconds: 6), () { SmartDialog.dismiss();