Commit b67b20830625596aa528ef8ec574cf84e6e9b842

Authored by wdn127929
1 parent 19bc57e5

月度订单UI OK

  1 +import 'package:flutter/material.dart';
  2 +import 'package:flutter_screenutil/flutter_screenutil.dart';
  3 +import 'package:one_key/res/colors.dart';
  4 +import 'package:one_key/widgets/system_app_bar.dart';
  5 +import 'package:one_key/widgets/v_empty_view.dart';
  6 +import 'package:provider/provider.dart';
  7 +
  8 +import '../../../../constant/state.dart';
  9 +import '../../../../provider/customer_provider.dart';
  10 +import '../../../../utils/screen_util.dart';
  11 +import '../../../../utils/utils.dart';
  12 +import '../../../../widgets/MyDivider.dart';
  13 +import '../../../../widgets/h_empty_view.dart';
  14 +import '../../../../widgets/page_exception.dart';
  15 +
  16 +/**
  17 + * 月度订单
  18 + */
  19 +
  20 +class MonthOrderPage extends StatefulWidget {
  21 + MonthOrderPage({Key key}) : super(key: key);
  22 +
  23 + @override
  24 + _MonthOrderPageState createState() => _MonthOrderPageState();
  25 +}
  26 +
  27 +class _MonthOrderPageState extends State<MonthOrderPage> {
  28 + CustomerProvider customerProvider;
  29 + ScrollController _controller = ScrollController();
  30 + int month;
  31 +
  32 + @override
  33 + void initState() {
  34 + // TODO: implement initState
  35 + super.initState();
  36 + month = 1;
  37 + WidgetsBinding.instance.addPostFrameCallback((_) {
  38 + customerProvider.pageStateStoreHome = PageState.Success;
  39 + setState(() {});
  40 + });
  41 + }
  42 +
  43 + Widget _monthWidget() {
  44 + return Container(
  45 + // margin: EdgeInsets.symmetric(horizontal: w(10)),
  46 + // padding: EdgeInsets.symmetric(horizontal: w(15), vertical: w(10)),
  47 + decoration: BoxDecoration(color: MyColours.color_33438E93),
  48 + child: Column(
  49 + crossAxisAlignment: CrossAxisAlignment.start,
  50 + children: [
  51 + Row(
  52 + children: [
  53 + Container(
  54 + width: w(150),
  55 + height: w(96),
  56 + padding: EdgeInsets.symmetric(horizontal: w(12)),
  57 + child: Column(
  58 + children: [
  59 + Row(
  60 + mainAxisAlignment: MainAxisAlignment.spaceBetween,
  61 + children: [
  62 + InkWell(
  63 + onTap: () {
  64 + if (month == 1) {
  65 + month = 12;
  66 + setState(() {});
  67 + } else {
  68 + setState(() {
  69 + month--;
  70 + });
  71 + }
  72 +
  73 + // _getGuestReserve(showLoading: true);
  74 + },
  75 + child: Padding(
  76 + padding: EdgeInsets.only(
  77 + right: ScreenUtil().setWidth(20)),
  78 + child: Image.asset(
  79 + Utils.getImgPath('c_arrow_left'),
  80 + width: ScreenUtil().setWidth(24),
  81 + ))),
  82 + Row(
  83 + children: [
  84 + Text(
  85 + '${month}',
  86 + style: TextStyle(
  87 + fontSize: font(48),
  88 + color: MyColours.color_515151),
  89 + ),
  90 + Padding(
  91 + padding: EdgeInsets.only(top: w(15)),
  92 + child: Text(
  93 + '月',
  94 + style: TextStyle(
  95 + fontSize: font(18),
  96 + color: MyColours.color_515151),
  97 + ),
  98 + ),
  99 + ],
  100 + ),
  101 + InkWell(
  102 + onTap: () {
  103 + if (month == 12) {
  104 + month = 1;
  105 + setState(() {});
  106 + } else {
  107 + setState(() {
  108 + month++;
  109 + });
  110 + }
  111 +
  112 + // _getGuestReserve(showLoading: true);
  113 + },
  114 + child: Padding(
  115 + padding: EdgeInsets.only(
  116 + left: ScreenUtil().setWidth(20),
  117 + ),
  118 + child: Image.asset(
  119 + Utils.getImgPath('c_arrow_right'),
  120 + width: ScreenUtil().setWidth(24),
  121 + )))
  122 + ],
  123 + ),
  124 + VEmptyView(20),
  125 + Text(
  126 + '2023年',
  127 + style: TextStyle(
  128 + fontSize: font(14), color: MyColours.color_515151),
  129 + )
  130 + ],
  131 + )),
  132 + MyDivider(
  133 + w(1),
  134 + w(96),
  135 + color: MyColours.color_DBDBDB,
  136 + ),
  137 + Expanded(
  138 + child: Padding(
  139 + padding: EdgeInsets.symmetric(
  140 + horizontal: w(15), vertical: w(8)),
  141 + child: Column(
  142 + crossAxisAlignment: CrossAxisAlignment.start,
  143 + children: [
  144 + Row(
  145 + // crossAxisAlignment: CrossAxisAlignment.center,
  146 + mainAxisAlignment: MainAxisAlignment.start,
  147 + children: [
  148 + Text(
  149 + '预订',
  150 + style: TextStyle(
  151 + fontWeight: FontWeight.bold,
  152 + color: MyColours.color_515151,
  153 + fontSize: font(
  154 + (18),
  155 + )),
  156 + ),
  157 + HEmptyView(10),
  158 + Text(
  159 + '1089单',
  160 + style: TextStyle(
  161 + color: MyColours.color_515151,
  162 + fontSize: font(
  163 + (14),
  164 + )),
  165 + ),
  166 + HEmptyView(10),
  167 + MyDivider(
  168 + w(1),
  169 + w(15),
  170 + color: MyColours.color_DBDBDB,
  171 + ),
  172 + HEmptyView(10),
  173 + Text(
  174 + '1190桌',
  175 + style: TextStyle(
  176 + color: MyColours.color_515151,
  177 + fontSize: font(
  178 + (14),
  179 + )),
  180 + ),
  181 + ],
  182 + ),
  183 + VEmptyView(20),
  184 + Wrap(
  185 + runSpacing: w(10),
  186 + children: [
  187 + Text(
  188 + '到店',
  189 + style: TextStyle(
  190 + fontWeight: FontWeight.bold,
  191 + color: MyColours.color_515151,
  192 + fontSize: font(
  193 + (18),
  194 + )),
  195 + ),
  196 + HEmptyView(10),
  197 + Text(
  198 + '1089单',
  199 + style: TextStyle(
  200 + color: MyColours.color_515151,
  201 + fontSize: font(
  202 + (14),
  203 + )),
  204 + ),
  205 + HEmptyView(10),
  206 + MyDivider(
  207 + w(1),
  208 + w(15),
  209 + color: MyColours.color_DBDBDB,
  210 + ),
  211 + HEmptyView(10),
  212 + Text(
  213 + '1190桌',
  214 + style: TextStyle(
  215 + color: MyColours.color_515151,
  216 + fontSize: font(
  217 + (14),
  218 + )),
  219 + ),
  220 + HEmptyView(10),
  221 + MyDivider(
  222 + w(1),
  223 + w(15),
  224 + color: MyColours.color_DBDBDB,
  225 + ),
  226 + HEmptyView(10),
  227 + Text(
  228 + '1190人',
  229 + style: TextStyle(
  230 + color: MyColours.color_515151,
  231 + fontSize: font(
  232 + (14),
  233 + )),
  234 + ),
  235 + HEmptyView(10),
  236 + MyDivider(
  237 + w(1),
  238 + w(15),
  239 + color: MyColours.color_DBDBDB,
  240 + ),
  241 + HEmptyView(10),
  242 + Text(
  243 + '1190取消',
  244 + style: TextStyle(
  245 + color: MyColours.color_515151,
  246 + fontSize: font(
  247 + (14),
  248 + )),
  249 + ),
  250 + HEmptyView(10),
  251 + MyDivider(
  252 + w(1),
  253 + w(15),
  254 + color: MyColours.color_DBDBDB,
  255 + ),
  256 + HEmptyView(10),
  257 + Text(
  258 + '到客97.2%',
  259 + style: TextStyle(
  260 + color: MyColours.color_515151,
  261 + fontSize: font(
  262 + (14),
  263 + )),
  264 + ),
  265 + ],
  266 + ),
  267 + ],
  268 + )))
  269 + ],
  270 + ),
  271 + // VEmptyView(15),
  272 + MyDivider(
  273 + double.infinity,
  274 + w(1),
  275 + color: MyColours.color_DBDBDB,
  276 + ),
  277 + // VEmptyView(15),
  278 + Padding(
  279 + padding: EdgeInsets.symmetric(horizontal: w(10), vertical: w(8)),
  280 + child: Wrap(
  281 + // crossAxisAlignment: WrapCrossAlignment.start,
  282 + // runAlignment: WrapAlignment.center,
  283 + // alignment: WrapAlignment.center,
  284 + runSpacing: w(5),
  285 + children: [
  286 + Text(
  287 + '有金额订单 6000',
  288 + style: TextStyle(
  289 + color: MyColours.color_999999,
  290 + decoration: TextDecoration.underline,
  291 + fontSize: font(
  292 + (10),
  293 + )),
  294 + ),
  295 + HEmptyView(10),
  296 + MyDivider(
  297 + w(1),
  298 + w(12),
  299 + color: MyColours.color_DBDBDB,
  300 + ),
  301 + HEmptyView(10),
  302 + Text(
  303 + '消费 9585800.00元',
  304 + style: TextStyle(
  305 + color: MyColours.color_999999,
  306 + decoration: TextDecoration.underline,
  307 + fontSize: font(
  308 + (10),
  309 + )),
  310 + ),
  311 + HEmptyView(10),
  312 + MyDivider(
  313 + w(1),
  314 + w(12),
  315 + color: MyColours.color_DBDBDB,
  316 + ),
  317 + HEmptyView(10),
  318 + Text(
  319 + '人均 8885.58元',
  320 + style: TextStyle(
  321 + color: MyColours.color_999999,
  322 + decoration: TextDecoration.underline,
  323 + fontSize: font(
  324 + (10),
  325 + )),
  326 + ),
  327 + HEmptyView(10),
  328 + MyDivider(
  329 + w(1),
  330 + w(12),
  331 + color: MyColours.color_DBDBDB,
  332 + ),
  333 + HEmptyView(10),
  334 + Text(
  335 + '桌均 95888.58元',
  336 + style: TextStyle(
  337 + color: MyColours.color_999999,
  338 + decoration: TextDecoration.underline,
  339 + fontSize: font(
  340 + (10),
  341 + )),
  342 + ),
  343 + HEmptyView(10),
  344 + MyDivider(
  345 + w(1),
  346 + w(12),
  347 + color: MyColours.color_DBDBDB,
  348 + ),
  349 + HEmptyView(10),
  350 + Text(
  351 + '存酒 8位',
  352 + style: TextStyle(
  353 + color: MyColours.color_999999,
  354 + decoration: TextDecoration.underline,
  355 + fontSize: font(
  356 + (10),
  357 + )),
  358 + ),
  359 + HEmptyView(10),
  360 + MyDivider(
  361 + w(1),
  362 + w(12),
  363 + color: MyColours.color_DBDBDB,
  364 + ),
  365 + HEmptyView(10),
  366 + Text(
  367 + '提前点餐 9位',
  368 + style: TextStyle(
  369 + color: MyColours.color_999999,
  370 + decoration: TextDecoration.underline,
  371 + fontSize: font(
  372 + (10),
  373 + )),
  374 + ),
  375 + HEmptyView(10),
  376 + MyDivider(
  377 + w(1),
  378 + w(12),
  379 + color: MyColours.color_DBDBDB,
  380 + ),
  381 + HEmptyView(10),
  382 + Text(
  383 + '安排菜 9位',
  384 + style: TextStyle(
  385 + color: MyColours.color_999999,
  386 + decoration: TextDecoration.underline,
  387 + fontSize: font(
  388 + (10),
  389 + )),
  390 + ),
  391 + ],
  392 + )),
  393 + ],
  394 + ),
  395 + );
  396 + }
  397 +
  398 + @override
  399 + Widget build(BuildContext context) {
  400 + customerProvider = Provider.of<CustomerProvider>(context, listen: true);
  401 + return Scaffold(
  402 + backgroundColor: MyColours.color_f3f3f3,
  403 + appBar: SystemAppBar('月度订单'),
  404 + body: Consumer<CustomerProvider>(builder: (context, model, _) {
  405 + if (model.pageStateStoreHome != PageState.Success) {
  406 + return ExceptionPage(
  407 + pageState: model.pageStateStoreHome,
  408 + callback: () {
  409 + // getTableList();
  410 + // _getSellerGuestManage();
  411 + },
  412 + emptyMsg: "暂时没有月度订单信息哦",
  413 + emptyImg: "empty_search",
  414 + showMsg: "加载中,请稍后...",
  415 + );
  416 + } else {
  417 + return SingleChildScrollView(
  418 + controller: _controller,
  419 + child: Column(
  420 + children: [
  421 + VEmptyView(10),
  422 + _monthWidget(),
  423 + VEmptyView(20),
  424 + ListView.builder(
  425 + itemCount: 10,
  426 + controller: _controller,
  427 + shrinkWrap: true,
  428 + padding: EdgeInsets.symmetric(horizontal: w(10)),
  429 + itemBuilder: (context, index) {
  430 + return Container(
  431 + margin: EdgeInsets.only(bottom: w(10)),
  432 + padding: EdgeInsets.symmetric(horizontal: w(10)),
  433 + decoration: BoxDecoration(
  434 + color: MyColours.color_ffffff,
  435 + borderRadius: BorderRadius.circular(r(8)),
  436 + ),
  437 + child: Row(
  438 + children: [
  439 + Container(
  440 + width: w(75),
  441 + padding: EdgeInsets.symmetric(vertical: w(5)),
  442 + decoration: BoxDecoration(
  443 + border: Border(
  444 + right: BorderSide(
  445 + color: MyColours.color_f3f3f3,
  446 + width: w(1)))),
  447 + child: Column(
  448 + children: [
  449 + VEmptyView(32),
  450 + Text(
  451 + '30日',
  452 + style: TextStyle(
  453 + fontSize: font(16),
  454 + fontWeight: FontWeight.bold,
  455 + color: MyColours.color_515151),
  456 + ),
  457 + VEmptyView(40),
  458 + Text(
  459 + '十二月廿四',
  460 + style: TextStyle(
  461 + fontSize: font(10),
  462 + color: MyColours.color_999999),
  463 + ),
  464 + VEmptyView(10),
  465 + Text(
  466 + '星期日',
  467 + style: TextStyle(
  468 + fontSize: font(10),
  469 + color: MyColours.color_999999),
  470 + ),
  471 + VEmptyView(20),
  472 + ],
  473 + ),
  474 + ),
  475 + Expanded(
  476 + child: Container(
  477 + padding: EdgeInsets.only(
  478 + top: w(5), bottom: w(5), left: w(10)),
  479 + child: Row(
  480 + mainAxisAlignment:
  481 + MainAxisAlignment.spaceBetween,
  482 + // crossAxisAlignment: CrossAxisAlignment.start,
  483 + children: [
  484 + Expanded(
  485 + child: Column(
  486 + mainAxisAlignment:
  487 + MainAxisAlignment.start,
  488 + crossAxisAlignment:
  489 + CrossAxisAlignment.start,
  490 + children: [
  491 + Row(
  492 + crossAxisAlignment:
  493 + CrossAxisAlignment.start,
  494 + children: [
  495 + Text(
  496 + '预订',
  497 + style: TextStyle(
  498 + fontWeight: FontWeight.bold,
  499 + color:
  500 + MyColours.color_515151,
  501 + fontSize: font(
  502 + (12),
  503 + )),
  504 + ),
  505 + HEmptyView(10),
  506 + Text(
  507 + '1089单',
  508 + style: TextStyle(
  509 + color:
  510 + MyColours.color_515151,
  511 + fontSize: font(
  512 + (10),
  513 + )),
  514 + ),
  515 + HEmptyView(10),
  516 + MyDivider(
  517 + w(1),
  518 + w(15),
  519 + color: MyColours.color_DBDBDB,
  520 + ),
  521 + HEmptyView(10),
  522 + Text(
  523 + '1190桌',
  524 + style: TextStyle(
  525 + color:
  526 + MyColours.color_515151,
  527 + fontSize: font(
  528 + (10),
  529 + )),
  530 + ),
  531 + ],
  532 + ),
  533 + VEmptyView(10),
  534 + Wrap(
  535 + runSpacing: w(5),
  536 + children: [
  537 + Text(
  538 + '到店',
  539 + style: TextStyle(
  540 + fontWeight: FontWeight.bold,
  541 + color:
  542 + MyColours.color_515151,
  543 + fontSize: font(
  544 + (12),
  545 + )),
  546 + ),
  547 + HEmptyView(10),
  548 + Text(
  549 + '1089单',
  550 + style: TextStyle(
  551 + color:
  552 + MyColours.color_515151,
  553 + fontSize: font(
  554 + (10),
  555 + )),
  556 + ),
  557 + HEmptyView(10),
  558 + MyDivider(
  559 + w(1),
  560 + w(15),
  561 + color: MyColours.color_DBDBDB,
  562 + ),
  563 + HEmptyView(10),
  564 + Text(
  565 + '1190桌',
  566 + style: TextStyle(
  567 + color:
  568 + MyColours.color_515151,
  569 + fontSize: font(
  570 + (10),
  571 + )),
  572 + ),
  573 + HEmptyView(10),
  574 + Text(
  575 + '1089人',
  576 + style: TextStyle(
  577 + color:
  578 + MyColours.color_515151,
  579 + fontSize: font(
  580 + (10),
  581 + )),
  582 + ),
  583 + HEmptyView(10),
  584 + MyDivider(
  585 + w(1),
  586 + w(15),
  587 + color: MyColours.color_DBDBDB,
  588 + ),
  589 + HEmptyView(10),
  590 + Text(
  591 + '1190取消',
  592 + style: TextStyle(
  593 + color:
  594 + MyColours.color_515151,
  595 + fontSize: font(
  596 + (10),
  597 + )),
  598 + ),
  599 + HEmptyView(10),
  600 + MyDivider(
  601 + w(1),
  602 + w(15),
  603 + color: MyColours.color_DBDBDB,
  604 + ),
  605 + HEmptyView(10),
  606 + Text(
  607 + '到客90.1%',
  608 + style: TextStyle(
  609 + color:
  610 + MyColours.color_515151,
  611 + fontSize: font(
  612 + (10),
  613 + )),
  614 + ),
  615 + ],
  616 + ),
  617 + VEmptyView(10),
  618 + Row(
  619 + crossAxisAlignment:
  620 + CrossAxisAlignment.start,
  621 + children: [
  622 + Text(
  623 + '有金额订单数 25',
  624 + style: TextStyle(
  625 + color:
  626 + MyColours.color_999999,
  627 + fontSize: font(
  628 + (10),
  629 + )),
  630 + ),
  631 + HEmptyView(10),
  632 + MyDivider(
  633 + w(1),
  634 + w(15),
  635 + color: MyColours.color_DBDBDB,
  636 + ),
  637 + HEmptyView(10),
  638 + Text(
  639 + '总消费 25800元',
  640 + style: TextStyle(
  641 + color:
  642 + MyColours.color_999999,
  643 + fontSize: font(
  644 + (10),
  645 + )),
  646 + ),
  647 + ],
  648 + ),
  649 + VEmptyView(10),
  650 + Row(
  651 + crossAxisAlignment:
  652 + CrossAxisAlignment.start,
  653 + children: [
  654 + Text(
  655 + '人均 103.2元',
  656 + style: TextStyle(
  657 + color:
  658 + MyColours.color_999999,
  659 + fontSize: font(
  660 + (10),
  661 + )),
  662 + ),
  663 + HEmptyView(10),
  664 + MyDivider(
  665 + w(1),
  666 + w(15),
  667 + color: MyColours.color_DBDBDB,
  668 + ),
  669 + HEmptyView(10),
  670 + Text(
  671 + '桌均 860元',
  672 + style: TextStyle(
  673 + color:
  674 + MyColours.color_999999,
  675 + fontSize: font(
  676 + (10),
  677 + )),
  678 + ),
  679 + ],
  680 + ),
  681 + VEmptyView(10),
  682 + Row(
  683 + crossAxisAlignment:
  684 + CrossAxisAlignment.start,
  685 + children: [
  686 + Text(
  687 + '存酒 1位',
  688 + style: TextStyle(
  689 + color:
  690 + MyColours.color_999999,
  691 + fontSize: font(
  692 + (10),
  693 + )),
  694 + ),
  695 + HEmptyView(10),
  696 + MyDivider(
  697 + w(1),
  698 + w(15),
  699 + color: MyColours.color_DBDBDB,
  700 + ),
  701 + HEmptyView(10),
  702 + Text(
  703 + '提前点餐 9位',
  704 + style: TextStyle(
  705 + color:
  706 + MyColours.color_999999,
  707 + fontSize: font(
  708 + (10),
  709 + )),
  710 + ),
  711 + HEmptyView(10),
  712 + MyDivider(
  713 + w(1),
  714 + w(15),
  715 + color: MyColours.color_DBDBDB,
  716 + ),
  717 + HEmptyView(10),
  718 + Text(
  719 + '安排菜 9位',
  720 + style: TextStyle(
  721 + color:
  722 + MyColours.color_999999,
  723 + fontSize: font(
  724 + (10),
  725 + )),
  726 + ),
  727 + ],
  728 + ),
  729 + ],
  730 + )),
  731 + Image.asset(
  732 + Utils.getImgPath('arrow_right_new'),
  733 + width: w(12),
  734 + )
  735 + ],
  736 + ),
  737 + ))
  738 + ],
  739 + ),
  740 + );
  741 + }),
  742 + ],
  743 + ));
  744 + }
  745 + }));
  746 + }
  747 +}
