|
...
|
...
|
@@ -206,7 +206,7 @@ class MenuManageProvider extends ChangeNotifier { |
|
|
|
Future<String> getStoreWineSaiYouText(BuildContext context,
|
|
|
|
{bool showLoading = true, bool needToast = true}) async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
'sid': Provider.of<UserModel>(context,listen: false).user.sellerid
|
|
|
|
'sid': Provider.of<UserModel>(context, listen: false).user.sellerid
|
|
|
|
};
|
|
|
|
BaseResp<dynamic> baseResp = await DioUtil()
|
|
|
|
.request<dynamic>(
|
|
...
|
...
|
@@ -232,13 +232,13 @@ class MenuManageProvider extends ChangeNotifier { |
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 配置商家存酒短信可变内容
|
|
|
|
Future<bool> setStoreWineSaiYouText(BuildContext context, Map<String, dynamic> params,
|
|
|
|
// 配置商家存酒短信可变内容
|
|
|
|
Future<bool> setStoreWineSaiYouText(
|
|
|
|
BuildContext context, Map<String, dynamic> params,
|
|
|
|
{bool showLoading = true, bool needToast = true}) async {
|
|
|
|
BaseResp<dynamic> baseResp = await DioUtil()
|
|
|
|
.request<dynamic>(context, Method.post, HttpUrl.set_store_wine_sai_you_text,
|
|
|
|
.request<dynamic>(
|
|
|
|
context, Method.post, HttpUrl.set_store_wine_sai_you_text,
|
|
|
|
data: params, showLoading: showLoading)
|
|
|
|
.catchError((error) {
|
|
|
|
print(error.toString());
|
|
...
|
...
|
@@ -268,7 +268,6 @@ class MenuManageProvider extends ChangeNotifier { |
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 设置订座商家配置信息
|
|
|
|
Future<bool> setConfing(BuildContext context, Map<String, String> params,
|
|
|
|
{bool showLoading = true, bool needToast = true}) async {
|
|
...
|
...
|
@@ -360,7 +359,9 @@ class MenuManageProvider extends ChangeNotifier { |
|
|
|
} else {
|
|
|
|
List menu = baseResp.data[0]['list'];
|
|
|
|
for (int i = 0; i < menu.length; i++) {
|
|
|
|
menuModel.add(MenuModel.fromJson(menu[i]));
|
|
|
|
if (menu[i]['class_type'] != '1') {
|
|
|
|
menuModel.add(MenuModel.fromJson(menu[i]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print(menuModel);
|
|
|
|
pageState = PageState.Success;
|
|
...
|
...
|
@@ -483,13 +484,13 @@ class MenuManageProvider extends ChangeNotifier { |
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// 设置营销菜品移动
|
|
|
|
/// 设置营销菜品移动
|
|
|
|
Future<bool> setCookbookOrderMarkeclass(
|
|
|
|
BuildContext context, Map<String, String> params,
|
|
|
|
{showLoading = false}) async {
|
|
|
|
BaseResp<dynamic> baseResp = await DioUtil()
|
|
|
|
.request<dynamic>(context, Method.post, HttpUrl.set_cookbook_order_markeclass,
|
|
|
|
.request<dynamic>(
|
|
|
|
context, Method.post, HttpUrl.set_cookbook_order_markeclass,
|
|
|
|
data: params, showLoading: showLoading)
|
|
|
|
.catchError((error) {
|
|
|
|
print(error.toString());
|
|
...
|
...
|
@@ -506,7 +507,6 @@ class MenuManageProvider extends ChangeNotifier { |
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///修改菜品
|
|
|
|
Future<bool> setCookbookById(BuildContext context, Map<String, String> params,
|
|
|
|
{showLoading = false}) async {
|
...
|
...
|
|