Commit 5fea93a0e7c40b84c1c6b635bb41d139c32e9edd

Authored by “gaiyaguang”
1 parent 40e8d2d5

异常状态

... ... @@ -178,7 +178,7 @@ class DioUtil {
// Utils.showToast("网络错误,请稍后重试");
throw MyError(type: 1);
}
// if (showLoading) Loading.showLoading(context);
if (showLoading) Loading.showLoading(context);
try {
print('--------' + path + '---------');
Response response = await _dio.request(path,
... ...
... ... @@ -424,7 +424,6 @@ class NotebookDetailPageState extends State<NotebookDetailPage> {
color: MyColours.color_ffffff,
child: Column(
children: <Widget>[
SizedBox(height: ScreenUtil.statusBarHeight),
MyAppBar(
"订座详情",
showBack: true,
... ...
... ... @@ -23,7 +23,7 @@ class ChooseTableModel with ChangeNotifier {
}
BaseResp<List> baseResp = await DioUtil()
.request<List>(context, Method.get, HttpUrl.table_list,
data: params, showLoading: true)
data: params, showLoading: false)
.catchError((error) {
print(error.toString());
if (error is MyError) {
... ...
... ... @@ -26,7 +26,7 @@ class NotebookDetailModel extends ChangeNotifier {
BaseResp<Map<String, dynamic>> baseResp = await DioUtil()
.request<Map<String, dynamic>>(
context, Method.get, HttpUrl.reserve_detail,
data: params)
data: params, showLoading: false)
.catchError((error) {
print(error.toString());
if (error is MyError) {
... ... @@ -69,7 +69,7 @@ class NotebookDetailModel extends ChangeNotifier {
};
BaseResp<Map<String, dynamic>> baseResp = await DioUtil()
.request<Map<String, dynamic>>(context, Method.get, HttpUrl.sellerinfo,
data: params)
data: params, showLoading: false)
.catchError((error) {
print(error.toString());
});
... ...