From f439a5e1eefdb024593ef90e5391f64f3e78e743 Mon Sep 17 00:00:00 2001 From: wylyl22 <2373073266@qq.com> Date: Wed, 14 Sep 2022 16:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/home/set/phone_num_list/call_records_list.dart | 6 +++--- lib/ui/home/set/specify_phone_page.dart | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/ui/home/set/phone_num_list/call_records_list.dart b/lib/ui/home/set/phone_num_list/call_records_list.dart index 1d507e5..9f54c2b 100644 --- a/lib/ui/home/set/phone_num_list/call_records_list.dart +++ b/lib/ui/home/set/phone_num_list/call_records_list.dart @@ -95,9 +95,9 @@ class _CallRecordsListState extends State { if (phoneNum3.isEmpty) { CloudToast.show('请选择手机号'); } else { - print(phoneNum3); - var res = await ExcludeFunc.getContactsList(phoneNum3); - if(res) Get.back(); + // print(phoneNum3); + await ExcludeFunc.getContactsList(phoneNum3); + Navigator.pop(context,true); } // _easyRefreshController.callRefresh(); diff --git a/lib/ui/home/set/specify_phone_page.dart b/lib/ui/home/set/specify_phone_page.dart index 819cd45..17d6df9 100644 --- a/lib/ui/home/set/specify_phone_page.dart +++ b/lib/ui/home/set/specify_phone_page.dart @@ -65,7 +65,7 @@ class _SpecifyPhonePageState extends State { MaterialPageRoute( builder: (_) => const CallRecordsList()), ) - .then((val) => _getNullList()); + .then((val) =>_refreshController.callRefresh()); // Get.to(() => const CallRecordsList()); }), @@ -89,9 +89,11 @@ class _SpecifyPhonePageState extends State { } else { Get.to(() => (const ExcludeContactsPage())); } + }), _getAddPhone("添加单个或批量号码", "通过输入号码段添加批量号码", () { Get.to(() => (const ExcludeSinglePage())); + }), ], )), @@ -112,6 +114,7 @@ class _SpecifyPhonePageState extends State { ); }, context: context); + }, child: EasyRefresh( firstRefresh: true,