Showing
4 changed files
with
4 additions
and
5 deletions
| @@ -178,7 +178,7 @@ class DioUtil { | @@ -178,7 +178,7 @@ class DioUtil { | ||
| 178 | // Utils.showToast("网络错误,请稍后重试"); | 178 | // Utils.showToast("网络错误,请稍后重试"); |
| 179 | throw MyError(type: 1); | 179 | throw MyError(type: 1); |
| 180 | } | 180 | } |
| 181 | - // if (showLoading) Loading.showLoading(context); | 181 | + if (showLoading) Loading.showLoading(context); |
| 182 | try { | 182 | try { |
| 183 | print('--------' + path + '---------'); | 183 | print('--------' + path + '---------'); |
| 184 | Response response = await _dio.request(path, | 184 | Response response = await _dio.request(path, |
| @@ -424,7 +424,6 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { | @@ -424,7 +424,6 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { | ||
| 424 | color: MyColours.color_ffffff, | 424 | color: MyColours.color_ffffff, |
| 425 | child: Column( | 425 | child: Column( |
| 426 | children: <Widget>[ | 426 | children: <Widget>[ |
| 427 | - SizedBox(height: ScreenUtil.statusBarHeight), | ||
| 428 | MyAppBar( | 427 | MyAppBar( |
| 429 | "订座详情", | 428 | "订座详情", |
| 430 | showBack: true, | 429 | showBack: true, |
| @@ -23,7 +23,7 @@ class ChooseTableModel with ChangeNotifier { | @@ -23,7 +23,7 @@ class ChooseTableModel with ChangeNotifier { | ||
| 23 | } | 23 | } |
| 24 | BaseResp<List> baseResp = await DioUtil() | 24 | BaseResp<List> baseResp = await DioUtil() |
| 25 | .request<List>(context, Method.get, HttpUrl.table_list, | 25 | .request<List>(context, Method.get, HttpUrl.table_list, |
| 26 | - data: params, showLoading: true) | 26 | + data: params, showLoading: false) |
| 27 | .catchError((error) { | 27 | .catchError((error) { |
| 28 | print(error.toString()); | 28 | print(error.toString()); |
| 29 | if (error is MyError) { | 29 | if (error is MyError) { |
| @@ -26,7 +26,7 @@ class NotebookDetailModel extends ChangeNotifier { | @@ -26,7 +26,7 @@ class NotebookDetailModel extends ChangeNotifier { | ||
| 26 | BaseResp<Map<String, dynamic>> baseResp = await DioUtil() | 26 | BaseResp<Map<String, dynamic>> baseResp = await DioUtil() |
| 27 | .request<Map<String, dynamic>>( | 27 | .request<Map<String, dynamic>>( |
| 28 | context, Method.get, HttpUrl.reserve_detail, | 28 | context, Method.get, HttpUrl.reserve_detail, |
| 29 | - data: params) | 29 | + data: params, showLoading: false) |
| 30 | .catchError((error) { | 30 | .catchError((error) { |
| 31 | print(error.toString()); | 31 | print(error.toString()); |
| 32 | if (error is MyError) { | 32 | if (error is MyError) { |
| @@ -69,7 +69,7 @@ class NotebookDetailModel extends ChangeNotifier { | @@ -69,7 +69,7 @@ class NotebookDetailModel extends ChangeNotifier { | ||
| 69 | }; | 69 | }; |
| 70 | BaseResp<Map<String, dynamic>> baseResp = await DioUtil() | 70 | BaseResp<Map<String, dynamic>> baseResp = await DioUtil() |
| 71 | .request<Map<String, dynamic>>(context, Method.get, HttpUrl.sellerinfo, | 71 | .request<Map<String, dynamic>>(context, Method.get, HttpUrl.sellerinfo, |
| 72 | - data: params) | 72 | + data: params, showLoading: false) |
| 73 | .catchError((error) { | 73 | .catchError((error) { |
| 74 | print(error.toString()); | 74 | print(error.toString()); |
| 75 | }); | 75 | }); |
-
Please register or login to post a comment