Showing
1 changed file
with
5 additions
and
2 deletions
| @@ -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: "暂时没有客户哦", |
-
Please register or login to post a comment