Commit e020519ba34d5fac5bd8e676e505304868347232

Authored by wdn127929
1 parent 9ef30be7

全店客情首页骨架屏

  1 +import 'package:flutter/cupertino.dart';
1 import 'package:flutter/material.dart'; 2 import 'package:flutter/material.dart';
2 import 'package:flutter_screenutil/flutter_screenutil.dart'; 3 import 'package:flutter_screenutil/flutter_screenutil.dart';
3 import 'package:one_key/constant/state.dart'; 4 import 'package:one_key/constant/state.dart';
@@ -21,6 +22,7 @@ import 'package:one_key/widgets/v_empty_view.dart'; @@ -21,6 +22,7 @@ import 'package:one_key/widgets/v_empty_view.dart';
21 import 'package:provider/provider.dart'; 22 import 'package:provider/provider.dart';
22 23
23 import '../../../../utils/screen_util.dart'; 24 import '../../../../utils/screen_util.dart';
  25 +import '../../../../widgets/page_loading.dart';
24 import '../month_item.dart'; 26 import '../month_item.dart';
25 27
26 class StoreCustomerHomeLeftPage extends StatefulWidget { 28 class StoreCustomerHomeLeftPage extends StatefulWidget {
@@ -104,9 +106,12 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> { @@ -104,9 +106,12 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
104 106
105 ///活跃客户、沉睡客户、流失客户 107 ///活跃客户、沉睡客户、流失客户
106 Widget _percentWidget(String pnum, String btnTitle, String percent, 108 Widget _percentWidget(String pnum, String btnTitle, String percent,
107 - {String uid = ''}) { 109 + {String uid = '', bool tap = true}) {
108 return InkWell( 110 return InkWell(
109 onTap: () async { 111 onTap: () async {
  112 + if (!tap) {
  113 + return;
  114 + }
110 String index = '0'; 115 String index = '0';
111 if (btnTitle == '活跃') { 116 if (btnTitle == '活跃') {
112 index = '1'; 117 index = '1';
@@ -723,10 +728,16 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> { @@ -723,10 +728,16 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
723 Widget _managerWidget( 728 Widget _managerWidget(
724 String pnum, String btnTitle, String percent, String detailStr, 729 String pnum, String btnTitle, String percent, String detailStr,
725 {String uid = '', GestureTapCallback onTap}) { 730 {String uid = '', GestureTapCallback onTap}) {
726 - List detailList = detailStr.split('-');  
727 - String firStr = detailList.length > 0 ? detailList[0] : '';  
728 - String secStr = detailList.length > 1 ? detailList[1] : '';  
729 - String thrStr = detailList.length > 2 ? detailList[2] : ''; 731 + String firStr = ' ';
  732 + String secStr = ' ';
  733 + String thrStr = ' ';
  734 + if (detailStr != '') {
  735 + List detailList = detailStr.split('-');
  736 + firStr = detailList.length > 0 ? detailList[0] : '';
  737 + secStr = detailList.length > 1 ? detailList[1] : '';
  738 + thrStr = detailList.length > 2 ? detailList[2] : '';
  739 + }
  740 +
730 return InkWell( 741 return InkWell(
731 onTap: onTap, 742 onTap: onTap,
732 child: Container( 743 child: Container(
@@ -833,6 +844,94 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> { @@ -833,6 +844,94 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
833 return true; 844 return true;
834 }, child: Consumer<CustomerProvider>(builder: (context, model, _) { 845 }, child: Consumer<CustomerProvider>(builder: (context, model, _) {
835 if (model.pageStateStoreHome != PageState.Success) { 846 if (model.pageStateStoreHome != PageState.Success) {
  847 + if (model.pageStateStoreHome == PageState.Loading) {
  848 + return SingleChildScrollView(
  849 + controller: _controller,
  850 + child: Stack(alignment: Alignment.center, children: [
  851 + Column(children: [
  852 + VEmptyView(10),
  853 + // Stack(
  854 + // children: [
  855 + Container(
  856 + height: w(80),
  857 + color: MyColours.color_ffffff,
  858 + child: Row(
  859 + mainAxisAlignment: MainAxisAlignment.center,
  860 + children: [
  861 + Text(
  862 + '',
  863 + style: TextStyle(
  864 + color: MyColours.color_438E93,
  865 + fontSize: ScreenUtil().setSp(64),
  866 + fontWeight: FontWeight.bold),
  867 + ),
  868 + Text(
  869 + '位',
  870 + style: TextStyle(
  871 + color: MyColours.color_515151,
  872 + // fontWeight: FontWeight.bold,
  873 + fontSize: ScreenUtil().setSp(32)),
  874 + )
  875 + ],
  876 + ),
  877 + ),
  878 + VEmptyView(10),
  879 + Row(
  880 + children: [
  881 + _percentWidget('', '活跃', '', tap: false),
  882 + HEmptyView(10),
  883 + _percentWidget('', '60天未到店', '', tap: false),
  884 + HEmptyView(10),
  885 + _percentWidget('', '120天未到店', '', tap: false),
  886 + ],
  887 + ),
  888 +
  889 + VEmptyView(10),
  890 + GridView.builder(
  891 + controller: _controller,
  892 + shrinkWrap: true,
  893 + cacheExtent: ScreenUtil().setWidth(0),
  894 + itemCount: 6,
  895 + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
  896 + crossAxisCount: 3,
  897 + childAspectRatio: 1.05,
  898 + mainAxisSpacing: ScreenUtil().setWidth(10),
  899 + crossAxisSpacing: ScreenUtil().setWidth(10)),
  900 + itemBuilder: (BuildContext context, int index) {
  901 + return _managerWidget('', '', null, '',
  902 + uid: '', onTap: () {});
  903 + })
  904 + ]),
  905 + Align(
  906 + alignment: Alignment.center,
  907 + child: Center(
  908 + child: Column(
  909 + mainAxisAlignment: MainAxisAlignment.center,
  910 + crossAxisAlignment: CrossAxisAlignment.center,
  911 + children: <Widget>[
  912 + ClipRRect(
  913 + borderRadius: BorderRadius.circular(10),
  914 + child: Container(
  915 + width: 200,
  916 + height: 200,
  917 + color: Colors.transparent,
  918 + child: CupertinoActivityIndicator(
  919 + color: MyColours.color_000000,
  920 + radius: 30,
  921 + ),
  922 + ))
  923 + // VEmptyView(30),
  924 + // Text(
  925 + // '加载中,请稍后...',
  926 + // style: TextStyle(
  927 + // color: MyColours.color_666666,
  928 + // fontSize: ScreenUtil().setSp(24)),
  929 + // )
  930 + ],
  931 + ),
  932 + ))
  933 + ]));
  934 + }
836 return ExceptionPage( 935 return ExceptionPage(
837 pageState: model.pageStateStoreHome, 936 pageState: model.pageStateStoreHome,
838 callback: () { 937 callback: () {
  1 +// import 'package:flutter/material.dart';
  2 +// import 'package:flutter_screenutil/flutter_screenutil.dart';
  3 +// import 'package:one_key/constant/state.dart';
  4 +// import 'package:one_key/models/marketing_by_seller_model.dart';
  5 +// import 'package:one_key/models/seller_counts_list.dart';
  6 +// import 'package:one_key/models/seller_info.dart';
  7 +// import 'package:one_key/models/store_customer_home_model.dart';
  8 +// import 'package:one_key/pages/my/customer_type/store_customer/bar_chart_page.dart';
  9 +// import 'package:one_key/provider/customer_provider.dart';
  10 +// import 'package:one_key/provider/user_model.dart';
  11 +// import 'package:one_key/res/colors.dart';
  12 +// import 'package:one_key/route/navigator_util.dart';
  13 +// import 'package:one_key/utils/event_bus.dart';
  14 +// import 'package:one_key/utils/utils.dart';
  15 +// import 'package:one_key/widgets/MyDivider.dart';
  16 +// import 'package:one_key/widgets/h_empty_view.dart';
  17 +// import 'package:one_key/widgets/page_exception.dart';
  18 +// import 'package:one_key/widgets/round_button.dart';
  19 +// import 'package:one_key/widgets/system_app_bar.dart';
  20 +// import 'package:one_key/widgets/v_empty_view.dart';
  21 +// import 'package:provider/provider.dart';
  22 +
  23 +// import '../../../../utils/screen_util.dart';
  24 +// import '../month_item.dart';
  25 +
  26 +// class StoreCustomerHomeLeftPage extends StatefulWidget {
  27 +// final CustomerProvider customerProvider;
  28 +// StoreCustomerHomeLeftPage({Key key, this.customerProvider}) : super(key: key);
  29 +
  30 +// @override
  31 +// _StoreCustomerHomeLeftPageState createState() =>
  32 +// _StoreCustomerHomeLeftPageState();
  33 +// }
  34 +
  35 +// class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
  36 +// ScrollController _controller = ScrollController();
  37 +// // widget.customerProvider widget.customerProvider;
  38 +// bool showWarning = false;
  39 +// int year;
  40 +// int month;
  41 +
  42 +// @override
  43 +// void initState() {
  44 +// super.initState();
  45 +
  46 +// year = DateTime.now().year;
  47 +// month = DateTime.now().month;
  48 +// WidgetsBinding.instance.addPostFrameCallback((_) {
  49 +// // _getSellerGuestManage();
  50 +// _getMarketingBySeller();
  51 +// _getSellerCountsList();
  52 +// });
  53 +// bus.on("refresh_store_customer_home", (arg) {
  54 +// _getMarketingBySeller();
  55 +// // _getSellerGuestManage();
  56 +// _getSellerCountsList();
  57 +// });
  58 +// }
  59 +
  60 +// @override
  61 +// void dispose() {
  62 +// bus.off('refresh_store_customer_home');
  63 +// // bus.off("refresh_coupon_list");
  64 +// super.dispose();
  65 +// }
  66 +
  67 +// ///全店客情首页
  68 +// _getSellerGuestManage() async {
  69 +// StoreCustomerHomeSunModel model =
  70 +// await widget.customerProvider.getSellerGuestManage(context);
  71 +// // setState(() {});
  72 +// }
  73 +
  74 +// _getMarketingBySeller() async {
  75 +// Map<String, String> params = {
  76 +// "sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid
  77 +// };
  78 +// List<MarketingBySellerSunModel> list =
  79 +// await widget.customerProvider.getMarketingBySeller(context, params);
  80 +// if (list != null && list.length > 0) {
  81 +// bool temp = list.any((value) {
  82 +// return value.finishedStatus == '0';
  83 +// });
  84 +// setState(() {
  85 +// showWarning = temp;
  86 +// });
  87 +// }
  88 +// // await widget.customerProvider.searchData(widget.customerProvider.controller.text);
  89 +// }
  90 +
  91 +// _getSellerCountsList({isShowLoading = false, VoidCallback callback}) async {
  92 +// Map<String, String> params = {
  93 +// 'sellerid': Provider.of<UserModel>(context, listen: false).user.sellerid,
  94 +// 'year': year.toString()
  95 +// };
  96 +// await widget.customerProvider
  97 +// .getSellerCountsList(context, params, isShowLoading: isShowLoading);
  98 +// if ((widget.customerProvider.homeStatisticsList == null ||
  99 +// widget.customerProvider.homeStatisticsList.length == 0) &&
  100 +// callback != null) {
  101 +// callback();
  102 +// }
  103 +// }
  104 +
  105 +// ///活跃客户、沉睡客户、流失客户
  106 +// Widget _percentWidget(String pnum, String btnTitle, String percent,
  107 +// {String uid = ''}) {
  108 +// return InkWell(
  109 +// onTap: () async {
  110 +// String index = '0';
  111 +// if (btnTitle == '活跃') {
  112 +// index = '1';
  113 +// } else if (btnTitle == '60天未到店') {
  114 +// index = '2';
  115 +// } else if (btnTitle == '120天未到店') {
  116 +// index = '3';
  117 +// }
  118 +// NavigatorUtil.goCustomerListPage(context, FromPage.FromPageHome, uid,
  119 +// index: index);
  120 +// },
  121 +// child: Container(
  122 +// color: MyColours.color_ffffff,
  123 +// height: w(90),
  124 +// width: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
  125 +// // height: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
  126 +// child: Column(
  127 +// mainAxisAlignment: MainAxisAlignment.center,
  128 +// children: [
  129 +// VEmptyView(30),
  130 +// Container(
  131 +// // height: w(24),
  132 +// child: Row(
  133 +// mainAxisAlignment: MainAxisAlignment.center,
  134 +// children: [
  135 +// Text(pnum,
  136 +// style: TextStyle(
  137 +// color: btnTitle == '活跃'
  138 +// ? MyColours.color_199095
  139 +// : btnTitle == '60天未到店'
  140 +// ? MyColours.color_E89243
  141 +// : MyColours.color_E34D59,
  142 +// fontSize: ScreenUtil().setSp(48),
  143 +// fontWeight: FontWeight.bold)),
  144 +// Text('位',
  145 +// style: TextStyle(
  146 +// color: MyColours.color_515151,
  147 +// fontSize: ScreenUtil().setSp(28),
  148 +// ))
  149 +// ],
  150 +// )),
  151 +// VEmptyView(20),
  152 +// RoundButton(
  153 +// onPressed: () async {
  154 +// String index = '0';
  155 +// if (btnTitle == '活跃') {
  156 +// index = '1';
  157 +// } else if (btnTitle == '60天未到店') {
  158 +// index = '2';
  159 +// } else if (btnTitle == '120天未到店') {
  160 +// index = '3';
  161 +// }
  162 +// NavigatorUtil.goCustomerListPage(
  163 +// context, FromPage.FromPageHome, uid,
  164 +// index: index);
  165 +// },
  166 +// text: btnTitle,
  167 +// fontSize: 24,
  168 +// isBold: false,
  169 +// textColor: MyColours.color_999999,
  170 +// gradientStart: MyColours.color_ffffff,
  171 +// gradientEnd: MyColours.color_ffffff,
  172 +// borderColor: MyColours.color_ffffff,
  173 +// height: ScreenUtil().setWidth(48),
  174 +// // width: ScreenUtil().setWidth(160),
  175 +// radius: ScreenUtil().setWidth(30),
  176 +// ),
  177 +// // VEmptyView(16),
  178 +// // percent == null
  179 +// // ? SizedBox()
  180 +// // : Text('${percent}%',
  181 +// // style: TextStyle(
  182 +// // color: MyColours.color_199095,
  183 +// // fontSize: ScreenUtil().setSp(24),
  184 +// // )),
  185 +// ],
  186 +// ),
  187 +// ));
  188 +// }
  189 +
  190 +// ///活跃客户、沉睡客户、流失客户
  191 +// // Widget _percentWidget(String pnum, String btnTitle, String percent,
  192 +// // {String uid = ''}) {
  193 +// // return InkWell(
  194 +// // onTap: () async {
  195 +// // String index = '0';
  196 +
  197 +// // if (btnTitle == '活跃') {
  198 +// // index = '1';
  199 +// // } else if (btnTitle == '60天未到店') {
  200 +// // index = '2';
  201 +// // } else if (btnTitle == '120天未到店') {
  202 +// // index = '3';
  203 +// // }
  204 +// // if (btnTitle == '未分配') {
  205 +// // NavigatorUtil.goCustomerListPage(
  206 +// // context, FromPage.FromPageHome, uid,
  207 +// // index: index, distribution: true);
  208 +// // } else {
  209 +// // NavigatorUtil.goCustomerListPage(
  210 +// // context, FromPage.FromPageHome, uid,
  211 +// // index: index);
  212 +// // }
  213 +// // },
  214 +// // child: Container(
  215 +// // color: MyColours.color_ffffff,
  216 +// // // height: ScreenUtil().setWidth(230),
  217 +// // width: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
  218 +// // height: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
  219 +// // child: Column(
  220 +// // mainAxisAlignment: MainAxisAlignment.center,
  221 +// // children: [
  222 +// // Row(
  223 +// // mainAxisAlignment: MainAxisAlignment.center,
  224 +// // children: [
  225 +// // Text(pnum,
  226 +// // style: TextStyle(
  227 +// // color: MyColours.color_199095,
  228 +// // fontSize: ScreenUtil().setSp(40),
  229 +// // fontWeight: FontWeight.bold)),
  230 +// // Text('位',
  231 +// // style: TextStyle(
  232 +// // color: MyColours.color_199095,
  233 +// // fontSize: ScreenUtil().setSp(24),
  234 +// // ))
  235 +// // ],
  236 +// // ),
  237 +// // btnTitle == '' ? SizedBox() : VEmptyView(20),
  238 +// // btnTitle == ''
  239 +// // ? SizedBox()
  240 +// // : InkWell(
  241 +// // onTap: () async {
  242 +// // String index = '0';
  243 +
  244 +// // if (btnTitle == '活跃客户') {
  245 +// // index = '1';
  246 +// // } else if (btnTitle == '沉睡客户') {
  247 +// // index = '2';
  248 +// // } else if (btnTitle == '流失客户') {
  249 +// // index = '3';
  250 +// // }
  251 +// // if (btnTitle == '未分配') {
  252 +// // NavigatorUtil.goCustomerListPage(
  253 +// // context, FromPage.FromPageHome, uid,
  254 +// // index: index, distribution: true);
  255 +// // } else {
  256 +// // NavigatorUtil.goCustomerListPage(
  257 +// // context, FromPage.FromPageHome, uid,
  258 +// // index: index);
  259 +// // }
  260 +// // },
  261 +// // child: Container(
  262 +// // height: ScreenUtil().setWidth(45),
  263 +// // width: ScreenUtil().setWidth(160),
  264 +// // alignment: Alignment.center,
  265 +// // padding: EdgeInsets.symmetric(horizontal: w(10)),
  266 +// // decoration: BoxDecoration(
  267 +// // color: MyColours.color_ffffff,
  268 +// // border: Border.all(
  269 +// // width: w(1),
  270 +// // color: Color.fromRGBO(118, 118, 118, 1),
  271 +// // ),
  272 +// // borderRadius:
  273 +// // BorderRadius.circular(ScreenUtil().setWidth(30)),
  274 +// // ),
  275 +// // child: Text(
  276 +// // btnTitle,
  277 +// // maxLines: 1,
  278 +// // overflow: TextOverflow.ellipsis,
  279 +// // style: TextStyle(
  280 +// // color: MyColours.color_333333,
  281 +// // fontSize: font(12)),
  282 +// // ),
  283 +// // ))
  284 +// // // RoundButton(
  285 +// // // onPressed: () async {
  286 +// // // String index = '0';
  287 +
  288 +// // // if (btnTitle == '活跃客户') {
  289 +// // // index = '1';
  290 +// // // } else if (btnTitle == '沉睡客户') {
  291 +// // // index = '2';
  292 +// // // } else if (btnTitle == '流失客户') {
  293 +// // // index = '3';
  294 +// // // }
  295 +// // // NavigatorUtil.goCustomerListPage(
  296 +// // // context, FromPage.FromPageHome, uid,
  297 +// // // index: index);
  298 +// // // },
  299 +// // // text: btnTitle,
  300 +// // // fontSize: 24,
  301 +// // // isBold: false,
  302 +// // // textColor: MyColours.color_333333,
  303 +// // // gradientStart: MyColours.color_ffffff,
  304 +// // // gradientEnd: MyColours.color_ffffff,
  305 +// // // borderColor: Color.fromRGBO(118, 118, 118, 1),
  306 +// // // height: ScreenUtil().setWidth(45),
  307 +// // // width: ScreenUtil().setWidth(160),
  308 +// // // radius: ScreenUtil().setWidth(30),
  309 +// // // ),
  310 +// // ,
  311 +// // VEmptyView(16),
  312 +// // percent == null
  313 +// // ? SizedBox()
  314 +// // : Text('${percent}%',
  315 +// // style: TextStyle(
  316 +// // color: MyColours.color_199095,
  317 +// // fontSize: ScreenUtil().setSp(24),
  318 +// // )),
  319 +// // ],
  320 +// // ),
  321 +// // ));
  322 +// // }
  323 +
  324 +// Widget _chart() {
  325 +// return Container(
  326 +// // height: w(216),
  327 +// padding: EdgeInsets.only(top: w(16), left: w(16), right: w(16)),
  328 +// margin: EdgeInsets.all(w(10)),
  329 +// decoration: BoxDecoration(
  330 +// color: MyColours.color_ffffff,
  331 +// borderRadius: BorderRadius.circular(r(8))),
  332 +// child: Column(
  333 +// children: [
  334 +// Row(
  335 +// mainAxisAlignment: MainAxisAlignment.spaceBetween,
  336 +// children: [
  337 +// InkWell(
  338 +// onTap: () {
  339 +// if (year == 2018) {
  340 +// return;
  341 +// }
  342 +// setState(() {
  343 +// year--;
  344 +// });
  345 +// _getSellerCountsList(
  346 +// isShowLoading: true,
  347 +// callback: () {
  348 +// setState(() {
  349 +// year++;
  350 +// });
  351 +// });
  352 +// // _getGuestReserve(showLoading: true);
  353 +// },
  354 +// child: Padding(
  355 +// padding:
  356 +// EdgeInsets.only(right: ScreenUtil().setWidth(20)),
  357 +// child: Image.asset(
  358 +// Utils.getImgPath(year == 2018
  359 +// ? 'c_arrow_left_gray'
  360 +// : 'c_arrow_left'),
  361 +// width: ScreenUtil().setWidth(24),
  362 +// ))),
  363 +// Text(
  364 +// '${year}年',
  365 +// style: TextStyle(
  366 +// fontSize: ScreenUtil().setSp(32),
  367 +// color: MyColours.color_000000),
  368 +// ),
  369 +// InkWell(
  370 +// onTap: () {
  371 +// if (year >= DateTime.now().year) {
  372 +// return;
  373 +// }
  374 +// setState(() {
  375 +// year++;
  376 +// });
  377 +// _getSellerCountsList(
  378 +// isShowLoading: true,
  379 +// callback: () {
  380 +// setState(() {
  381 +// year--;
  382 +// });
  383 +// });
  384 +// // _getGuestReserve(showLoading: true);
  385 +// },
  386 +// child: Padding(
  387 +// padding: EdgeInsets.only(
  388 +// left: ScreenUtil().setWidth(20),
  389 +// ),
  390 +// child: Image.asset(
  391 +// Utils.getImgPath(year != DateTime.now().year
  392 +// ? 'c_arrow_right'
  393 +// : 'c_arrow_right_gray'),
  394 +// width: ScreenUtil().setWidth(24),
  395 +// )))
  396 +// ],
  397 +// ),
  398 +// VEmptyView(80),
  399 +// Container(
  400 +// width: double.infinity,
  401 +// height: w(177),
  402 +// child: LayoutBuilder(builder: (context, constraints) {
  403 +// return BarChartWidget(
  404 +// dataList: widget.customerProvider.chartHomeDataList,
  405 +// );
  406 +// }))
  407 +// ],
  408 +// ),
  409 +// );
  410 +// }
  411 +
  412 +// Widget _monthWidget() {
  413 +// return Container(
  414 +// margin: EdgeInsets.symmetric(horizontal: w(10)),
  415 +// padding: EdgeInsets.symmetric(horizontal: w(15), vertical: w(10)),
  416 +// decoration: BoxDecoration(color: MyColours.color_ffffff),
  417 +// child: Column(
  418 +// crossAxisAlignment: CrossAxisAlignment.start,
  419 +// children: [
  420 +// Row(
  421 +// mainAxisAlignment: MainAxisAlignment.spaceBetween,
  422 +// children: [
  423 +// InkWell(
  424 +// onTap: () {
  425 +// if (month == 1) {
  426 +// month = 12;
  427 +// setState(() {});
  428 +// } else {
  429 +// setState(() {
  430 +// month--;
  431 +// });
  432 +// }
  433 +
  434 +// // _getGuestReserve(showLoading: true);
  435 +// },
  436 +// child: Padding(
  437 +// padding:
  438 +// EdgeInsets.only(right: ScreenUtil().setWidth(20)),
  439 +// child: Image.asset(
  440 +// Utils.getImgPath('c_arrow_left'),
  441 +// width: ScreenUtil().setWidth(24),
  442 +// ))),
  443 +// Text(
  444 +// '${month}月',
  445 +// style: TextStyle(
  446 +// fontSize: ScreenUtil().setSp(40),
  447 +// color: MyColours.color_515151),
  448 +// ),
  449 +// InkWell(
  450 +// onTap: () {
  451 +// if (month == 12) {
  452 +// month = 1;
  453 +// setState(() {});
  454 +// } else {
  455 +// setState(() {
  456 +// month++;
  457 +// });
  458 +// }
  459 +
  460 +// // _getGuestReserve(showLoading: true);
  461 +// },
  462 +// child: Padding(
  463 +// padding: EdgeInsets.only(
  464 +// left: ScreenUtil().setWidth(20),
  465 +// ),
  466 +// child: Image.asset(
  467 +// Utils.getImgPath('c_arrow_right'),
  468 +// width: ScreenUtil().setWidth(24),
  469 +// )))
  470 +// ],
  471 +// ),
  472 +// VEmptyView(20),
  473 +// Row(
  474 +// crossAxisAlignment: CrossAxisAlignment.center,
  475 +// children: [
  476 +// Text(
  477 +// '预订',
  478 +// style: TextStyle(
  479 +// fontWeight: FontWeight.bold,
  480 +// color: MyColours.color_515151,
  481 +// fontSize: font(
  482 +// (18),
  483 +// )),
  484 +// ),
  485 +// HEmptyView(10),
  486 +// Text(
  487 +// '1089单',
  488 +// style: TextStyle(
  489 +// color: MyColours.color_515151,
  490 +// fontSize: font(
  491 +// (14),
  492 +// )),
  493 +// ),
  494 +// HEmptyView(10),
  495 +// MyDivider(
  496 +// w(1),
  497 +// w(15),
  498 +// color: MyColours.color_DBDBDB,
  499 +// ),
  500 +// HEmptyView(10),
  501 +// Text(
  502 +// '1190桌',
  503 +// style: TextStyle(
  504 +// color: MyColours.color_515151,
  505 +// fontSize: font(
  506 +// (14),
  507 +// )),
  508 +// ),
  509 +// ],
  510 +// ),
  511 +// VEmptyView(15),
  512 +// Wrap(
  513 +// // crossAxisAlignment: WrapCrossAlignment.center,
  514 +// // runAlignment: WrapAlignment.center,
  515 +// // alignment: WrapAlignment.center,
  516 +// runSpacing: w(5),
  517 +// children: [
  518 +// Text(
  519 +// '到店',
  520 +// style: TextStyle(
  521 +// fontWeight: FontWeight.bold,
  522 +// color: MyColours.color_515151,
  523 +// fontSize: font(
  524 +// (18),
  525 +// )),
  526 +// ),
  527 +// HEmptyView(10),
  528 +// Text(
  529 +// '1089单',
  530 +// style: TextStyle(
  531 +// color: MyColours.color_515151,
  532 +// fontSize: font(
  533 +// (14),
  534 +// )),
  535 +// ),
  536 +// HEmptyView(10),
  537 +// MyDivider(
  538 +// w(1),
  539 +// w(15),
  540 +// color: MyColours.color_DBDBDB,
  541 +// ),
  542 +// HEmptyView(10),
  543 +// Text(
  544 +// '1190桌',
  545 +// style: TextStyle(
  546 +// color: MyColours.color_515151,
  547 +// fontSize: font(
  548 +// (14),
  549 +// )),
  550 +// ),
  551 +// HEmptyView(10),
  552 +// MyDivider(
  553 +// w(1),
  554 +// w(15),
  555 +// color: MyColours.color_DBDBDB,
  556 +// ),
  557 +// HEmptyView(10),
  558 +// Text(
  559 +// '1190人',
  560 +// style: TextStyle(
  561 +// color: MyColours.color_515151,
  562 +// fontSize: font(
  563 +// (14),
  564 +// )),
  565 +// ),
  566 +// HEmptyView(10),
  567 +// MyDivider(
  568 +// w(1),
  569 +// w(15),
  570 +// color: MyColours.color_DBDBDB,
  571 +// ),
  572 +// HEmptyView(10),
  573 +// Text(
  574 +// '1190取消',
  575 +// style: TextStyle(
  576 +// color: MyColours.color_515151,
  577 +// fontSize: font(
  578 +// (14),
  579 +// )),
  580 +// ),
  581 +// HEmptyView(10),
  582 +// MyDivider(
  583 +// w(1),
  584 +// w(15),
  585 +// color: MyColours.color_DBDBDB,
  586 +// ),
  587 +// HEmptyView(10),
  588 +// Text(
  589 +// '到客97.2%',
  590 +// style: TextStyle(
  591 +// color: MyColours.color_515151,
  592 +// fontSize: font(
  593 +// (14),
  594 +// )),
  595 +// ),
  596 +// ],
  597 +// ),
  598 +// VEmptyView(15),
  599 +// MyDivider(
  600 +// double.infinity,
  601 +// w(1),
  602 +// color: MyColours.color_DBDBDB,
  603 +// ),
  604 +// VEmptyView(15),
  605 +// Wrap(
  606 +// // crossAxisAlignment: WrapCrossAlignment.start,
  607 +// // runAlignment: WrapAlignment.center,
  608 +// // alignment: WrapAlignment.center,
  609 +// runSpacing: w(5),
  610 +// children: [
  611 +// Text(
  612 +// '有金额订单 6000',
  613 +// style: TextStyle(
  614 +// color: MyColours.color_999999,
  615 +// decoration: TextDecoration.underline,
  616 +// fontSize: font(
  617 +// (10),
  618 +// )),
  619 +// ),
  620 +// HEmptyView(10),
  621 +// MyDivider(
  622 +// w(1),
  623 +// w(12),
  624 +// color: MyColours.color_DBDBDB,
  625 +// ),
  626 +// HEmptyView(10),
  627 +// Text(
  628 +// '消费 9585800.00元',
  629 +// style: TextStyle(
  630 +// color: MyColours.color_999999,
  631 +// decoration: TextDecoration.underline,
  632 +// fontSize: font(
  633 +// (10),
  634 +// )),
  635 +// ),
  636 +// HEmptyView(10),
  637 +// MyDivider(
  638 +// w(1),
  639 +// w(12),
  640 +// color: MyColours.color_DBDBDB,
  641 +// ),
  642 +// HEmptyView(10),
  643 +// Text(
  644 +// '人均 8885.58元',
  645 +// style: TextStyle(
  646 +// color: MyColours.color_999999,
  647 +// decoration: TextDecoration.underline,
  648 +// fontSize: font(
  649 +// (10),
  650 +// )),
  651 +// ),
  652 +// HEmptyView(10),
  653 +// MyDivider(
  654 +// w(1),
  655 +// w(12),
  656 +// color: MyColours.color_DBDBDB,
  657 +// ),
  658 +// HEmptyView(10),
  659 +// Text(
  660 +// '桌均 95888.58元',
  661 +// style: TextStyle(
  662 +// color: MyColours.color_999999,
  663 +// decoration: TextDecoration.underline,
  664 +// fontSize: font(
  665 +// (10),
  666 +// )),
  667 +// ),
  668 +// HEmptyView(10),
  669 +// MyDivider(
  670 +// w(1),
  671 +// w(12),
  672 +// color: MyColours.color_DBDBDB,
  673 +// ),
  674 +// HEmptyView(10),
  675 +// Text(
  676 +// '存酒 8位',
  677 +// style: TextStyle(
  678 +// color: MyColours.color_999999,
  679 +// decoration: TextDecoration.underline,
  680 +// fontSize: font(
  681 +// (10),
  682 +// )),
  683 +// ),
  684 +// HEmptyView(10),
  685 +// MyDivider(
  686 +// w(1),
  687 +// w(12),
  688 +// color: MyColours.color_DBDBDB,
  689 +// ),
  690 +// HEmptyView(10),
  691 +// Text(
  692 +// '提前点餐 9位',
  693 +// style: TextStyle(
  694 +// color: MyColours.color_999999,
  695 +// decoration: TextDecoration.underline,
  696 +// fontSize: font(
  697 +// (10),
  698 +// )),
  699 +// ),
  700 +// HEmptyView(10),
  701 +// MyDivider(
  702 +// w(1),
  703 +// w(12),
  704 +// color: MyColours.color_DBDBDB,
  705 +// ),
  706 +// HEmptyView(10),
  707 +// Text(
  708 +// '安排菜 9位',
  709 +// style: TextStyle(
  710 +// color: MyColours.color_999999,
  711 +// decoration: TextDecoration.underline,
  712 +// fontSize: font(
  713 +// (10),
  714 +// )),
  715 +// ),
  716 +// ],
  717 +// ),
  718 +// ],
  719 +// ),
  720 +// );
  721 +// }
  722 +
  723 +// Widget _managerWidget(
  724 +// String pnum, String btnTitle, String percent, String detailStr,
  725 +// {String uid = '', GestureTapCallback onTap}) {
  726 +// List detailList = detailStr.split('-');
  727 +// String firStr = detailList.length > 0 ? detailList[0] : '';
  728 +// String secStr = detailList.length > 1 ? detailList[1] : '';
  729 +// String thrStr = detailList.length > 2 ? detailList[2] : '';
  730 +// return InkWell(
  731 +// onTap: onTap,
  732 +// child: Container(
  733 +// // width: w(122),
  734 +// height: w(116),
  735 +// padding: EdgeInsets.symmetric(vertical: w(12), horizontal: w(10)),
  736 +// decoration: BoxDecoration(
  737 +// color: MyColours.color_ffffff,
  738 +// ),
  739 +// child: Column(
  740 +// children: [
  741 +// Align(
  742 +// alignment: Alignment.centerLeft,
  743 +// child: Container(
  744 +// // constraints: BoxConstraints(maxHeight: w(24)),
  745 +// padding:
  746 +// EdgeInsets.symmetric(vertical: w(4), horizontal: w(5)),
  747 +// decoration: BoxDecoration(
  748 +// borderRadius: BorderRadius.circular(r(3)),
  749 +// border: Border.all(
  750 +// color: MyColours.color_999999, width: w(1))),
  751 +// child: Text(
  752 +// btnTitle,
  753 +// maxLines: 1,
  754 +// overflow: TextOverflow.ellipsis,
  755 +// style: TextStyle(
  756 +// fontSize: font(12),
  757 +// fontWeight: FontWeight.bold,
  758 +// color: MyColours.color_999999),
  759 +// ),
  760 +// ),
  761 +// ),
  762 +// VEmptyView(20),
  763 +// Row(
  764 +// mainAxisAlignment: MainAxisAlignment.center,
  765 +// children: [
  766 +// Text(
  767 +// pnum,
  768 +// style: TextStyle(
  769 +// fontSize: font(24),
  770 +// fontWeight: FontWeight.bold,
  771 +// color: MyColours.color_438E93),
  772 +// ),
  773 +// Text(
  774 +// '位',
  775 +// style: TextStyle(
  776 +// fontSize: font(14), color: MyColours.color_000000),
  777 +// ),
  778 +// ],
  779 +// ),
  780 +// VEmptyView(10),
  781 +// Row(
  782 +// mainAxisAlignment: MainAxisAlignment.center,
  783 +// children: [
  784 +// Text(
  785 +// firStr,
  786 +// style: TextStyle(
  787 +// fontSize: font(14),
  788 +// fontWeight: FontWeight.bold,
  789 +// color: MyColours.color_438E93),
  790 +// ),
  791 +// MyDivider(
  792 +// w(4),
  793 +// w(1),
  794 +// color: MyColours.color_999999,
  795 +// ),
  796 +// Text(
  797 +// secStr,
  798 +// style: TextStyle(
  799 +// fontSize: font(14),
  800 +// fontWeight: FontWeight.bold,
  801 +// color: MyColours.color_E89243),
  802 +// ),
  803 +// MyDivider(
  804 +// w(4),
  805 +// w(1),
  806 +// color: MyColours.color_999999,
  807 +// ),
  808 +// Text(
  809 +// thrStr,
  810 +// style: TextStyle(
  811 +// fontSize: font(14),
  812 +// fontWeight: FontWeight.bold,
  813 +// color: MyColours.color_E34D59),
  814 +// ),
  815 +// ],
  816 +// ),
  817 +// ],
  818 +// ),
  819 +// ));
  820 +// }
  821 +
  822 +// @override
  823 +// Widget build(BuildContext context) {
  824 +// // widget.customerProvider = Provider.of<widget.customerProvider>(context, listen: true);
  825 +// return Scaffold(
  826 +// // backgroundColor: Color.fromRGBO(246, 248, 250, 1),
  827 +// // appBar: SystemAppBar('全店客情', onTap: () {
  828 +// // EventBus().emit('changeStatusColor');
  829 +// // Navigator.pop(context);
  830 +// // }),
  831 +// body: WillPopScope(onWillPop: () async {
  832 +// EventBus().emit('changeStatusColor');
  833 +// return true;
  834 +// }, child: Consumer<CustomerProvider>(builder: (context, model, _) {
  835 +// if (model.pageStateStoreHome != PageState.Success) {
  836 +// return ExceptionPage(
  837 +// pageState: model.pageStateStoreHome,
  838 +// callback: () {
  839 +// // getTableList();
  840 +// _getSellerGuestManage();
  841 +// },
  842 +// emptyMsg: "暂时没有全店客情哦",
  843 +// emptyImg: "empty_search",
  844 +// showMsg: "加载中,请稍后...",
  845 +// );
  846 +// } else {
  847 +// return Column(children: [
  848 +// Expanded(
  849 +// child: SingleChildScrollView(
  850 +// controller: _controller,
  851 +// child: Column(
  852 +// children: [
  853 +// VEmptyView(10),
  854 +// // Stack(
  855 +// // children: [
  856 +// InkWell(
  857 +// onTap: () {
  858 +// NavigatorUtil.goCustomerListPage(
  859 +// context, FromPage.FromPageHome, '');
  860 +// },
  861 +// child: Container(
  862 +// height: w(80),
  863 +// color: MyColours.color_ffffff,
  864 +// child: Row(
  865 +// mainAxisAlignment: MainAxisAlignment.center,
  866 +// children: [
  867 +// Text(
  868 +// '${widget.customerProvider.storeSunmodel.myCustomer}',
  869 +// style: TextStyle(
  870 +// color: MyColours.color_438E93,
  871 +// fontSize: ScreenUtil().setSp(64),
  872 +// fontWeight: FontWeight.bold),
  873 +// ),
  874 +// Text(
  875 +// '位',
  876 +// style: TextStyle(
  877 +// color: MyColours.color_515151,
  878 +// // fontWeight: FontWeight.bold,
  879 +// fontSize: ScreenUtil().setSp(32)),
  880 +// )
  881 +// ],
  882 +// ),
  883 +// )),
  884 +// // Positioned(
  885 +// // top: ScreenUtil().setWidth(30),
  886 +// // right: ScreenUtil().setWidth(40),
  887 +// // child: InkWell(
  888 +// // onTap: () {
  889 +// // NavigatorUtil.goCustomerSetPage(context);
  890 +// // },
  891 +// // child: Image.asset(Utils.getImgPath('c_set'),
  892 +// // width: ScreenUtil().setWidth(40))))
  893 +// // ],
  894 +// // ),
  895 +// VEmptyView(10),
  896 +// Row(
  897 +// children: [
  898 +// _percentWidget(
  899 +// '${widget.customerProvider.storeSunmodel.active.count}',
  900 +// '活跃',
  901 +// '${widget.customerProvider.storeSunmodel.active.scale}'),
  902 +// HEmptyView(10),
  903 +// _percentWidget(
  904 +// '${widget.customerProvider.storeSunmodel.sleep.count}',
  905 +// '60天未到店',
  906 +// '${widget.customerProvider.storeSunmodel.sleep.scale}'),
  907 +// HEmptyView(10),
  908 +// _percentWidget(
  909 +// '${widget.customerProvider.storeSunmodel.drain.count}',
  910 +// '120天未到店',
  911 +// '${widget.customerProvider.storeSunmodel.drain.scale}'),
  912 +// ],
  913 +// ),
  914 +// // GridView.builder(
  915 +// // controller: _controller,
  916 +// // shrinkWrap: true,
  917 +// // cacheExtent: ScreenUtil().setWidth(0),
  918 +// // itemCount: 3,
  919 +// // gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
  920 +// // crossAxisCount: 3,
  921 +// // childAspectRatio: 1,
  922 +// // mainAxisSpacing: ScreenUtil().setWidth(10),
  923 +// // crossAxisSpacing: ScreenUtil().setWidth(10)),
  924 +// // itemBuilder: (BuildContext context, int index) {
  925 +// // // locationState = state;
  926 +// // return _percentWidget('1999', '活跃客户', '39.20');
  927 +// // }),
  928 +// // Row(
  929 +// // children: [
  930 +// // _percentWidget('19992', '活跃客户', '90.90'),
  931 +// // HEmptyView(10),
  932 +// // _percentWidget('19992', '沉睡客户', '90.90'),
  933 +// // HEmptyView(10),
  934 +// // _percentWidget('19992', '流失客户', '5.90'),
  935 +// // ],
  936 +// // ),
  937 +// // Padding(
  938 +// // padding: EdgeInsets.symmetric(
  939 +// // vertical: ScreenUtil().setWidth(30)),
  940 +// // child: Text(
  941 +// // '客户经理',
  942 +// // style: TextStyle(
  943 +// // fontSize: ScreenUtil().setSp(28),
  944 +// // color: MyColours.color_333333),
  945 +// // ),
  946 +// // ),
  947 +// VEmptyView(10),
  948 +// GridView.builder(
  949 +// controller: _controller,
  950 +// shrinkWrap: true,
  951 +// cacheExtent: ScreenUtil().setWidth(0),
  952 +// itemCount: widget.customerProvider.storeSunmodel
  953 +// .sellerUser.length +
  954 +// 1,
  955 +// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
  956 +// crossAxisCount: 3,
  957 +// childAspectRatio: 1.05,
  958 +// mainAxisSpacing: ScreenUtil().setWidth(10),
  959 +// crossAxisSpacing: ScreenUtil().setWidth(10)),
  960 +// itemBuilder: (BuildContext context, int index) {
  961 +// // locationState = state;
  962 +// if (index == 0) {
  963 +// return _managerWidget(
  964 +// '${widget.customerProvider.storeSunmodel.distribution}',
  965 +// '未分配经理',
  966 +// null,
  967 +// '${widget.customerProvider.storeSunmodel.distributionStr}',
  968 +// onTap: () {
  969 +// NavigatorUtil.goCustomerListPage(
  970 +// context, FromPage.FromPageHome, '',
  971 +// index: '0', distribution: true);
  972 +// });
  973 +// }
  974 +
  975 +// return _managerWidget(
  976 +// '${widget.customerProvider.storeSunmodel.sellerUser[index - 1].count}',
  977 +// widget.customerProvider.storeSunmodel
  978 +// .sellerUser[index - 1].account ==
  979 +// null
  980 +// ? ''
  981 +// : '${widget.customerProvider.storeSunmodel.sellerUser[index - 1].nickName ?? widget.customerProvider.storeSunmodel.sellerUser[index - 1].account}',
  982 +// null,
  983 +// '${widget.customerProvider.storeSunmodel.sellerUser[index - 1].detailStr}',
  984 +// uid: widget.customerProvider.storeSunmodel
  985 +// .sellerUser[index - 1].uid, onTap: () {
  986 +// NavigatorUtil.goCustomerListPage(
  987 +// context,
  988 +// FromPage.FromPageHome,
  989 +// widget.customerProvider.storeSunmodel
  990 +// .sellerUser[index - 1].uid,
  991 +// index: '0');
  992 +// });
  993 +// }),
  994 +// VEmptyView(10),
  995 +// ListView.builder(
  996 +// shrinkWrap: true,
  997 +// controller: _controller,
  998 +// itemCount: 2,
  999 +// itemBuilder: (context, index) {
  1000 +// return Container(
  1001 +// padding: EdgeInsets.symmetric(
  1002 +// vertical: w(12), horizontal: w(16)),
  1003 +// decoration: BoxDecoration(
  1004 +// color: MyColours.color_ffffff,
  1005 +// border: Border(
  1006 +// bottom: BorderSide(
  1007 +// color: index == 2 - 1
  1008 +// ? MyColours.color_ffffff
  1009 +// : MyColours.color_E7E7E7,
  1010 +// width: w(1)))),
  1011 +// child: Row(
  1012 +// children: [
  1013 +// Expanded(
  1014 +// child: Text(
  1015 +// '7天内存酒超期:5位/7天内纪念日提醒:3位',
  1016 +// style: TextStyle(
  1017 +// fontSize: font(16),
  1018 +// color: MyColours.color_515151),
  1019 +// )),
  1020 +// Text(
  1021 +// '创建营销计划',
  1022 +// style: TextStyle(
  1023 +// fontSize: font(16),
  1024 +// color: MyColours.color_999999),
  1025 +// ),
  1026 +// HEmptyView(20),
  1027 +// Image.asset(
  1028 +// Utils.getImgPath('arrow_right_new'),
  1029 +// width: w(12),
  1030 +// )
  1031 +// ],
  1032 +// ),
  1033 +// );
  1034 +// }),
  1035 +// _chart(),
  1036 +// // _monthWidget(),
  1037 +
  1038 +// ListView.builder(
  1039 +// itemCount:
  1040 +// widget.customerProvider.homeStatisticsList.length,
  1041 +// shrinkWrap: true,
  1042 +// controller: _controller,
  1043 +// padding: EdgeInsets.symmetric(horizontal: w(10)),
  1044 +// itemBuilder: (context, index) {
  1045 +// SellerCountsListSunModel countsListSunModel =
  1046 +// widget.customerProvider.homeStatisticsList[index];
  1047 +// return InkWell(
  1048 +// onTap: () {
  1049 +// NavigatorUtil.goMonthOrderPage(
  1050 +// context,
  1051 +// year.toString(),
  1052 +// countsListSunModel.monthss.toString());
  1053 +// },
  1054 +// child: MonthItem(
  1055 +// countsListSunModel: countsListSunModel));
  1056 +// }),
  1057 +// /**
  1058 +// ListView.builder(
  1059 +// itemCount: 10,
  1060 +// controller: _controller,
  1061 +// shrinkWrap: true,
  1062 +// padding: EdgeInsets.symmetric(horizontal: w(10)),
  1063 +// itemBuilder: (context, index) {
  1064 +// return Container(
  1065 +// margin: EdgeInsets.only(bottom: w(10)),
  1066 +// padding: EdgeInsets.symmetric(horizontal: w(10)),
  1067 +// decoration: BoxDecoration(
  1068 +// color: MyColours.color_ffffff,
  1069 +// borderRadius: BorderRadius.only(
  1070 +// topRight: Radius.circular(r(8)),
  1071 +// bottomRight: Radius.circular(r(8))),
  1072 +// ),
  1073 +// child: Row(
  1074 +// children: [
  1075 +// Container(
  1076 +// width: w(122),
  1077 +// padding: EdgeInsets.symmetric(vertical: w(5)),
  1078 +// decoration: BoxDecoration(
  1079 +// border: Border(
  1080 +// right: BorderSide(
  1081 +// color: MyColours.color_f3f3f3,
  1082 +// width: w(1)))),
  1083 +// child: Column(
  1084 +// children: [
  1085 +// VEmptyView(24),
  1086 +// Align(
  1087 +// alignment: Alignment.centerLeft,
  1088 +// child: Container(
  1089 +// padding: EdgeInsets.symmetric(
  1090 +// vertical: w(4), horizontal: w(5)),
  1091 +// decoration: BoxDecoration(
  1092 +// borderRadius:
  1093 +// BorderRadius.circular(r(3)),
  1094 +// border: Border.all(
  1095 +// color: MyColours.color_999999,
  1096 +// width: w(1))),
  1097 +// child: Text(
  1098 +// '张珊珊',
  1099 +// style: TextStyle(
  1100 +// fontSize: font(12),
  1101 +// fontWeight: FontWeight.bold,
  1102 +// color: MyColours.color_999999),
  1103 +// ),
  1104 +// ),
  1105 +// ),
  1106 +// VEmptyView(10),
  1107 +// Row(
  1108 +// mainAxisAlignment:
  1109 +// MainAxisAlignment.center,
  1110 +// children: [
  1111 +// Text(
  1112 +// '34',
  1113 +// style: TextStyle(
  1114 +// fontSize: font(24),
  1115 +// fontWeight: FontWeight.bold,
  1116 +// color: MyColours.color_438E93),
  1117 +// ),
  1118 +// Text(
  1119 +// '位',
  1120 +// style: TextStyle(
  1121 +// fontSize: font(14),
  1122 +// color: MyColours.color_000000),
  1123 +// ),
  1124 +// ],
  1125 +// ),
  1126 +// VEmptyView(10),
  1127 +// Row(
  1128 +// mainAxisAlignment:
  1129 +// MainAxisAlignment.center,
  1130 +// children: [
  1131 +// Text(
  1132 +// '23',
  1133 +// style: TextStyle(
  1134 +// fontSize: font(14),
  1135 +// fontWeight: FontWeight.bold,
  1136 +// color: MyColours.color_438E93),
  1137 +// ),
  1138 +// MyDivider(
  1139 +// w(4),
  1140 +// w(1),
  1141 +// color: MyColours.color_999999,
  1142 +// ),
  1143 +// Text(
  1144 +// '9',
  1145 +// style: TextStyle(
  1146 +// fontSize: font(14),
  1147 +// fontWeight: FontWeight.bold,
  1148 +// color: MyColours.color_E89243),
  1149 +// ),
  1150 +// MyDivider(
  1151 +// w(4),
  1152 +// w(1),
  1153 +// color: MyColours.color_999999,
  1154 +// ),
  1155 +// Text(
  1156 +// '2',
  1157 +// style: TextStyle(
  1158 +// fontSize: font(14),
  1159 +// fontWeight: FontWeight.bold,
  1160 +// color: MyColours.color_E34D59),
  1161 +// ),
  1162 +// ],
  1163 +// ),
  1164 +// VEmptyView(24),
  1165 +// ],
  1166 +// ),
  1167 +// ),
  1168 +// Expanded(
  1169 +// child: Container(
  1170 +// padding: EdgeInsets.only(
  1171 +// top: w(5), bottom: w(5), left: w(10)),
  1172 +// child: Row(
  1173 +// mainAxisAlignment:
  1174 +// MainAxisAlignment.spaceBetween,
  1175 +// // crossAxisAlignment: CrossAxisAlignment.start,
  1176 +// children: [
  1177 +// Column(
  1178 +// mainAxisAlignment:
  1179 +// MainAxisAlignment.start,
  1180 +// crossAxisAlignment:
  1181 +// CrossAxisAlignment.start,
  1182 +// children: [
  1183 +// Row(
  1184 +// crossAxisAlignment:
  1185 +// CrossAxisAlignment.start,
  1186 +// children: [
  1187 +// Text(
  1188 +// '预订',
  1189 +// style: TextStyle(
  1190 +// fontWeight: FontWeight.bold,
  1191 +// color: MyColours.color_515151,
  1192 +// fontSize: font(
  1193 +// (12),
  1194 +// )),
  1195 +// ),
  1196 +// HEmptyView(10),
  1197 +// Text(
  1198 +// '1089单',
  1199 +// style: TextStyle(
  1200 +// color: MyColours.color_515151,
  1201 +// fontSize: font(
  1202 +// (10),
  1203 +// )),
  1204 +// ),
  1205 +// HEmptyView(10),
  1206 +// MyDivider(
  1207 +// w(1),
  1208 +// w(15),
  1209 +// color: MyColours.color_DBDBDB,
  1210 +// ),
  1211 +// HEmptyView(10),
  1212 +// Text(
  1213 +// '1190桌',
  1214 +// style: TextStyle(
  1215 +// color: MyColours.color_515151,
  1216 +// fontSize: font(
  1217 +// (10),
  1218 +// )),
  1219 +// ),
  1220 +// ],
  1221 +// ),
  1222 +// VEmptyView(10),
  1223 +// Row(
  1224 +// crossAxisAlignment:
  1225 +// CrossAxisAlignment.start,
  1226 +// children: [
  1227 +// Text(
  1228 +// '到店',
  1229 +// style: TextStyle(
  1230 +// fontWeight: FontWeight.bold,
  1231 +// color: MyColours.color_515151,
  1232 +// fontSize: font(
  1233 +// (12),
  1234 +// )),
  1235 +// ),
  1236 +// HEmptyView(10),
  1237 +// Text(
  1238 +// '1089单',
  1239 +// style: TextStyle(
  1240 +// color: MyColours.color_515151,
  1241 +// fontSize: font(
  1242 +// (10),
  1243 +// )),
  1244 +// ),
  1245 +// HEmptyView(10),
  1246 +// MyDivider(
  1247 +// w(1),
  1248 +// w(15),
  1249 +// color: MyColours.color_DBDBDB,
  1250 +// ),
  1251 +// HEmptyView(10),
  1252 +// Text(
  1253 +// '1190桌',
  1254 +// style: TextStyle(
  1255 +// color: MyColours.color_515151,
  1256 +// fontSize: font(
  1257 +// (10),
  1258 +// )),
  1259 +// ),
  1260 +// ],
  1261 +// ),
  1262 +// VEmptyView(10),
  1263 +// Row(
  1264 +// crossAxisAlignment:
  1265 +// CrossAxisAlignment.start,
  1266 +// children: [
  1267 +// Text(
  1268 +// '1089人',
  1269 +// style: TextStyle(
  1270 +// color: MyColours.color_515151,
  1271 +// fontSize: font(
  1272 +// (10),
  1273 +// )),
  1274 +// ),
  1275 +// HEmptyView(10),
  1276 +// MyDivider(
  1277 +// w(1),
  1278 +// w(15),
  1279 +// color: MyColours.color_DBDBDB,
  1280 +// ),
  1281 +// HEmptyView(10),
  1282 +// Text(
  1283 +// '1190取消',
  1284 +// style: TextStyle(
  1285 +// color: MyColours.color_515151,
  1286 +// fontSize: font(
  1287 +// (10),
  1288 +// )),
  1289 +// ),
  1290 +// HEmptyView(10),
  1291 +// MyDivider(
  1292 +// w(1),
  1293 +// w(15),
  1294 +// color: MyColours.color_DBDBDB,
  1295 +// ),
  1296 +// HEmptyView(10),
  1297 +// Text(
  1298 +// '到客90.1%',
  1299 +// style: TextStyle(
  1300 +// color: MyColours.color_515151,
  1301 +// fontSize: font(
  1302 +// (10),
  1303 +// )),
  1304 +// ),
  1305 +// ],
  1306 +// ),
  1307 +// VEmptyView(10),
  1308 +// Row(
  1309 +// crossAxisAlignment:
  1310 +// CrossAxisAlignment.start,
  1311 +// children: [
  1312 +// Text(
  1313 +// '有金额订单数 25',
  1314 +// style: TextStyle(
  1315 +// color: MyColours.color_999999,
  1316 +// fontSize: font(
  1317 +// (10),
  1318 +// )),
  1319 +// ),
  1320 +// HEmptyView(10),
  1321 +// MyDivider(
  1322 +// w(1),
  1323 +// w(15),
  1324 +// color: MyColours.color_DBDBDB,
  1325 +// ),
  1326 +// HEmptyView(10),
  1327 +// Text(
  1328 +// '总消费 25800元',
  1329 +// style: TextStyle(
  1330 +// color: MyColours.color_999999,
  1331 +// fontSize: font(
  1332 +// (10),
  1333 +// )),
  1334 +// ),
  1335 +// ],
  1336 +// ),
  1337 +// VEmptyView(10),
  1338 +// Row(
  1339 +// crossAxisAlignment:
  1340 +// CrossAxisAlignment.start,
  1341 +// children: [
  1342 +// Text(
  1343 +// '人均 103.2元',
  1344 +// style: TextStyle(
  1345 +// color: MyColours.color_999999,
  1346 +// fontSize: font(
  1347 +// (10),
  1348 +// )),
  1349 +// ),
  1350 +// HEmptyView(10),
  1351 +// MyDivider(
  1352 +// w(1),
  1353 +// w(15),
  1354 +// color: MyColours.color_DBDBDB,
  1355 +// ),
  1356 +// HEmptyView(10),
  1357 +// Text(
  1358 +// '桌均 860元',
  1359 +// style: TextStyle(
  1360 +// color: MyColours.color_999999,
  1361 +// fontSize: font(
  1362 +// (10),
  1363 +// )),
  1364 +// ),
  1365 +// ],
  1366 +// ),
  1367 +// VEmptyView(10),
  1368 +// Row(
  1369 +// crossAxisAlignment:
  1370 +// CrossAxisAlignment.start,
  1371 +// children: [
  1372 +// Text(
  1373 +// '存酒 1位',
  1374 +// style: TextStyle(
  1375 +// color: MyColours.color_999999,
  1376 +// fontSize: font(
  1377 +// (10),
  1378 +// )),
  1379 +// ),
  1380 +// HEmptyView(10),
  1381 +// MyDivider(
  1382 +// w(1),
  1383 +// w(15),
  1384 +// color: MyColours.color_DBDBDB,
  1385 +// ),
  1386 +// HEmptyView(10),
  1387 +// Text(
  1388 +// '提前点餐 9位',
  1389 +// style: TextStyle(
  1390 +// color: MyColours.color_999999,
  1391 +// fontSize: font(
  1392 +// (10),
  1393 +// )),
  1394 +// ),
  1395 +// HEmptyView(10),
  1396 +// MyDivider(
  1397 +// w(1),
  1398 +// w(15),
  1399 +// color: MyColours.color_DBDBDB,
  1400 +// ),
  1401 +// HEmptyView(10),
  1402 +// Text(
  1403 +// '安排菜 9位',
  1404 +// style: TextStyle(
  1405 +// color: MyColours.color_999999,
  1406 +// fontSize: font(
  1407 +// (10),
  1408 +// )),
  1409 +// ),
  1410 +// ],
  1411 +// ),
  1412 +// ],
  1413 +// ),
  1414 +// Image.asset(
  1415 +// Utils.getImgPath('arrow_right_new'),
  1416 +// width: w(12),
  1417 +// )
  1418 +// ],
  1419 +// ),
  1420 +// ))
  1421 +// ],
  1422 +// ),
  1423 +// );
  1424 +// })
  1425 +// */
  1426 +// ],
  1427 +// ),
  1428 +// )),
  1429 +// Container(
  1430 +// color: MyColours.color_FAFAFA,
  1431 +// padding: EdgeInsets.only(
  1432 +// top: w(13), bottom: w(26), left: w(45), right: (45)),
  1433 +// child: Stack(
  1434 +// children: [
  1435 +// RoundButton(
  1436 +// onPressed: () {
  1437 +// NavigatorUtil.goMarketingRecordsPage(
  1438 +// context, FromPage.FromPageStoreCustomer);
  1439 +// },
  1440 +// text: '历史营销记录',
  1441 +// fontSize: 32,
  1442 +// isBold: true,
  1443 +// // margin: EdgeInsets.only(
  1444 +// // top: w(13),
  1445 +// // bottom: w(26),
  1446 +// // left: w(45),
  1447 +// // right: (45)),
  1448 +// textColor: MyColours.color_F8F9FD,
  1449 +// gradientStart: MyColours.color_199095,
  1450 +// gradientEnd: MyColours.color_199095,
  1451 +// borderColor: MyColours.color_199095,
  1452 +// height: ScreenUtil().setWidth(86),
  1453 +// // width: ScreenUtil().setWidth(260),
  1454 +// radius: ScreenUtil().setWidth(10),
  1455 +// ),
  1456 +// showWarning
  1457 +// ? Positioned(
  1458 +// right: ScreenUtil().setWidth(30),
  1459 +// top: ScreenUtil().setWidth(45 / 2),
  1460 +// child: Image.asset(
  1461 +// Utils.getImgPath('warning'),
  1462 +// width: ScreenUtil().setWidth(35),
  1463 +// ))
  1464 +// : SizedBox()
  1465 +// ],
  1466 +// ))
  1467 +// ]);
  1468 +// }
  1469 +// })),
  1470 +// );
  1471 +// }
  1472 +// }
@@ -174,7 +174,7 @@ class _StoreCustomerHomeRightPageState @@ -174,7 +174,7 @@ class _StoreCustomerHomeRightPageState
174 // } else { 174 // } else {
175 // //没有新建的优惠券 175 // //没有新建的优惠券
176 // } 176 // }
177 - _getGuestManageData(); 177 + _getGuestManageData(isShowLoading: isShowLoading);
178 } 178 }
179 179
180 _getMarketingByUid() async { 180 _getMarketingByUid() async {
@@ -425,7 +425,7 @@ class _StoreCustomerHomeRightPageState @@ -425,7 +425,7 @@ class _StoreCustomerHomeRightPageState
425 // _getSellerCountsList(); 425 // _getSellerCountsList();
426 _getSellerCountsList( 426 _getSellerCountsList(
427 isShowLoading: true, callback: () {}); 427 isShowLoading: true, callback: () {});
428 - _couponNetworkData(); 428 + _couponNetworkData(isShowLoading: false);
429 429
430 // offset = 0; 430 // offset = 0;
431 // 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单 431 // 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单
@@ -185,7 +185,7 @@ import '../pages/my/customer_type/my_customer/my_customer_home_page.dart'; @@ -185,7 +185,7 @@ import '../pages/my/customer_type/my_customer/my_customer_home_page.dart';
185 import '../pages/my/customer_type/store_customer/day_order_page.dart'; 185 import '../pages/my/customer_type/store_customer/day_order_page.dart';
186 import '../pages/my/customer_type/store_customer/month_order_page.dart'; 186 import '../pages/my/customer_type/store_customer/month_order_page.dart';
187 import '../pages/my/customer_type/store_customer/store_customer_home_page.dart'; 187 import '../pages/my/customer_type/store_customer/store_customer_home_page.dart';
188 -import '../pages/my/customer_type/store_customer/store_customer_home_left_page.dart'; 188 +import '../pages/my/customer_type/store_customer/store_customer_home_left_page_n.dart';
189 import '../pages/my/feast_manage/feast_deposit_type_page.dart'; 189 import '../pages/my/feast_manage/feast_deposit_type_page.dart';
190 import '../pages/my/feast_manage/feast_dish_page.dart'; 190 import '../pages/my/feast_manage/feast_dish_page.dart';
191 import '../pages/my/feast_manage/feast_dish_share_page.dart'; 191 import '../pages/my/feast_manage/feast_dish_share_page.dart';