@@ -992,7 +992,11 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> { @@ -992,7 +992,11 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
992 controller: _controller, 992 controller: _controller,
993 padding: EdgeInsets.symmetric(horizontal: w(10)), 993 padding: EdgeInsets.symmetric(horizontal: w(10)),
994 itemBuilder: (context, index) { 994 itemBuilder: (context, index) {
995 - return MonthItem(); 995 + return InkWell(
  996 + onTap: () {
  997 + NavigatorUtil.goMonthOrderPage(context);
  998 + },
  999 + child: MonthItem());
996 }), 1000 }),
997 /** 1001 /**
998 ListView.builder( 1002 ListView.builder(
@@ -1700,7 +1700,7 @@ class NavigatorUtil { @@ -1700,7 +1700,7 @@ class NavigatorUtil {
1700 } 1700 }
1701 1701
1702 /// 消息中心---会员充值 1702 /// 消息中心---会员充值
1703 - static void goMessageRechargeInfoPage(BuildContext context,String idStr, 1703 + static void goMessageRechargeInfoPage(BuildContext context, String idStr,
1704 {replace = false}) { 1704 {replace = false}) {
1705 _navigateTo(context, "${Routes.message_recharge_info_page}?idStr=$idStr", 1705 _navigateTo(context, "${Routes.message_recharge_info_page}?idStr=$idStr",
1706 replace: replace); 1706 replace: replace);
@@ -1728,9 +1728,18 @@ class NavigatorUtil { @@ -1728,9 +1728,18 @@ class NavigatorUtil {
1728 1728
1729 /// 存酒设置页 1729 /// 存酒设置页
1730 static Future<dynamic> goWineSettingPage( 1730 static Future<dynamic> goWineSettingPage(
1731 - BuildContext context,  
1732 - {replace = false, }) { 1731 + BuildContext context, {
  1732 + replace = false,
  1733 + }) {
1733 return _navigateTo(context, "${Routes.wine_setting_page}", 1734 return _navigateTo(context, "${Routes.wine_setting_page}",
1734 replace: replace); 1735 replace: replace);
1735 } 1736 }
  1737 +
  1738 + /// 月度订单
  1739 + static Future<dynamic> goMonthOrderPage(
  1740 + BuildContext context, {
  1741 + replace = false,
  1742 + }) {
  1743 + return _navigateTo(context, "${Routes.month_order_page}", replace: replace);
  1744 + }
1736 } 1745 }
@@ -181,6 +181,7 @@ import '../pages/feast/feast_setmeal_page.dart'; @@ -181,6 +181,7 @@ import '../pages/feast/feast_setmeal_page.dart';
181 import '../pages/feast/feast_wine_page.dart'; 181 import '../pages/feast/feast_wine_page.dart';
182 import '../pages/message/message_recharge_info_page.dart'; 182 import '../pages/message/message_recharge_info_page.dart';
183 import '../pages/my/customer_type/my_customer/my_customer_home_page.dart'; 183 import '../pages/my/customer_type/my_customer/my_customer_home_page.dart';
  184 +import '../pages/my/customer_type/store_customer/month_order_page.dart';
184 import '../pages/my/customer_type/store_customer/store_customer_home_page.dart'; 185 import '../pages/my/customer_type/store_customer/store_customer_home_page.dart';
185 import '../pages/my/customer_type/store_customer/store_customer_home_left_page.dart'; 186 import '../pages/my/customer_type/store_customer/store_customer_home_left_page.dart';
186 import '../pages/my/feast_manage/feast_deposit_type_page.dart'; 187 import '../pages/my/feast_manage/feast_deposit_type_page.dart';
@@ -2815,3 +2816,16 @@ var wineSettingPageHandle = new Handler( @@ -2815,3 +2816,16 @@ var wineSettingPageHandle = new Handler(
2815 return ChangeNotifierProvider<MenuManageProvider>( 2816 return ChangeNotifierProvider<MenuManageProvider>(
2816 create: (_) => MenuManageProvider(), child: WineSettingPage()); 2817 create: (_) => MenuManageProvider(), child: WineSettingPage());
2817 }); 2818 });
  2819 +
  2820 +//月度订单
  2821 +var monthOrderPageHandle = new Handler(
  2822 + handlerFunc: (BuildContext context, Map<String, List<Object>> params) {
  2823 + // String idStr = params["idStr"].first;
  2824 + // IsExamineSunModel isExamineSunModel = IsExamineSunModel.fromJson(json.decode(
  2825 + // FluroConvertUtils.fluroCnParamsDecode(
  2826 + // params["isExamineSunModel"].first)));
  2827 + // }
  2828 +
  2829 + return ChangeNotifierProvider<CustomerProvider>(
  2830 + create: (_) => CustomerProvider(), child: MonthOrderPage());
  2831 +});
@@ -274,6 +274,10 @@ class Routes { @@ -274,6 +274,10 @@ class Routes {
274 */ 274 */
275 static String wine_setting_page = "/wine_setting_page"; // 存酒设置 275 static String wine_setting_page = "/wine_setting_page"; // 存酒设置
276 276
  277 +
  278 + static String month_order_page = "/month_order_page"; // 月度订单
  279 +
  280 +
277 static void configureRoutes(FluroRouter router) { 281 static void configureRoutes(FluroRouter router) {
278 router.notFoundHandler = new Handler( 282 router.notFoundHandler = new Handler(
279 handlerFunc: (BuildContext context, Map<String, List<String>> params) { 283 handlerFunc: (BuildContext context, Map<String, List<String>> params) {
@@ -508,5 +512,9 @@ class Routes { @@ -508,5 +512,9 @@ class Routes {
508 handler: couponVerificationDetailPageHandle); 512 handler: couponVerificationDetailPageHandle);
509 513
510 router.define(wine_setting_page, handler: wineSettingPageHandle); 514 router.define(wine_setting_page, handler: wineSettingPageHandle);
  515 +
  516 +
  517 +
  518 + router.define(month_order_page, handler: monthOrderPageHandle);
511 } 519 }
512 } 520 }