Commit 46cb69694b74eb55d2b00f546ce026f3a4274712

Authored by wdn127929
1 parent 2a064d0b

挪位置,我的页面灰色UI缺失,个人信息模块是否需要

@@ -23,6 +23,7 @@ import 'package:provider/provider.dart'; @@ -23,6 +23,7 @@ import 'package:provider/provider.dart';
23 23
24 import '../../../constant/state.dart'; 24 import '../../../constant/state.dart';
25 import '../../../provider/comment_manage_provider.dart'; 25 import '../../../provider/comment_manage_provider.dart';
  26 +import '../../../route/navigator_util.dart';
26 import '../../../utils/event_bus.dart'; 27 import '../../../utils/event_bus.dart';
27 import '../../../utils/screen_util.dart'; 28 import '../../../utils/screen_util.dart';
28 import '../../../utils/utils.dart'; 29 import '../../../utils/utils.dart';
@@ -407,7 +408,13 @@ class _CommentManageHomePageState extends State<CommentManageHomePage> { @@ -407,7 +408,13 @@ class _CommentManageHomePageState extends State<CommentManageHomePage> {
407 Provider.of<CommentManageProvider>(context, listen: true); 408 Provider.of<CommentManageProvider>(context, listen: true);
408 return Scaffold( 409 return Scaffold(
409 backgroundColor: MyColours.color_ffffff, 410 backgroundColor: MyColours.color_ffffff,
410 - appBar: SystemAppBar('评价管理'), 411 + appBar: SystemAppBar('评价管理',
  412 + rightImgName: 'set_g.png',
  413 + onTapRight: () {
  414 + NavigatorUtil.goCommentsSettingPage(context);
  415 +
  416 + },
  417 + ),
411 body: Consumer<CommentManageProvider>(builder: (context1, model, _) { 418 body: Consumer<CommentManageProvider>(builder: (context1, model, _) {
412 if (model.pageState != PageState.Success) { 419 if (model.pageState != PageState.Success) {
413 return ExceptionPage( 420 return ExceptionPage(
@@ -179,204 +179,204 @@ class _MarketingCenterHomePageState extends State<MarketingCenterHomePage> { @@ -179,204 +179,204 @@ class _MarketingCenterHomePageState extends State<MarketingCenterHomePage> {
179 child: SingleChildScrollView( 179 child: SingleChildScrollView(
180 child: Column( 180 child: Column(
181 children: [ 181 children: [
182 - InkWell(  
183 - onTap: () {  
184 - if (!collectStoreProvider.sellerRecharge) {  
185 - //没有购买优惠券模块  
186 - //提示购买 182 + // InkWell(
  183 + // onTap: () {
  184 + // if (!collectStoreProvider.sellerRecharge) {
  185 + // //没有购买优惠券模块
  186 + // //提示购买
187 187
188 - DialogUtil.showSellerVersionBuyDialog(  
189 - context, '储值营销', (v) {});  
190 - return;  
191 - }  
192 - NavigatorUtil.goRechargeHomePage(context);  
193 - },  
194 - child: Padding(  
195 - padding: EdgeInsets.only(  
196 - left: w(16),  
197 - top: w(12),  
198 - bottom: w(12),  
199 - right: w(12)),  
200 - child: Row(  
201 - children: [  
202 - Text(  
203 - '会员充值优惠活动',  
204 - style: TextStyle(  
205 - color: MyColours.color_515151,  
206 - fontSize: ScreenUtil().setWidth(32)),  
207 - ),  
208 - Spacer(),  
209 - Container(  
210 - padding: EdgeInsets.symmetric(  
211 - horizontal: w(7), vertical: w(4)),  
212 - child: Image.asset(  
213 - "assets/arrow_right_new.png",  
214 - width: ScreenUtil().setWidth(18),  
215 - height: ScreenUtil().setWidth(32),  
216 - ),  
217 - )  
218 - ],  
219 - ))),  
220 - Padding(  
221 - padding: EdgeInsets.only(left: w(16)),  
222 - child: MyDivider(double.infinity, w(0.5),  
223 - color: MyColours.color_E7E7E7)),  
224 - VEmptyView(24),  
225 - InkWell(  
226 - onTap: () {  
227 - if (!collectStoreProvider.sellerOrderCustomer) {  
228 - //没有购买提前点餐模块  
229 - //提示购买 188 + // DialogUtil.showSellerVersionBuyDialog(
  189 + // context, '储值营销', (v) {});
  190 + // return;
  191 + // }
  192 + // NavigatorUtil.goRechargeHomePage(context);
  193 + // },
  194 + // child: Padding(
  195 + // padding: EdgeInsets.only(
  196 + // left: w(16),
  197 + // top: w(12),
  198 + // bottom: w(12),
  199 + // right: w(12)),
  200 + // child: Row(
  201 + // children: [
  202 + // Text(
  203 + // '会员充值优惠活动',
  204 + // style: TextStyle(
  205 + // color: MyColours.color_515151,
  206 + // fontSize: ScreenUtil().setWidth(32)),
  207 + // ),
  208 + // Spacer(),
  209 + // Container(
  210 + // padding: EdgeInsets.symmetric(
  211 + // horizontal: w(7), vertical: w(4)),
  212 + // child: Image.asset(
  213 + // "assets/arrow_right_new.png",
  214 + // width: ScreenUtil().setWidth(18),
  215 + // height: ScreenUtil().setWidth(32),
  216 + // ),
  217 + // )
  218 + // ],
  219 + // ))),
  220 + // Padding(
  221 + // padding: EdgeInsets.only(left: w(16)),
  222 + // child: MyDivider(double.infinity, w(0.5),
  223 + // color: MyColours.color_E7E7E7)),
  224 + // VEmptyView(24),
  225 + // InkWell(
  226 + // onTap: () {
  227 + // if (!collectStoreProvider.sellerOrderCustomer) {
  228 + // //没有购买提前点餐模块
  229 + // //提示购买
230 230
231 - DialogUtil.showSellerVersionBuyDialog(  
232 - context, '提前点餐', (v) {});  
233 - return;  
234 - }  
235 - NavigatorUtil.goOrderSettingPage(context);  
236 - },  
237 - child: Padding(  
238 - padding: EdgeInsets.only(  
239 - left: w(16),  
240 - top: w(12),  
241 - bottom: w(12),  
242 - right: w(12)),  
243 - child: Row(  
244 - children: [  
245 - Text(  
246 - '提前点菜',  
247 - style: TextStyle(  
248 - color: MyColours.color_515151,  
249 - fontSize: ScreenUtil().setWidth(32)),  
250 - ),  
251 - Spacer(),  
252 - Container(  
253 - padding: EdgeInsets.symmetric(  
254 - horizontal: w(7), vertical: w(4)),  
255 - child: Image.asset(  
256 - "assets/arrow_right_new.png",  
257 - width: ScreenUtil().setWidth(18),  
258 - height: ScreenUtil().setWidth(32),  
259 - ),  
260 - )  
261 - ],  
262 - ))),  
263 - Padding(  
264 - padding: EdgeInsets.only(left: w(16)),  
265 - child: MyDivider(double.infinity, w(0.5),  
266 - color: MyColours.color_E7E7E7)),  
267 - VEmptyView(24),  
268 - InkWell(  
269 - onTap: () {  
270 - if (!collectStoreProvider.sellerOrderManager) {  
271 - //没有购买经理排菜模块  
272 - //提示购买 231 + // DialogUtil.showSellerVersionBuyDialog(
  232 + // context, '提前点餐', (v) {});
  233 + // return;
  234 + // }
  235 + // NavigatorUtil.goOrderSettingPage(context);
  236 + // },
  237 + // child: Padding(
  238 + // padding: EdgeInsets.only(
  239 + // left: w(16),
  240 + // top: w(12),
  241 + // bottom: w(12),
  242 + // right: w(12)),
  243 + // child: Row(
  244 + // children: [
  245 + // Text(
  246 + // '提前点菜',
  247 + // style: TextStyle(
  248 + // color: MyColours.color_515151,
  249 + // fontSize: ScreenUtil().setWidth(32)),
  250 + // ),
  251 + // Spacer(),
  252 + // Container(
  253 + // padding: EdgeInsets.symmetric(
  254 + // horizontal: w(7), vertical: w(4)),
  255 + // child: Image.asset(
  256 + // "assets/arrow_right_new.png",
  257 + // width: ScreenUtil().setWidth(18),
  258 + // height: ScreenUtil().setWidth(32),
  259 + // ),
  260 + // )
  261 + // ],
  262 + // ))),
  263 + // Padding(
  264 + // padding: EdgeInsets.only(left: w(16)),
  265 + // child: MyDivider(double.infinity, w(0.5),
  266 + // color: MyColours.color_E7E7E7)),
  267 + // VEmptyView(24),
  268 + // InkWell(
  269 + // onTap: () {
  270 + // if (!collectStoreProvider.sellerOrderManager) {
  271 + // //没有购买经理排菜模块
  272 + // //提示购买
273 273
274 - DialogUtil.showSellerVersionBuyDialog(  
275 - context, '经理排菜', (v) {});  
276 - return;  
277 - }  
278 - NavigatorUtil.goOrderSettingManagerPage(context);  
279 - },  
280 - child: Padding(  
281 - padding: EdgeInsets.only(  
282 - left: w(16),  
283 - top: w(12),  
284 - bottom: w(12),  
285 - right: w(12)),  
286 - child: Row(  
287 - children: [  
288 - Text(  
289 - '经理预排菜设置',  
290 - style: TextStyle(  
291 - color: MyColours.color_515151,  
292 - fontSize: ScreenUtil().setWidth(32)),  
293 - ),  
294 - Spacer(),  
295 - Container(  
296 - padding: EdgeInsets.symmetric(  
297 - horizontal: w(7), vertical: w(4)),  
298 - child: Image.asset(  
299 - "assets/arrow_right_new.png",  
300 - width: ScreenUtil().setWidth(18),  
301 - height: ScreenUtil().setWidth(32),  
302 - ),  
303 - )  
304 - ],  
305 - ))),  
306 - Padding(  
307 - padding: EdgeInsets.only(left: w(16)),  
308 - child: MyDivider(double.infinity, w(0.5),  
309 - color: MyColours.color_E7E7E7)),  
310 - VEmptyView(24),  
311 - InkWell(  
312 - onTap: () {  
313 - NavigatorUtil.goCommentsSettingPage(context);  
314 - },  
315 - child: Padding(  
316 - padding: EdgeInsets.only(  
317 - left: w(16),  
318 - top: w(12),  
319 - bottom: w(12),  
320 - right: w(12)),  
321 - child: Row(  
322 - children: [  
323 - Text(  
324 - '用户评价反馈',  
325 - style: TextStyle(  
326 - color: MyColours.color_515151,  
327 - fontSize: ScreenUtil().setWidth(32)),  
328 - ),  
329 - Spacer(),  
330 - Container(  
331 - padding: EdgeInsets.symmetric(  
332 - horizontal: w(7), vertical: w(4)),  
333 - child: Image.asset(  
334 - "assets/arrow_right_new.png",  
335 - width: ScreenUtil().setWidth(18),  
336 - height: ScreenUtil().setWidth(32),  
337 - ),  
338 - )  
339 - ],  
340 - ))),  
341 - Padding(  
342 - padding: EdgeInsets.only(left: w(16)),  
343 - child: MyDivider(double.infinity, w(0.5),  
344 - color: MyColours.color_E7E7E7)),  
345 - VEmptyView(24),  
346 - InkWell(  
347 - onTap: () {  
348 - NavigatorUtil.goCustomerNoticeSettingPage(context);  
349 - },  
350 - child: Padding(  
351 - padding: EdgeInsets.only(  
352 - left: w(16),  
353 - top: w(12),  
354 - bottom: w(12),  
355 - right: w(12)),  
356 - child: Row(  
357 - children: [  
358 - Text(  
359 - '客户通知设置',  
360 - style: TextStyle(  
361 - color: MyColours.color_515151,  
362 - fontSize: ScreenUtil().setWidth(32)),  
363 - ),  
364 - Spacer(),  
365 - Container(  
366 - padding: EdgeInsets.symmetric(  
367 - horizontal: w(7), vertical: w(4)),  
368 - child: Image.asset(  
369 - "assets/arrow_right_new.png",  
370 - width: ScreenUtil().setWidth(18),  
371 - height: ScreenUtil().setWidth(32),  
372 - ),  
373 - )  
374 - ],  
375 - ))),  
376 - Padding(  
377 - padding: EdgeInsets.only(left: w(16)),  
378 - child: MyDivider(double.infinity, w(0.5),  
379 - color: MyColours.color_E7E7E7)), 274 + // DialogUtil.showSellerVersionBuyDialog(
  275 + // context, '经理排菜', (v) {});
  276 + // return;
  277 + // }
  278 + // NavigatorUtil.goOrderSettingManagerPage(context);
  279 + // },
  280 + // child: Padding(
  281 + // padding: EdgeInsets.only(
  282 + // left: w(16),
  283 + // top: w(12),
  284 + // bottom: w(12),
  285 + // right: w(12)),
  286 + // child: Row(
  287 + // children: [
  288 + // Text(
  289 + // '经理预排菜设置',
  290 + // style: TextStyle(
  291 + // color: MyColours.color_515151,
  292 + // fontSize: ScreenUtil().setWidth(32)),
  293 + // ),
  294 + // Spacer(),
  295 + // Container(
  296 + // padding: EdgeInsets.symmetric(
  297 + // horizontal: w(7), vertical: w(4)),
  298 + // child: Image.asset(
  299 + // "assets/arrow_right_new.png",
  300 + // width: ScreenUtil().setWidth(18),
  301 + // height: ScreenUtil().setWidth(32),
  302 + // ),
  303 + // )
  304 + // ],
  305 + // ))),
  306 + // Padding(
  307 + // padding: EdgeInsets.only(left: w(16)),
  308 + // child: MyDivider(double.infinity, w(0.5),
  309 + // color: MyColours.color_E7E7E7)),
  310 + // VEmptyView(24),
  311 + // InkWell(
  312 + // onTap: () {
  313 + // NavigatorUtil.goCommentsSettingPage(context);
  314 + // },
  315 + // child: Padding(
  316 + // padding: EdgeInsets.only(
  317 + // left: w(16),
  318 + // top: w(12),
  319 + // bottom: w(12),
  320 + // right: w(12)),
  321 + // child: Row(
  322 + // children: [
  323 + // Text(
  324 + // '用户评价反馈',
  325 + // style: TextStyle(
  326 + // color: MyColours.color_515151,
  327 + // fontSize: ScreenUtil().setWidth(32)),
  328 + // ),
  329 + // Spacer(),
  330 + // Container(
  331 + // padding: EdgeInsets.symmetric(
  332 + // horizontal: w(7), vertical: w(4)),
  333 + // child: Image.asset(
  334 + // "assets/arrow_right_new.png",
  335 + // width: ScreenUtil().setWidth(18),
  336 + // height: ScreenUtil().setWidth(32),
  337 + // ),
  338 + // )
  339 + // ],
  340 + // ))),
  341 + // Padding(
  342 + // padding: EdgeInsets.only(left: w(16)),
  343 + // child: MyDivider(double.infinity, w(0.5),
  344 + // color: MyColours.color_E7E7E7)),
  345 + // VEmptyView(24),
  346 + // InkWell(
  347 + // onTap: () {
  348 + // NavigatorUtil.goCustomerNoticeSettingPage(context);
  349 + // },
  350 + // child: Padding(
  351 + // padding: EdgeInsets.only(
  352 + // left: w(16),
  353 + // top: w(12),
  354 + // bottom: w(12),
  355 + // right: w(12)),
  356 + // child: Row(
  357 + // children: [
  358 + // Text(
  359 + // '客户通知设置',
  360 + // style: TextStyle(
  361 + // color: MyColours.color_515151,
  362 + // fontSize: ScreenUtil().setWidth(32)),
  363 + // ),
  364 + // Spacer(),
  365 + // Container(
  366 + // padding: EdgeInsets.symmetric(
  367 + // horizontal: w(7), vertical: w(4)),
  368 + // child: Image.asset(
  369 + // "assets/arrow_right_new.png",
  370 + // width: ScreenUtil().setWidth(18),
  371 + // height: ScreenUtil().setWidth(32),
  372 + // ),
  373 + // )
  374 + // ],
  375 + // ))),
  376 + // Padding(
  377 + // padding: EdgeInsets.only(left: w(16)),
  378 + // child: MyDivider(double.infinity, w(0.5),
  379 + // color: MyColours.color_E7E7E7)),
380 VEmptyView(24), 380 VEmptyView(24),
381 InkWell( 381 InkWell(
382 onTap: () { 382 onTap: () {
@@ -825,8 +825,8 @@ class _MenuManagePageState extends State<MenuManagePage> { @@ -825,8 +825,8 @@ class _MenuManagePageState extends State<MenuManagePage> {
825 '菜单管理', 825 '菜单管理',
826 rightImgName: 'set_g.png', 826 rightImgName: 'set_g.png',
827 onTapRight: () { 827 onTapRight: () {
828 - NavigatorUtil.goMenuThemeColorSetPage(  
829 - context, {'object': menuManageProvider.menuModel}); 828 + NavigatorUtil.goMenuSettingHomePage(context, {'object': menuManageProvider.menuModel});
  829 +
830 }, 830 },
831 ), 831 ),
832 body: Consumer<MenuManageProvider>( 832 body: Consumer<MenuManageProvider>(
  1 +
  2 +import 'package:flutter/material.dart';
  3 +import 'package:provider/provider.dart';
  4 +
  5 +import '../../../models/cookbook_model.dart';
  6 +import '../../../provider/collect_store_provider.dart';
  7 +import '../../../res/colors.dart';
  8 +import '../../../route/navigator_util.dart';
  9 +import '../../../utils/dialog_util.dart';
  10 +import '../../../utils/screen_util.dart';
  11 +import '../../../widgets/system_app_bar.dart';
  12 +import '../../../widgets/v_empty_view.dart';
  13 +
  14 +
  15 +/*
  16 +菜单设置home页
  17 +*/
  18 +class MenuSettingHomePage extends StatefulWidget {
  19 + final List<MenuModel> menuModel;
  20 + const MenuSettingHomePage({ Key key ,this.menuModel}) : super(key: key);
  21 +
  22 + @override
  23 + _MenuSettingHomePageState createState() => _MenuSettingHomePageState();
  24 +}
  25 +
  26 +class _MenuSettingHomePageState extends State<MenuSettingHomePage> {
  27 + CollectStoreProvider collectStoreProvider;
  28 +
  29 +
  30 +
  31 + @override
  32 + void initState() {
  33 + super.initState();
  34 +
  35 + WidgetsBinding.instance.addPostFrameCallback((_) {
  36 + getSellerVersion();
  37 +
  38 +
  39 + });
  40 + }
  41 + getSellerVersion() async {
  42 + await collectStoreProvider.getSellerVersion(context);
  43 +
  44 + setState(() {});
  45 + }
  46 + _itemWidget(String title, {GestureTapCallback onTap}) {
  47 + return InkWell(
  48 + onTap: onTap,
  49 + child: Container(
  50 + height: w(47),
  51 + margin: EdgeInsets.only(bottom: w(12), left: w(16)),
  52 + decoration: BoxDecoration(
  53 + border: Border(
  54 + bottom: BorderSide(
  55 + color: MyColours.color_E7E7E7, width: w(1)))),
  56 + child: Row(
  57 + mainAxisAlignment: MainAxisAlignment.spaceBetween,
  58 + children: [
  59 + Text(
  60 + title,
  61 + style: TextStyle(
  62 + color: MyColours.color_515151, fontSize: font(16)),
  63 + ),
  64 + Padding(
  65 + padding: EdgeInsets.only(right: w(12)),
  66 + child: Image.asset(
  67 + "assets/arrow_right_new.png",
  68 + width: w(7),
  69 + height: w(11),
  70 + ),
  71 + )
  72 + ],
  73 + )));
  74 + }
  75 +
  76 + @override
  77 + Widget build(BuildContext context) {
  78 + collectStoreProvider =
  79 + Provider.of<CollectStoreProvider>(context, listen: true);
  80 + return Scaffold(
  81 + backgroundColor: MyColours.color_ffffff,
  82 + appBar: SystemAppBar('菜单管理配置'),
  83 + body: SingleChildScrollView(
  84 + child: Column(
  85 + children: [
  86 + VEmptyView(40),
  87 + _itemWidget('客人所见菜单主题配置', onTap: () {
  88 + NavigatorUtil.goMenuThemeColorSetPage(
  89 + context, {'object': widget.menuModel});
  90 + }),
  91 + _itemWidget('提前点菜设置', onTap: () async {
  92 + if (!collectStoreProvider.sellerOrderCustomer) {
  93 + //没有购买提前点餐模块
  94 + //提示购买
  95 +
  96 + DialogUtil.showSellerVersionBuyDialog(
  97 + context, '提前点餐', (v) {});
  98 + return;
  99 + }
  100 + NavigatorUtil.goOrderSettingPage(context);
  101 +
  102 + }),
  103 +
  104 + ],
  105 + ),
  106 + ),
  107 + );
  108 + }
  109 +}
@@ -1591,6 +1591,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -1591,6 +1591,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
1591 context, '客户通知')) { 1591 context, '客户通知')) {
1592 // NavigatorUtil.goMenuManagePage( 1592 // NavigatorUtil.goMenuManagePage(
1593 // context); 1593 // context);
  1594 + NavigatorUtil.goCustomerNoticeSettingPage(context);
1594 } 1595 }
1595 }, 1596 },
1596 child: _item( 1597 child: _item(
@@ -26,6 +26,7 @@ import '../../../provider/plan_dish_provider.dart'; @@ -26,6 +26,7 @@ import '../../../provider/plan_dish_provider.dart';
26 26
27 class MyPlanDishHomePage extends StatefulWidget { 27 class MyPlanDishHomePage extends StatefulWidget {
28 final bool needRefrsh; 28 final bool needRefrsh;
  29 +
29 MyPlanDishHomePage({Key key, this.needRefrsh = false}) : super(key: key); 30 MyPlanDishHomePage({Key key, this.needRefrsh = false}) : super(key: key);
30 31
31 @override 32 @override
@@ -132,15 +133,22 @@ class _MyPlanDishHomePageState extends State<MyPlanDishHomePage> @@ -132,15 +133,22 @@ class _MyPlanDishHomePageState extends State<MyPlanDishHomePage>
132 133
133 return Scaffold( 134 return Scaffold(
134 backgroundColor: MyColours.color_f3f3f3, 135 backgroundColor: MyColours.color_f3f3f3,
135 - appBar: SystemAppBar('排菜与套餐', onTap: () {  
136 - // if (widget.needRefrsh) {  
137 - // EventBus().emit('refresh_coupon_invitation');  
138 - // } else {  
139 - // EventBus().emit('changeStatusColor');  
140 - // } 136 + appBar: SystemAppBar(
  137 + '排菜与套餐',
  138 + onTap: () {
  139 + // if (widget.needRefrsh) {
  140 + // EventBus().emit('refresh_coupon_invitation');
  141 + // } else {
  142 + // EventBus().emit('changeStatusColor');
  143 + // }
141 144
142 - Navigator.of(context).pop();  
143 - }), 145 + Navigator.of(context).pop();
  146 + },
  147 + rightImgName: 'set_g.png',
  148 + onTapRight: () {
  149 + NavigatorUtil.goOrderSettingManagerPage(context);
  150 + },
  151 + ),
144 body: Column( 152 body: Column(
145 children: <Widget>[ 153 children: <Widget>[
146 Container( 154 Container(
@@ -1359,7 +1359,9 @@ class NavigatorUtil { @@ -1359,7 +1359,9 @@ class NavigatorUtil {
1359 static Future<dynamic> goMyPlanDishHomePage( 1359 static Future<dynamic> goMyPlanDishHomePage(
1360 BuildContext context, { 1360 BuildContext context, {
1361 replace = false, 1361 replace = false,
  1362 +
1362 }) { 1363 }) {
  1364 +
1363 // if (invoice != null) { 1365 // if (invoice != null) {
1364 // return _navigateTo(context, 1366 // return _navigateTo(context,
1365 // "${Routes.merge_table_select_page}?invoice=${FluroConvertUtils.object2string(invoice)}", 1367 // "${Routes.merge_table_select_page}?invoice=${FluroConvertUtils.object2string(invoice)}",
@@ -2303,4 +2305,25 @@ class NavigatorUtil { @@ -2303,4 +2305,25 @@ class NavigatorUtil {
2303 return _navigateTo(context, "${Routes.table_setting_home_page}", 2305 return _navigateTo(context, "${Routes.table_setting_home_page}",
2304 replace: replace); 2306 replace: replace);
2305 } 2307 }
  2308 +
  2309 +
  2310 +
  2311 + ///菜单设置home页面
  2312 + static Future<dynamic> goMenuSettingHomePage(
  2313 + BuildContext context,
  2314 + Map object,
  2315 + {
  2316 + replace = false,
  2317 + }) {
  2318 + return _navigateTo(context, "${Routes.menu_setting_home_page}?object=${FluroConvertUtils.object2string(object)}",
  2319 + replace: replace);
  2320 + }
  2321 +
  2322 +
  2323 +
  2324 +
  2325 +
  2326 +
  2327 +
  2328 +
2306 } 2329 }
@@ -252,6 +252,7 @@ import '../pages/my/menu_type/menu_add_dishes_page.dart'; @@ -252,6 +252,7 @@ import '../pages/my/menu_type/menu_add_dishes_page.dart';
252 import '../pages/my/menu_type/menu_dish_method_page.dart'; 252 import '../pages/my/menu_type/menu_dish_method_page.dart';
253 import '../pages/my/menu_type/menu_manage_page.dart'; 253 import '../pages/my/menu_type/menu_manage_page.dart';
254 // import '../pages/my/menu_type/menu_manage_page_new.dart'; 254 // import '../pages/my/menu_type/menu_manage_page_new.dart';
  255 +import '../pages/my/menu_type/menu_setting_home_page.dart';
255 import '../pages/my/menu_type/menu_theme_color_set_page.dart'; 256 import '../pages/my/menu_type/menu_theme_color_set_page.dart';
256 import '../pages/my/menu_type/menu_unit_page.dart'; 257 import '../pages/my/menu_type/menu_unit_page.dart';
257 import '../pages/my/plan_dish/final_plan_dish_page.dart'; 258 import '../pages/my/plan_dish/final_plan_dish_page.dart';
@@ -2516,6 +2517,7 @@ var myPlanDishHomePageHandle = new Handler( @@ -2516,6 +2517,7 @@ var myPlanDishHomePageHandle = new Handler(
2516 // res.add(TableList.fromJson(item)); 2517 // res.add(TableList.fromJson(item));
2517 // } 2518 // }
2518 // } 2519 // }
  2520 +
2519 return ChangeNotifierProvider<PlanDishProvider>( 2521 return ChangeNotifierProvider<PlanDishProvider>(
2520 create: (_) => PlanDishProvider(), child: MyPlanDishHomePage()); 2522 create: (_) => PlanDishProvider(), child: MyPlanDishHomePage());
2521 }); 2523 });
@@ -3993,3 +3995,44 @@ var tableSettingHomePageHandle = new Handler( @@ -3993,3 +3995,44 @@ var tableSettingHomePageHandle = new Handler(
3993 3995
3994 3996
3995 3997
  3998 +
  3999 +
  4000 +///菜单设置home页面
  4001 +var menuSettingHomePageHandle = new Handler(
  4002 + handlerFunc: (BuildContext context, Map<String, List<Object>> params) {
  4003 + // String rid = params["rid"].first;
  4004 + // // String smsTemplate = params["smsTemplate"].first;
  4005 + // CouponUse use = CouponUse.fromJson(
  4006 + // json.decode(FluroConvertUtils.fluroCnParamsDecode(params["use"].first)));
  4007 +
  4008 + // if (params.keys.contains('sunModel')) {
  4009 + // MealListSunModel sunModel = MealListSunModel.fromJson(json.decode(
  4010 + // FluroConvertUtils.fluroCnParamsDecode(params["sunModel"].first)));
  4011 + // return ChangeNotifierProvider<StoreBaseIndoProvider>(
  4012 + // create: (_) => StoreBaseIndoProvider(),
  4013 + // child: BookTimeSettingEditPage(sunModel));
  4014 + // }
  4015 +
  4016 +
  4017 + List<MenuModel> res = [];
  4018 + if (params.keys.contains('object')) {
  4019 + Map object = FluroConvertUtils.string2map(params["object"].first);
  4020 + List temp = object['object'];
  4021 +
  4022 + for (var item in temp) {
  4023 + res.add(MenuModel.fromJson2(item));
  4024 + }
  4025 + }
  4026 +
  4027 +
  4028 + return ChangeNotifierProvider<MenuManageProvider>(
  4029 + create: (_) => MenuManageProvider(),
  4030 + child: ChangeNotifierProvider<CollectStoreProvider>(
  4031 + create: (_) => CollectStoreProvider(),
  4032 + child: MenuSettingHomePage(menuModel: res)));
  4033 +
  4034 +});
  4035 +
  4036 +
  4037 +
  4038 +
@@ -398,6 +398,11 @@ class Routes { @@ -398,6 +398,11 @@ class Routes {
398 static String table_setting_home_page = 398 static String table_setting_home_page =
399 '/table_setting_home_page'; //桌位设置home页 399 '/table_setting_home_page'; //桌位设置home页
400 400
  401 + static String menu_setting_home_page =
  402 + '/menu_setting_home_page'; //菜单设置home页
  403 +
  404 +
  405 +
401 static void configureRoutes(FluroRouter router) { 406 static void configureRoutes(FluroRouter router) {
402 router.notFoundHandler = new Handler( 407 router.notFoundHandler = new Handler(
403 handlerFunc: (BuildContext context, Map<String, List<String>> params) { 408 handlerFunc: (BuildContext context, Map<String, List<String>> params) {
@@ -751,6 +756,9 @@ class Routes { @@ -751,6 +756,9 @@ class Routes {
751 router.define(table_setting_home_page, 756 router.define(table_setting_home_page,
752 handler: tableSettingHomePageHandle); 757 handler: tableSettingHomePageHandle);
753 758
  759 + router.define(menu_setting_home_page,
  760 + handler: menuSettingHomePageHandle);
  761 +
754 762
755 763
756 764