Showing
1 changed file
with
12 additions
and
12 deletions
| @@ -206,7 +206,7 @@ class MenuManageProvider extends ChangeNotifier { | @@ -206,7 +206,7 @@ class MenuManageProvider extends ChangeNotifier { | ||
| 206 | Future<String> getStoreWineSaiYouText(BuildContext context, | 206 | Future<String> getStoreWineSaiYouText(BuildContext context, |
| 207 | {bool showLoading = true, bool needToast = true}) async { | 207 | {bool showLoading = true, bool needToast = true}) async { |
| 208 | Map<String, String> params = { | 208 | Map<String, String> params = { |
| 209 | - 'sid': Provider.of<UserModel>(context,listen: false).user.sellerid | 209 | + 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid |
| 210 | }; | 210 | }; |
| 211 | BaseResp<dynamic> baseResp = await DioUtil() | 211 | BaseResp<dynamic> baseResp = await DioUtil() |
| 212 | .request<dynamic>( | 212 | .request<dynamic>( |
| @@ -232,13 +232,13 @@ class MenuManageProvider extends ChangeNotifier { | @@ -232,13 +232,13 @@ class MenuManageProvider extends ChangeNotifier { | ||
| 232 | return ''; | 232 | return ''; |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | - | ||
| 236 | - | ||
| 237 | - // 配置商家存酒短信可变内容 | ||
| 238 | - Future<bool> setStoreWineSaiYouText(BuildContext context, Map<String, dynamic> params, | 235 | + // 配置商家存酒短信可变内容 |
| 236 | + Future<bool> setStoreWineSaiYouText( | ||
| 237 | + BuildContext context, Map<String, dynamic> params, | ||
| 239 | {bool showLoading = true, bool needToast = true}) async { | 238 | {bool showLoading = true, bool needToast = true}) async { |
| 240 | BaseResp<dynamic> baseResp = await DioUtil() | 239 | BaseResp<dynamic> baseResp = await DioUtil() |
| 241 | - .request<dynamic>(context, Method.post, HttpUrl.set_store_wine_sai_you_text, | 240 | + .request<dynamic>( |
| 241 | + context, Method.post, HttpUrl.set_store_wine_sai_you_text, | ||
| 242 | data: params, showLoading: showLoading) | 242 | data: params, showLoading: showLoading) |
| 243 | .catchError((error) { | 243 | .catchError((error) { |
| 244 | print(error.toString()); | 244 | print(error.toString()); |
| @@ -268,7 +268,6 @@ class MenuManageProvider extends ChangeNotifier { | @@ -268,7 +268,6 @@ class MenuManageProvider extends ChangeNotifier { | ||
| 268 | return false; | 268 | return false; |
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | - | ||
| 272 | // 设置订座商家配置信息 | 271 | // 设置订座商家配置信息 |
| 273 | Future<bool> setConfing(BuildContext context, Map<String, String> params, | 272 | Future<bool> setConfing(BuildContext context, Map<String, String> params, |
| 274 | {bool showLoading = true, bool needToast = true}) async { | 273 | {bool showLoading = true, bool needToast = true}) async { |
| @@ -360,7 +359,9 @@ class MenuManageProvider extends ChangeNotifier { | @@ -360,7 +359,9 @@ class MenuManageProvider extends ChangeNotifier { | ||
| 360 | } else { | 359 | } else { |
| 361 | List menu = baseResp.data[0]['list']; | 360 | List menu = baseResp.data[0]['list']; |
| 362 | for (int i = 0; i < menu.length; i++) { | 361 | for (int i = 0; i < menu.length; i++) { |
| 363 | - menuModel.add(MenuModel.fromJson(menu[i])); | 362 | + if (menu[i]['class_type'] != '1') { |
| 363 | + menuModel.add(MenuModel.fromJson(menu[i])); | ||
| 364 | + } | ||
| 364 | } | 365 | } |
| 365 | print(menuModel); | 366 | print(menuModel); |
| 366 | pageState = PageState.Success; | 367 | pageState = PageState.Success; |
| @@ -483,13 +484,13 @@ class MenuManageProvider extends ChangeNotifier { | @@ -483,13 +484,13 @@ class MenuManageProvider extends ChangeNotifier { | ||
| 483 | return false; | 484 | return false; |
| 484 | } | 485 | } |
| 485 | 486 | ||
| 486 | - | ||
| 487 | - /// 设置营销菜品移动 | 487 | + /// 设置营销菜品移动 |
| 488 | Future<bool> setCookbookOrderMarkeclass( | 488 | Future<bool> setCookbookOrderMarkeclass( |
| 489 | BuildContext context, Map<String, String> params, | 489 | BuildContext context, Map<String, String> params, |
| 490 | {showLoading = false}) async { | 490 | {showLoading = false}) async { |
| 491 | BaseResp<dynamic> baseResp = await DioUtil() | 491 | BaseResp<dynamic> baseResp = await DioUtil() |
| 492 | - .request<dynamic>(context, Method.post, HttpUrl.set_cookbook_order_markeclass, | 492 | + .request<dynamic>( |
| 493 | + context, Method.post, HttpUrl.set_cookbook_order_markeclass, | ||
| 493 | data: params, showLoading: showLoading) | 494 | data: params, showLoading: showLoading) |
| 494 | .catchError((error) { | 495 | .catchError((error) { |
| 495 | print(error.toString()); | 496 | print(error.toString()); |
| @@ -506,7 +507,6 @@ class MenuManageProvider extends ChangeNotifier { | @@ -506,7 +507,6 @@ class MenuManageProvider extends ChangeNotifier { | ||
| 506 | return false; | 507 | return false; |
| 507 | } | 508 | } |
| 508 | 509 | ||
| 509 | - | ||
| 510 | ///修改菜品 | 510 | ///修改菜品 |
| 511 | Future<bool> setCookbookById(BuildContext context, Map<String, String> params, | 511 | Future<bool> setCookbookById(BuildContext context, Map<String, String> params, |
| 512 | {showLoading = false}) async { | 512 | {showLoading = false}) async { |
-
Please register or login to post a comment