|
@@ -11,6 +11,7 @@ import 'package:one_key/res/colors.dart'; |
|
@@ -11,6 +11,7 @@ import 'package:one_key/res/colors.dart'; |
|
11
|
import 'package:one_key/route/navigator_util.dart';
|
11
|
import 'package:one_key/route/navigator_util.dart';
|
|
12
|
import 'package:one_key/utils/event_bus.dart';
|
12
|
import 'package:one_key/utils/event_bus.dart';
|
|
13
|
import 'package:one_key/utils/utils.dart';
|
13
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
14
|
+import 'package:one_key/widgets/MyDivider.dart';
|
|
14
|
import 'package:one_key/widgets/h_empty_view.dart';
|
15
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
15
|
import 'package:one_key/widgets/page_exception.dart';
|
16
|
import 'package:one_key/widgets/page_exception.dart';
|
|
16
|
import 'package:one_key/widgets/round_button.dart';
|
17
|
import 'package:one_key/widgets/round_button.dart';
|
|
@@ -31,26 +32,29 @@ class _StoreCustomerHomePageState extends State<StoreCustomerHomePage> { |
|
@@ -31,26 +32,29 @@ class _StoreCustomerHomePageState extends State<StoreCustomerHomePage> { |
|
31
|
ScrollController _controller = ScrollController();
|
32
|
ScrollController _controller = ScrollController();
|
|
32
|
CustomerProvider customerProvider;
|
33
|
CustomerProvider customerProvider;
|
|
33
|
bool showWarning = false;
|
34
|
bool showWarning = false;
|
|
34
|
-
|
35
|
+ int year;
|
|
|
|
36
|
+ int month;
|
|
35
|
List<BarData> dataList = [
|
37
|
List<BarData> dataList = [
|
|
36
|
- BarData(MyColours.color_8EBBBE, 188),
|
38
|
+ BarData(MyColours.color_8EBBBE, 200),
|
|
37
|
BarData(MyColours.color_8EBBBE, 8),
|
39
|
BarData(MyColours.color_8EBBBE, 8),
|
|
38
|
BarData(MyColours.color_8EBBBE, 15),
|
40
|
BarData(MyColours.color_8EBBBE, 15),
|
|
39
|
BarData(MyColours.color_8EBBBE, 5),
|
41
|
BarData(MyColours.color_8EBBBE, 5),
|
|
40
|
BarData(MyColours.color_8EBBBE, 2),
|
42
|
BarData(MyColours.color_8EBBBE, 2),
|
|
41
|
BarData(MyColours.color_8EBBBE, 2),
|
43
|
BarData(MyColours.color_8EBBBE, 2),
|
|
42
|
BarData(MyColours.color_8EBBBE, 18),
|
44
|
BarData(MyColours.color_8EBBBE, 18),
|
|
43
|
- BarData(MyColours.color_8EBBBE, 8),
|
45
|
+ BarData(MyColours.color_8EBBBE, 168),
|
|
44
|
BarData(MyColours.color_8EBBBE, 15),
|
46
|
BarData(MyColours.color_8EBBBE, 15),
|
|
45
|
BarData(MyColours.color_8EBBBE, 5),
|
47
|
BarData(MyColours.color_8EBBBE, 5),
|
|
46
|
- BarData(MyColours.color_8EBBBE, 2),
|
|
|
|
47
|
- BarData(MyColours.color_8EBBBE, 2),
|
48
|
+ BarData(MyColours.color_8EBBBE, null ?? 0),
|
|
|
|
49
|
+ BarData(MyColours.color_8EBBBE, 0),
|
|
48
|
];
|
50
|
];
|
|
49
|
|
51
|
|
|
50
|
@override
|
52
|
@override
|
|
51
|
void initState() {
|
53
|
void initState() {
|
|
52
|
super.initState();
|
54
|
super.initState();
|
|
53
|
|
55
|
|
|
|
|
56
|
+ year = DateTime.now().year;
|
|
|
|
57
|
+ month = DateTime.now().month;
|
|
54
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
58
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
55
|
_getSellerGuestManage();
|
59
|
_getSellerGuestManage();
|
|
56
|
_getMarketingBySeller();
|
60
|
_getMarketingBySeller();
|
|
@@ -227,28 +231,382 @@ class _StoreCustomerHomePageState extends State<StoreCustomerHomePage> { |
|
@@ -227,28 +231,382 @@ class _StoreCustomerHomePageState extends State<StoreCustomerHomePage> { |
|
227
|
}
|
231
|
}
|
|
228
|
|
232
|
|
|
229
|
Widget _chart() {
|
233
|
Widget _chart() {
|
|
230
|
- return AspectRatio(
|
|
|
|
231
|
- aspectRatio: 1.4,
|
|
|
|
232
|
- child: Padding(
|
|
|
|
233
|
- padding: EdgeInsets.all(w(20)),
|
|
|
|
234
|
- child: LayoutBuilder(builder: (context, constraints) {
|
|
|
|
235
|
- return BarChartWidget(
|
|
|
|
236
|
- dataList: dataList,
|
|
|
|
237
|
- );
|
|
|
|
238
|
- })));
|
|
|
|
239
|
- // return Container(
|
|
|
|
240
|
- // height: w(143),
|
|
|
|
241
|
- // child: BarChart(
|
|
|
|
242
|
- // BarChartData(
|
|
|
|
243
|
- // barTouchData: barTouchData,
|
|
|
|
244
|
- // titlesData: titlesData,
|
|
|
|
245
|
- // borderData: borderData,
|
|
|
|
246
|
- // barGroups: barGroups,
|
|
|
|
247
|
- // gridData: FlGridData(show: false),
|
|
|
|
248
|
- // alignment: BarChartAlignment.spaceAround,
|
|
|
|
249
|
- // maxY: 20,
|
|
|
|
250
|
- // ),
|
|
|
|
251
|
- // ));
|
234
|
+ return Container(
|
|
|
|
235
|
+ // height: w(216),
|
|
|
|
236
|
+ padding: EdgeInsets.only(top: w(16), left: w(16), right: w(16)),
|
|
|
|
237
|
+ margin: EdgeInsets.all(w(10)),
|
|
|
|
238
|
+ decoration: BoxDecoration(
|
|
|
|
239
|
+ color: MyColours.color_ffffff,
|
|
|
|
240
|
+ borderRadius: BorderRadius.circular(r(8))),
|
|
|
|
241
|
+ child: Column(
|
|
|
|
242
|
+ children: [
|
|
|
|
243
|
+ Row(
|
|
|
|
244
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
245
|
+ children: [
|
|
|
|
246
|
+ InkWell(
|
|
|
|
247
|
+ onTap: () {
|
|
|
|
248
|
+ setState(() {
|
|
|
|
249
|
+ year--;
|
|
|
|
250
|
+ });
|
|
|
|
251
|
+ // _getGuestReserve(showLoading: true);
|
|
|
|
252
|
+ },
|
|
|
|
253
|
+ child: Padding(
|
|
|
|
254
|
+ padding:
|
|
|
|
255
|
+ EdgeInsets.only(right: ScreenUtil().setWidth(20)),
|
|
|
|
256
|
+ child: Image.asset(
|
|
|
|
257
|
+ Utils.getImgPath('c_arrow_left'),
|
|
|
|
258
|
+ width: ScreenUtil().setWidth(24),
|
|
|
|
259
|
+ ))),
|
|
|
|
260
|
+ Text(
|
|
|
|
261
|
+ '${year}年',
|
|
|
|
262
|
+ style: TextStyle(
|
|
|
|
263
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
264
|
+ color: MyColours.color_000000),
|
|
|
|
265
|
+ ),
|
|
|
|
266
|
+ InkWell(
|
|
|
|
267
|
+ onTap: () {
|
|
|
|
268
|
+ if (year >= DateTime.now().year) {
|
|
|
|
269
|
+ return;
|
|
|
|
270
|
+ }
|
|
|
|
271
|
+ setState(() {
|
|
|
|
272
|
+ year++;
|
|
|
|
273
|
+ });
|
|
|
|
274
|
+ // _getGuestReserve(showLoading: true);
|
|
|
|
275
|
+ },
|
|
|
|
276
|
+ child: Padding(
|
|
|
|
277
|
+ padding: EdgeInsets.only(
|
|
|
|
278
|
+ left: ScreenUtil().setWidth(20),
|
|
|
|
279
|
+ ),
|
|
|
|
280
|
+ child: Image.asset(
|
|
|
|
281
|
+ Utils.getImgPath(year != DateTime.now().year
|
|
|
|
282
|
+ ? 'c_arrow_right'
|
|
|
|
283
|
+ : 'c_arrow_right_gray'),
|
|
|
|
284
|
+ width: ScreenUtil().setWidth(24),
|
|
|
|
285
|
+ )))
|
|
|
|
286
|
+ ],
|
|
|
|
287
|
+ ),
|
|
|
|
288
|
+ VEmptyView(80),
|
|
|
|
289
|
+ Container(
|
|
|
|
290
|
+ width: double.infinity,
|
|
|
|
291
|
+ height: w(177),
|
|
|
|
292
|
+ child: LayoutBuilder(builder: (context, constraints) {
|
|
|
|
293
|
+ return BarChartWidget(
|
|
|
|
294
|
+ dataList: dataList,
|
|
|
|
295
|
+ );
|
|
|
|
296
|
+ }))
|
|
|
|
297
|
+ ],
|
|
|
|
298
|
+ ),
|
|
|
|
299
|
+ );
|
|
|
|
300
|
+ }
|
|
|
|
301
|
+
|
|
|
|
302
|
+ Widget _monthWidget() {
|
|
|
|
303
|
+ return Container(
|
|
|
|
304
|
+ margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
305
|
+ padding: EdgeInsets.symmetric(horizontal: w(15), vertical: w(10)),
|
|
|
|
306
|
+ decoration: BoxDecoration(color: MyColours.color_ffffff),
|
|
|
|
307
|
+ child: Column(
|
|
|
|
308
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
309
|
+ children: [
|
|
|
|
310
|
+ Row(
|
|
|
|
311
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
312
|
+ children: [
|
|
|
|
313
|
+ InkWell(
|
|
|
|
314
|
+ onTap: () {
|
|
|
|
315
|
+ if (month == 1) {
|
|
|
|
316
|
+ month = 12;
|
|
|
|
317
|
+ setState(() {});
|
|
|
|
318
|
+ } else {
|
|
|
|
319
|
+ setState(() {
|
|
|
|
320
|
+ month--;
|
|
|
|
321
|
+ });
|
|
|
|
322
|
+ }
|
|
|
|
323
|
+
|
|
|
|
324
|
+ // _getGuestReserve(showLoading: true);
|
|
|
|
325
|
+ },
|
|
|
|
326
|
+ child: Padding(
|
|
|
|
327
|
+ padding:
|
|
|
|
328
|
+ EdgeInsets.only(right: ScreenUtil().setWidth(20)),
|
|
|
|
329
|
+ child: Image.asset(
|
|
|
|
330
|
+ Utils.getImgPath('c_arrow_left'),
|
|
|
|
331
|
+ width: ScreenUtil().setWidth(24),
|
|
|
|
332
|
+ ))),
|
|
|
|
333
|
+ Text(
|
|
|
|
334
|
+ '${month}月',
|
|
|
|
335
|
+ style: TextStyle(
|
|
|
|
336
|
+ fontSize: ScreenUtil().setSp(40),
|
|
|
|
337
|
+ color: MyColours.color_515151),
|
|
|
|
338
|
+ ),
|
|
|
|
339
|
+ InkWell(
|
|
|
|
340
|
+ onTap: () {
|
|
|
|
341
|
+ if (month == 12) {
|
|
|
|
342
|
+ month = 1;
|
|
|
|
343
|
+ setState(() {});
|
|
|
|
344
|
+ } else {
|
|
|
|
345
|
+ setState(() {
|
|
|
|
346
|
+ month++;
|
|
|
|
347
|
+ });
|
|
|
|
348
|
+ }
|
|
|
|
349
|
+
|
|
|
|
350
|
+ // _getGuestReserve(showLoading: true);
|
|
|
|
351
|
+ },
|
|
|
|
352
|
+ child: Padding(
|
|
|
|
353
|
+ padding: EdgeInsets.only(
|
|
|
|
354
|
+ left: ScreenUtil().setWidth(20),
|
|
|
|
355
|
+ ),
|
|
|
|
356
|
+ child: Image.asset(
|
|
|
|
357
|
+ Utils.getImgPath('c_arrow_right'),
|
|
|
|
358
|
+ width: ScreenUtil().setWidth(24),
|
|
|
|
359
|
+ )))
|
|
|
|
360
|
+ ],
|
|
|
|
361
|
+ ),
|
|
|
|
362
|
+ VEmptyView(20),
|
|
|
|
363
|
+ Row(
|
|
|
|
364
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
365
|
+ children: [
|
|
|
|
366
|
+ Text(
|
|
|
|
367
|
+ '预订',
|
|
|
|
368
|
+ style: TextStyle(
|
|
|
|
369
|
+ fontWeight: FontWeight.bold,
|
|
|
|
370
|
+ color: MyColours.color_515151,
|
|
|
|
371
|
+ fontSize: font(
|
|
|
|
372
|
+ (18),
|
|
|
|
373
|
+ )),
|
|
|
|
374
|
+ ),
|
|
|
|
375
|
+ HEmptyView(10),
|
|
|
|
376
|
+ Text(
|
|
|
|
377
|
+ '1089单',
|
|
|
|
378
|
+ style: TextStyle(
|
|
|
|
379
|
+ color: MyColours.color_515151,
|
|
|
|
380
|
+ fontSize: font(
|
|
|
|
381
|
+ (14),
|
|
|
|
382
|
+ )),
|
|
|
|
383
|
+ ),
|
|
|
|
384
|
+ HEmptyView(10),
|
|
|
|
385
|
+ MyDivider(
|
|
|
|
386
|
+ w(1),
|
|
|
|
387
|
+ w(15),
|
|
|
|
388
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
389
|
+ ),
|
|
|
|
390
|
+ HEmptyView(10),
|
|
|
|
391
|
+ Text(
|
|
|
|
392
|
+ '1190桌',
|
|
|
|
393
|
+ style: TextStyle(
|
|
|
|
394
|
+ color: MyColours.color_515151,
|
|
|
|
395
|
+ fontSize: font(
|
|
|
|
396
|
+ (14),
|
|
|
|
397
|
+ )),
|
|
|
|
398
|
+ ),
|
|
|
|
399
|
+ ],
|
|
|
|
400
|
+ ),
|
|
|
|
401
|
+ VEmptyView(15),
|
|
|
|
402
|
+ Wrap(
|
|
|
|
403
|
+ // crossAxisAlignment: WrapCrossAlignment.center,
|
|
|
|
404
|
+ // runAlignment: WrapAlignment.center,
|
|
|
|
405
|
+ // alignment: WrapAlignment.center,
|
|
|
|
406
|
+ children: [
|
|
|
|
407
|
+ Text(
|
|
|
|
408
|
+ '到店',
|
|
|
|
409
|
+ style: TextStyle(
|
|
|
|
410
|
+ fontWeight: FontWeight.bold,
|
|
|
|
411
|
+ color: MyColours.color_515151,
|
|
|
|
412
|
+ fontSize: font(
|
|
|
|
413
|
+ (18),
|
|
|
|
414
|
+ )),
|
|
|
|
415
|
+ ),
|
|
|
|
416
|
+ HEmptyView(10),
|
|
|
|
417
|
+ Text(
|
|
|
|
418
|
+ '1089单',
|
|
|
|
419
|
+ style: TextStyle(
|
|
|
|
420
|
+ color: MyColours.color_515151,
|
|
|
|
421
|
+ fontSize: font(
|
|
|
|
422
|
+ (14),
|
|
|
|
423
|
+ )),
|
|
|
|
424
|
+ ),
|
|
|
|
425
|
+ HEmptyView(10),
|
|
|
|
426
|
+ MyDivider(
|
|
|
|
427
|
+ w(1),
|
|
|
|
428
|
+ w(15),
|
|
|
|
429
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
430
|
+ ),
|
|
|
|
431
|
+ HEmptyView(10),
|
|
|
|
432
|
+ Text(
|
|
|
|
433
|
+ '1190桌',
|
|
|
|
434
|
+ style: TextStyle(
|
|
|
|
435
|
+ color: MyColours.color_515151,
|
|
|
|
436
|
+ fontSize: font(
|
|
|
|
437
|
+ (14),
|
|
|
|
438
|
+ )),
|
|
|
|
439
|
+ ),
|
|
|
|
440
|
+ HEmptyView(10),
|
|
|
|
441
|
+ MyDivider(
|
|
|
|
442
|
+ w(1),
|
|
|
|
443
|
+ w(15),
|
|
|
|
444
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
445
|
+ ),
|
|
|
|
446
|
+ HEmptyView(10),
|
|
|
|
447
|
+ Text(
|
|
|
|
448
|
+ '1190人',
|
|
|
|
449
|
+ style: TextStyle(
|
|
|
|
450
|
+ color: MyColours.color_515151,
|
|
|
|
451
|
+ fontSize: font(
|
|
|
|
452
|
+ (14),
|
|
|
|
453
|
+ )),
|
|
|
|
454
|
+ ),
|
|
|
|
455
|
+ HEmptyView(10),
|
|
|
|
456
|
+ MyDivider(
|
|
|
|
457
|
+ w(1),
|
|
|
|
458
|
+ w(15),
|
|
|
|
459
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
460
|
+ ),
|
|
|
|
461
|
+ HEmptyView(10),
|
|
|
|
462
|
+ Text(
|
|
|
|
463
|
+ '1190取消',
|
|
|
|
464
|
+ style: TextStyle(
|
|
|
|
465
|
+ color: MyColours.color_515151,
|
|
|
|
466
|
+ fontSize: font(
|
|
|
|
467
|
+ (14),
|
|
|
|
468
|
+ )),
|
|
|
|
469
|
+ ),
|
|
|
|
470
|
+ HEmptyView(10),
|
|
|
|
471
|
+ MyDivider(
|
|
|
|
472
|
+ w(1),
|
|
|
|
473
|
+ w(15),
|
|
|
|
474
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
475
|
+ ),
|
|
|
|
476
|
+ HEmptyView(10),
|
|
|
|
477
|
+ Text(
|
|
|
|
478
|
+ '到客97.2%',
|
|
|
|
479
|
+ style: TextStyle(
|
|
|
|
480
|
+ color: MyColours.color_515151,
|
|
|
|
481
|
+ fontSize: font(
|
|
|
|
482
|
+ (14),
|
|
|
|
483
|
+ )),
|
|
|
|
484
|
+ ),
|
|
|
|
485
|
+ ],
|
|
|
|
486
|
+ ),
|
|
|
|
487
|
+ VEmptyView(15),
|
|
|
|
488
|
+ MyDivider(
|
|
|
|
489
|
+ double.infinity,
|
|
|
|
490
|
+ w(1),
|
|
|
|
491
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
492
|
+ ),
|
|
|
|
493
|
+ VEmptyView(15),
|
|
|
|
494
|
+ Wrap(
|
|
|
|
495
|
+ // crossAxisAlignment: WrapCrossAlignment.start,
|
|
|
|
496
|
+ // runAlignment: WrapAlignment.center,
|
|
|
|
497
|
+ // alignment: WrapAlignment.center,
|
|
|
|
498
|
+ runSpacing: w(5),
|
|
|
|
499
|
+ children: [
|
|
|
|
500
|
+ Text(
|
|
|
|
501
|
+ '有金额订单 6000',
|
|
|
|
502
|
+ style: TextStyle(
|
|
|
|
503
|
+ color: MyColours.color_999999,
|
|
|
|
504
|
+ decoration: TextDecoration.underline,
|
|
|
|
505
|
+ fontSize: font(
|
|
|
|
506
|
+ (10),
|
|
|
|
507
|
+ )),
|
|
|
|
508
|
+ ),
|
|
|
|
509
|
+ HEmptyView(10),
|
|
|
|
510
|
+ MyDivider(
|
|
|
|
511
|
+ w(1),
|
|
|
|
512
|
+ w(12),
|
|
|
|
513
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
514
|
+ ),
|
|
|
|
515
|
+ HEmptyView(10),
|
|
|
|
516
|
+ Text(
|
|
|
|
517
|
+ '消费 9585800.00元',
|
|
|
|
518
|
+ style: TextStyle(
|
|
|
|
519
|
+ color: MyColours.color_999999,
|
|
|
|
520
|
+ decoration: TextDecoration.underline,
|
|
|
|
521
|
+ fontSize: font(
|
|
|
|
522
|
+ (10),
|
|
|
|
523
|
+ )),
|
|
|
|
524
|
+ ),
|
|
|
|
525
|
+ HEmptyView(10),
|
|
|
|
526
|
+ MyDivider(
|
|
|
|
527
|
+ w(1),
|
|
|
|
528
|
+ w(12),
|
|
|
|
529
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
530
|
+ ),
|
|
|
|
531
|
+ HEmptyView(10),
|
|
|
|
532
|
+ Text(
|
|
|
|
533
|
+ '人均 8885.58元',
|
|
|
|
534
|
+ style: TextStyle(
|
|
|
|
535
|
+ color: MyColours.color_999999,
|
|
|
|
536
|
+ decoration: TextDecoration.underline,
|
|
|
|
537
|
+ fontSize: font(
|
|
|
|
538
|
+ (10),
|
|
|
|
539
|
+ )),
|
|
|
|
540
|
+ ),
|
|
|
|
541
|
+ HEmptyView(10),
|
|
|
|
542
|
+ MyDivider(
|
|
|
|
543
|
+ w(1),
|
|
|
|
544
|
+ w(12),
|
|
|
|
545
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
546
|
+ ),
|
|
|
|
547
|
+ HEmptyView(10),
|
|
|
|
548
|
+ Text(
|
|
|
|
549
|
+ '桌均 95888.58元',
|
|
|
|
550
|
+ style: TextStyle(
|
|
|
|
551
|
+ color: MyColours.color_999999,
|
|
|
|
552
|
+ decoration: TextDecoration.underline,
|
|
|
|
553
|
+ fontSize: font(
|
|
|
|
554
|
+ (10),
|
|
|
|
555
|
+ )),
|
|
|
|
556
|
+ ),
|
|
|
|
557
|
+ HEmptyView(10),
|
|
|
|
558
|
+ MyDivider(
|
|
|
|
559
|
+ w(1),
|
|
|
|
560
|
+ w(12),
|
|
|
|
561
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
562
|
+ ),
|
|
|
|
563
|
+ HEmptyView(10),
|
|
|
|
564
|
+ Text(
|
|
|
|
565
|
+ '存酒 8位',
|
|
|
|
566
|
+ style: TextStyle(
|
|
|
|
567
|
+ color: MyColours.color_999999,
|
|
|
|
568
|
+ decoration: TextDecoration.underline,
|
|
|
|
569
|
+ fontSize: font(
|
|
|
|
570
|
+ (10),
|
|
|
|
571
|
+ )),
|
|
|
|
572
|
+ ),
|
|
|
|
573
|
+ HEmptyView(10),
|
|
|
|
574
|
+ MyDivider(
|
|
|
|
575
|
+ w(1),
|
|
|
|
576
|
+ w(12),
|
|
|
|
577
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
578
|
+ ),
|
|
|
|
579
|
+ HEmptyView(10),
|
|
|
|
580
|
+ Text(
|
|
|
|
581
|
+ '提前点餐 9位',
|
|
|
|
582
|
+ style: TextStyle(
|
|
|
|
583
|
+ color: MyColours.color_999999,
|
|
|
|
584
|
+ decoration: TextDecoration.underline,
|
|
|
|
585
|
+ fontSize: font(
|
|
|
|
586
|
+ (10),
|
|
|
|
587
|
+ )),
|
|
|
|
588
|
+ ),
|
|
|
|
589
|
+ HEmptyView(10),
|
|
|
|
590
|
+ MyDivider(
|
|
|
|
591
|
+ w(1),
|
|
|
|
592
|
+ w(12),
|
|
|
|
593
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
594
|
+ ),
|
|
|
|
595
|
+ HEmptyView(10),
|
|
|
|
596
|
+ Text(
|
|
|
|
597
|
+ '安排菜 9位',
|
|
|
|
598
|
+ style: TextStyle(
|
|
|
|
599
|
+ color: MyColours.color_999999,
|
|
|
|
600
|
+ decoration: TextDecoration.underline,
|
|
|
|
601
|
+ fontSize: font(
|
|
|
|
602
|
+ (10),
|
|
|
|
603
|
+ )),
|
|
|
|
604
|
+ ),
|
|
|
|
605
|
+ ],
|
|
|
|
606
|
+ ),
|
|
|
|
607
|
+ ],
|
|
|
|
608
|
+ ),
|
|
|
|
609
|
+ );
|
|
252
|
}
|
610
|
}
|
|
253
|
|
611
|
|
|
254
|
@override
|
612
|
@override
|
|
@@ -424,8 +782,377 @@ class _StoreCustomerHomePageState extends State<StoreCustomerHomePage> { |
|
@@ -424,8 +782,377 @@ class _StoreCustomerHomePageState extends State<StoreCustomerHomePage> { |
|
424
|
uid: customerProvider
|
782
|
uid: customerProvider
|
|
425
|
.storeSunmodel.sellerUser[index - 1].uid);
|
783
|
.storeSunmodel.sellerUser[index - 1].uid);
|
|
426
|
}),
|
784
|
}),
|
|
427
|
- VEmptyView(100),
|
|
|
|
428
|
- _chart()
|
785
|
+ _chart(),
|
|
|
|
786
|
+ _monthWidget(),
|
|
|
|
787
|
+ VEmptyView(24),
|
|
|
|
788
|
+
|
|
|
|
789
|
+ ListView.builder(
|
|
|
|
790
|
+ itemCount: 10,
|
|
|
|
791
|
+ controller: _controller,
|
|
|
|
792
|
+ shrinkWrap: true,
|
|
|
|
793
|
+ padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
794
|
+ itemBuilder: (context, index) {
|
|
|
|
795
|
+ return Container(
|
|
|
|
796
|
+ margin: EdgeInsets.only(bottom: w(10)),
|
|
|
|
797
|
+ padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
798
|
+ decoration: BoxDecoration(
|
|
|
|
799
|
+ color: MyColours.color_ffffff,
|
|
|
|
800
|
+ borderRadius: BorderRadius.only(
|
|
|
|
801
|
+ topRight: Radius.circular(r(8)),
|
|
|
|
802
|
+ bottomRight: Radius.circular(r(8))),
|
|
|
|
803
|
+ ),
|
|
|
|
804
|
+ child: Row(
|
|
|
|
805
|
+ children: [
|
|
|
|
806
|
+ Container(
|
|
|
|
807
|
+ width: w(122),
|
|
|
|
808
|
+ padding: EdgeInsets.symmetric(vertical: w(5)),
|
|
|
|
809
|
+ decoration: BoxDecoration(
|
|
|
|
810
|
+ border: Border(
|
|
|
|
811
|
+ right: BorderSide(
|
|
|
|
812
|
+ color: MyColours.color_f3f3f3,
|
|
|
|
813
|
+ width: w(1)))),
|
|
|
|
814
|
+ child: Column(
|
|
|
|
815
|
+ children: [
|
|
|
|
816
|
+ VEmptyView(24),
|
|
|
|
817
|
+ Align(
|
|
|
|
818
|
+ alignment: Alignment.centerLeft,
|
|
|
|
819
|
+ child: Container(
|
|
|
|
820
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
821
|
+ vertical: w(4), horizontal: w(5)),
|
|
|
|
822
|
+ decoration: BoxDecoration(
|
|
|
|
823
|
+ borderRadius:
|
|
|
|
824
|
+ BorderRadius.circular(r(3)),
|
|
|
|
825
|
+ border: Border.all(
|
|
|
|
826
|
+ color: MyColours.color_999999,
|
|
|
|
827
|
+ width: w(1))),
|
|
|
|
828
|
+ child: Text(
|
|
|
|
829
|
+ '张珊珊',
|
|
|
|
830
|
+ style: TextStyle(
|
|
|
|
831
|
+ fontSize: font(12),
|
|
|
|
832
|
+ fontWeight: FontWeight.bold,
|
|
|
|
833
|
+ color: MyColours.color_999999),
|
|
|
|
834
|
+ ),
|
|
|
|
835
|
+ ),
|
|
|
|
836
|
+ ),
|
|
|
|
837
|
+ VEmptyView(10),
|
|
|
|
838
|
+ Row(
|
|
|
|
839
|
+ mainAxisAlignment:
|
|
|
|
840
|
+ MainAxisAlignment.center,
|
|
|
|
841
|
+ children: [
|
|
|
|
842
|
+ Text(
|
|
|
|
843
|
+ '34',
|
|
|
|
844
|
+ style: TextStyle(
|
|
|
|
845
|
+ fontSize: font(24),
|
|
|
|
846
|
+ fontWeight: FontWeight.bold,
|
|
|
|
847
|
+ color: MyColours.color_438E93),
|
|
|
|
848
|
+ ),
|
|
|
|
849
|
+ Text(
|
|
|
|
850
|
+ '位',
|
|
|
|
851
|
+ style: TextStyle(
|
|
|
|
852
|
+ fontSize: font(14),
|
|
|
|
853
|
+ color: MyColours.color_000000),
|
|
|
|
854
|
+ ),
|
|
|
|
855
|
+ ],
|
|
|
|
856
|
+ ),
|
|
|
|
857
|
+ VEmptyView(10),
|
|
|
|
858
|
+ Row(
|
|
|
|
859
|
+ mainAxisAlignment:
|
|
|
|
860
|
+ MainAxisAlignment.center,
|
|
|
|
861
|
+ children: [
|
|
|
|
862
|
+ Text(
|
|
|
|
863
|
+ '23',
|
|
|
|
864
|
+ style: TextStyle(
|
|
|
|
865
|
+ fontSize: font(14),
|
|
|
|
866
|
+ fontWeight: FontWeight.bold,
|
|
|
|
867
|
+ color: MyColours.color_438E93),
|
|
|
|
868
|
+ ),
|
|
|
|
869
|
+ MyDivider(
|
|
|
|
870
|
+ w(4),
|
|
|
|
871
|
+ w(1),
|
|
|
|
872
|
+ color: MyColours.color_999999,
|
|
|
|
873
|
+ ),
|
|
|
|
874
|
+ Text(
|
|
|
|
875
|
+ '9',
|
|
|
|
876
|
+ style: TextStyle(
|
|
|
|
877
|
+ fontSize: font(14),
|
|
|
|
878
|
+ fontWeight: FontWeight.bold,
|
|
|
|
879
|
+ color: MyColours.color_E89243),
|
|
|
|
880
|
+ ),
|
|
|
|
881
|
+ MyDivider(
|
|
|
|
882
|
+ w(4),
|
|
|
|
883
|
+ w(1),
|
|
|
|
884
|
+ color: MyColours.color_999999,
|
|
|
|
885
|
+ ),
|
|
|
|
886
|
+ Text(
|
|
|
|
887
|
+ '2',
|
|
|
|
888
|
+ style: TextStyle(
|
|
|
|
889
|
+ fontSize: font(14),
|
|
|
|
890
|
+ fontWeight: FontWeight.bold,
|
|
|
|
891
|
+ color: MyColours.color_E34D59),
|
|
|
|
892
|
+ ),
|
|
|
|
893
|
+ ],
|
|
|
|
894
|
+ ),
|
|
|
|
895
|
+ VEmptyView(24),
|
|
|
|
896
|
+ ],
|
|
|
|
897
|
+ ),
|
|
|
|
898
|
+ ),
|
|
|
|
899
|
+ Expanded(
|
|
|
|
900
|
+ child: Container(
|
|
|
|
901
|
+ padding: EdgeInsets.only(
|
|
|
|
902
|
+ top: w(5), bottom: w(5), left: w(10)),
|
|
|
|
903
|
+ child: Row(
|
|
|
|
904
|
+ mainAxisAlignment:
|
|
|
|
905
|
+ MainAxisAlignment.spaceBetween,
|
|
|
|
906
|
+ // crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
907
|
+ children: [
|
|
|
|
908
|
+ Column(
|
|
|
|
909
|
+ mainAxisAlignment:
|
|
|
|
910
|
+ MainAxisAlignment.start,
|
|
|
|
911
|
+ crossAxisAlignment:
|
|
|
|
912
|
+ CrossAxisAlignment.start,
|
|
|
|
913
|
+ children: [
|
|
|
|
914
|
+ Row(
|
|
|
|
915
|
+ crossAxisAlignment:
|
|
|
|
916
|
+ CrossAxisAlignment.start,
|
|
|
|
917
|
+ children: [
|
|
|
|
918
|
+ Text(
|
|
|
|
919
|
+ '预订',
|
|
|
|
920
|
+ style: TextStyle(
|
|
|
|
921
|
+ fontWeight: FontWeight.bold,
|
|
|
|
922
|
+ color: MyColours.color_515151,
|
|
|
|
923
|
+ fontSize: font(
|
|
|
|
924
|
+ (12),
|
|
|
|
925
|
+ )),
|
|
|
|
926
|
+ ),
|
|
|
|
927
|
+ HEmptyView(10),
|
|
|
|
928
|
+ Text(
|
|
|
|
929
|
+ '1089单',
|
|
|
|
930
|
+ style: TextStyle(
|
|
|
|
931
|
+ color: MyColours.color_515151,
|
|
|
|
932
|
+ fontSize: font(
|
|
|
|
933
|
+ (10),
|
|
|
|
934
|
+ )),
|
|
|
|
935
|
+ ),
|
|
|
|
936
|
+ HEmptyView(10),
|
|
|
|
937
|
+ MyDivider(
|
|
|
|
938
|
+ w(1),
|
|
|
|
939
|
+ w(15),
|
|
|
|
940
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
941
|
+ ),
|
|
|
|
942
|
+ HEmptyView(10),
|
|
|
|
943
|
+ Text(
|
|
|
|
944
|
+ '1190桌',
|
|
|
|
945
|
+ style: TextStyle(
|
|
|
|
946
|
+ color: MyColours.color_515151,
|
|
|
|
947
|
+ fontSize: font(
|
|
|
|
948
|
+ (10),
|
|
|
|
949
|
+ )),
|
|
|
|
950
|
+ ),
|
|
|
|
951
|
+ ],
|
|
|
|
952
|
+ ),
|
|
|
|
953
|
+ VEmptyView(10),
|
|
|
|
954
|
+ Row(
|
|
|
|
955
|
+ crossAxisAlignment:
|
|
|
|
956
|
+ CrossAxisAlignment.start,
|
|
|
|
957
|
+ children: [
|
|
|
|
958
|
+ Text(
|
|
|
|
959
|
+ '到店',
|
|
|
|
960
|
+ style: TextStyle(
|
|
|
|
961
|
+ fontWeight: FontWeight.bold,
|
|
|
|
962
|
+ color: MyColours.color_515151,
|
|
|
|
963
|
+ fontSize: font(
|
|
|
|
964
|
+ (12),
|
|
|
|
965
|
+ )),
|
|
|
|
966
|
+ ),
|
|
|
|
967
|
+ HEmptyView(10),
|
|
|
|
968
|
+ Text(
|
|
|
|
969
|
+ '1089单',
|
|
|
|
970
|
+ style: TextStyle(
|
|
|
|
971
|
+ color: MyColours.color_515151,
|
|
|
|
972
|
+ fontSize: font(
|
|
|
|
973
|
+ (10),
|
|
|
|
974
|
+ )),
|
|
|
|
975
|
+ ),
|
|
|
|
976
|
+ HEmptyView(10),
|
|
|
|
977
|
+ MyDivider(
|
|
|
|
978
|
+ w(1),
|
|
|
|
979
|
+ w(15),
|
|
|
|
980
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
981
|
+ ),
|
|
|
|
982
|
+ HEmptyView(10),
|
|
|
|
983
|
+ Text(
|
|
|
|
984
|
+ '1190桌',
|
|
|
|
985
|
+ style: TextStyle(
|
|
|
|
986
|
+ color: MyColours.color_515151,
|
|
|
|
987
|
+ fontSize: font(
|
|
|
|
988
|
+ (10),
|
|
|
|
989
|
+ )),
|
|
|
|
990
|
+ ),
|
|
|
|
991
|
+ ],
|
|
|
|
992
|
+ ),
|
|
|
|
993
|
+ VEmptyView(10),
|
|
|
|
994
|
+ Row(
|
|
|
|
995
|
+ crossAxisAlignment:
|
|
|
|
996
|
+ CrossAxisAlignment.start,
|
|
|
|
997
|
+ children: [
|
|
|
|
998
|
+ Text(
|
|
|
|
999
|
+ '1089人',
|
|
|
|
1000
|
+ style: TextStyle(
|
|
|
|
1001
|
+ color: MyColours.color_515151,
|
|
|
|
1002
|
+ fontSize: font(
|
|
|
|
1003
|
+ (10),
|
|
|
|
1004
|
+ )),
|
|
|
|
1005
|
+ ),
|
|
|
|
1006
|
+ HEmptyView(10),
|
|
|
|
1007
|
+ MyDivider(
|
|
|
|
1008
|
+ w(1),
|
|
|
|
1009
|
+ w(15),
|
|
|
|
1010
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
1011
|
+ ),
|
|
|
|
1012
|
+ HEmptyView(10),
|
|
|
|
1013
|
+ Text(
|
|
|
|
1014
|
+ '1190取消',
|
|
|
|
1015
|
+ style: TextStyle(
|
|
|
|
1016
|
+ color: MyColours.color_515151,
|
|
|
|
1017
|
+ fontSize: font(
|
|
|
|
1018
|
+ (10),
|
|
|
|
1019
|
+ )),
|
|
|
|
1020
|
+ ),
|
|
|
|
1021
|
+ HEmptyView(10),
|
|
|
|
1022
|
+ MyDivider(
|
|
|
|
1023
|
+ w(1),
|
|
|
|
1024
|
+ w(15),
|
|
|
|
1025
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
1026
|
+ ),
|
|
|
|
1027
|
+ HEmptyView(10),
|
|
|
|
1028
|
+ Text(
|
|
|
|
1029
|
+ '到客90.1%',
|
|
|
|
1030
|
+ style: TextStyle(
|
|
|
|
1031
|
+ color: MyColours.color_515151,
|
|
|
|
1032
|
+ fontSize: font(
|
|
|
|
1033
|
+ (10),
|
|
|
|
1034
|
+ )),
|
|
|
|
1035
|
+ ),
|
|
|
|
1036
|
+ ],
|
|
|
|
1037
|
+ ),
|
|
|
|
1038
|
+ VEmptyView(10),
|
|
|
|
1039
|
+ Row(
|
|
|
|
1040
|
+ crossAxisAlignment:
|
|
|
|
1041
|
+ CrossAxisAlignment.start,
|
|
|
|
1042
|
+ children: [
|
|
|
|
1043
|
+ Text(
|
|
|
|
1044
|
+ '有金额订单数 25',
|
|
|
|
1045
|
+ style: TextStyle(
|
|
|
|
1046
|
+ color: MyColours.color_999999,
|
|
|
|
1047
|
+ fontSize: font(
|
|
|
|
1048
|
+ (10),
|
|
|
|
1049
|
+ )),
|
|
|
|
1050
|
+ ),
|
|
|
|
1051
|
+ HEmptyView(10),
|
|
|
|
1052
|
+ MyDivider(
|
|
|
|
1053
|
+ w(1),
|
|
|
|
1054
|
+ w(15),
|
|
|
|
1055
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
1056
|
+ ),
|
|
|
|
1057
|
+ HEmptyView(10),
|
|
|
|
1058
|
+ Text(
|
|
|
|
1059
|
+ '总消费 25800元',
|
|
|
|
1060
|
+ style: TextStyle(
|
|
|
|
1061
|
+ color: MyColours.color_999999,
|
|
|
|
1062
|
+ fontSize: font(
|
|
|
|
1063
|
+ (10),
|
|
|
|
1064
|
+ )),
|
|
|
|
1065
|
+ ),
|
|
|
|
1066
|
+ ],
|
|
|
|
1067
|
+ ),
|
|
|
|
1068
|
+ VEmptyView(10),
|
|
|
|
1069
|
+ Row(
|
|
|
|
1070
|
+ crossAxisAlignment:
|
|
|
|
1071
|
+ CrossAxisAlignment.start,
|
|
|
|
1072
|
+ children: [
|
|
|
|
1073
|
+ Text(
|
|
|
|
1074
|
+ '人均 103.2元',
|
|
|
|
1075
|
+ style: TextStyle(
|
|
|
|
1076
|
+ color: MyColours.color_999999,
|
|
|
|
1077
|
+ fontSize: font(
|
|
|
|
1078
|
+ (10),
|
|
|
|
1079
|
+ )),
|
|
|
|
1080
|
+ ),
|
|
|
|
1081
|
+ HEmptyView(10),
|
|
|
|
1082
|
+ MyDivider(
|
|
|
|
1083
|
+ w(1),
|
|
|
|
1084
|
+ w(15),
|
|
|
|
1085
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
1086
|
+ ),
|
|
|
|
1087
|
+ HEmptyView(10),
|
|
|
|
1088
|
+ Text(
|
|
|
|
1089
|
+ '桌均 860元',
|
|
|
|
1090
|
+ style: TextStyle(
|
|
|
|
1091
|
+ color: MyColours.color_999999,
|
|
|
|
1092
|
+ fontSize: font(
|
|
|
|
1093
|
+ (10),
|
|
|
|
1094
|
+ )),
|
|
|
|
1095
|
+ ),
|
|
|
|
1096
|
+ ],
|
|
|
|
1097
|
+ ),
|
|
|
|
1098
|
+ VEmptyView(10),
|
|
|
|
1099
|
+ Row(
|
|
|
|
1100
|
+ crossAxisAlignment:
|
|
|
|
1101
|
+ CrossAxisAlignment.start,
|
|
|
|
1102
|
+ children: [
|
|
|
|
1103
|
+ Text(
|
|
|
|
1104
|
+ '存酒 1位',
|
|
|
|
1105
|
+ style: TextStyle(
|
|
|
|
1106
|
+ color: MyColours.color_999999,
|
|
|
|
1107
|
+ fontSize: font(
|
|
|
|
1108
|
+ (10),
|
|
|
|
1109
|
+ )),
|
|
|
|
1110
|
+ ),
|
|
|
|
1111
|
+ HEmptyView(10),
|
|
|
|
1112
|
+ MyDivider(
|
|
|
|
1113
|
+ w(1),
|
|
|
|
1114
|
+ w(15),
|
|
|
|
1115
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
1116
|
+ ),
|
|
|
|
1117
|
+ HEmptyView(10),
|
|
|
|
1118
|
+ Text(
|
|
|
|
1119
|
+ '提前点餐 9位',
|
|
|
|
1120
|
+ style: TextStyle(
|
|
|
|
1121
|
+ color: MyColours.color_999999,
|
|
|
|
1122
|
+ fontSize: font(
|
|
|
|
1123
|
+ (10),
|
|
|
|
1124
|
+ )),
|
|
|
|
1125
|
+ ),
|
|
|
|
1126
|
+ HEmptyView(10),
|
|
|
|
1127
|
+ MyDivider(
|
|
|
|
1128
|
+ w(1),
|
|
|
|
1129
|
+ w(15),
|
|
|
|
1130
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
1131
|
+ ),
|
|
|
|
1132
|
+ HEmptyView(10),
|
|
|
|
1133
|
+ Text(
|
|
|
|
1134
|
+ '安排菜 9位',
|
|
|
|
1135
|
+ style: TextStyle(
|
|
|
|
1136
|
+ color: MyColours.color_999999,
|
|
|
|
1137
|
+ fontSize: font(
|
|
|
|
1138
|
+ (10),
|
|
|
|
1139
|
+ )),
|
|
|
|
1140
|
+ ),
|
|
|
|
1141
|
+ ],
|
|
|
|
1142
|
+ ),
|
|
|
|
1143
|
+ ],
|
|
|
|
1144
|
+ ),
|
|
|
|
1145
|
+ Image.asset(
|
|
|
|
1146
|
+ Utils.getImgPath('arrow_right_new'),
|
|
|
|
1147
|
+ width: w(12),
|
|
|
|
1148
|
+ )
|
|
|
|
1149
|
+ ],
|
|
|
|
1150
|
+ ),
|
|
|
|
1151
|
+ ))
|
|
|
|
1152
|
+ ],
|
|
|
|
1153
|
+ ),
|
|
|
|
1154
|
+ );
|
|
|
|
1155
|
+ })
|
|
429
|
],
|
1156
|
],
|
|
430
|
),
|
1157
|
),
|
|
431
|
)),
|
1158
|
)),
|