Commit 0b327caf39591316f2f3fdf7db6106ec956e3284

Authored by wdn127929
1 parent c318bcc7

我的客户列表

@@ -333,10 +333,12 @@ class _MyCustomerListPageState extends State<MyCustomerListPage> @@ -333,10 +333,12 @@ class _MyCustomerListPageState extends State<MyCustomerListPage>
333 // setState(() {}); 333 // setState(() {});
334 // _searchSellerLocation(); 334 // _searchSellerLocation();
335 // customerProvider.searchData(value); 335 // customerProvider.searchData(value);
  336 + _getContantData(showLoading: false);
336 }, 337 },
337 onEditingComplete: () { 338 onEditingComplete: () {
338 FocusScope.of(context) 339 FocusScope.of(context)
339 .requestFocus(FocusNode()); //点击空白处隐藏键盘 340 .requestFocus(FocusNode()); //点击空白处隐藏键盘
  341 + _getContantData(showLoading: false);
340 // contantShowModel.searchData( 342 // contantShowModel.searchData(
341 // contantShowModel.controller.text); 343 // contantShowModel.controller.text);
342 // _searchSellerLocation(); 344 // _searchSellerLocation();
@@ -364,6 +366,9 @@ class _MyCustomerListPageState extends State<MyCustomerListPage> @@ -364,6 +366,9 @@ class _MyCustomerListPageState extends State<MyCustomerListPage>
364 WidgetsBinding.instance.addPostFrameCallback(((_) { 366 WidgetsBinding.instance.addPostFrameCallback(((_) {
365 customerProvider.controller.clear(); 367 customerProvider.controller.clear();
366 // customerProvider.searchData(''); 368 // customerProvider.searchData('');
  369 + FocusScope.of(context)
  370 + .requestFocus(FocusNode()); //点击空白处隐藏键盘
  371 + _getContantData(showLoading: false);
367 })); 372 }));
368 }, 373 },
369 )), 374 )),
@@ -1225,8 +1230,6 @@ class _MyCustomerListPageState extends State<MyCustomerListPage> @@ -1225,8 +1230,6 @@ class _MyCustomerListPageState extends State<MyCustomerListPage>
1225 return ExceptionPage( 1230 return ExceptionPage(
1226 pageState: model.pageState, 1231 pageState: model.pageState,
1227 callback: () { 1232 callback: () {
1228 - model.pageState = PageState.Loading;  
1229 - model.notifyListeners();  
1230 _getContantData(); 1233 _getContantData();
1231 }, 1234 },
1232 emptyMsg: "暂时没有客户哦", 1235 emptyMsg: "暂时没有客户哦",