|
@@ -63,6 +63,7 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -63,6 +63,7 @@ class InvicationPageState extends State<InvicationPage> |
|
63
|
User user;
|
63
|
User user;
|
|
64
|
DateTime dateTime;
|
64
|
DateTime dateTime;
|
|
65
|
String dateTimeStr = "";
|
65
|
String dateTimeStr = "";
|
|
|
|
66
|
+ String weekInfoAndLunarCalendar = '';
|
|
66
|
ScrollController controller = ScrollController();
|
67
|
ScrollController controller = ScrollController();
|
|
67
|
double couponHeight = 140.0;
|
68
|
double couponHeight = 140.0;
|
|
68
|
CouponProvider couponProvider;
|
69
|
CouponProvider couponProvider;
|
|
@@ -73,7 +74,6 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -73,7 +74,6 @@ class InvicationPageState extends State<InvicationPage> |
|
73
|
String wechat = '';
|
74
|
String wechat = '';
|
|
74
|
String qiniuUrl = '';
|
75
|
String qiniuUrl = '';
|
|
75
|
List<String> couponsCan = []; //优惠券弹框数据
|
76
|
List<String> couponsCan = []; //优惠券弹框数据
|
|
76
|
-
|
|
|
|
77
|
|
77
|
|
|
78
|
final GlobalKey globalKey = GlobalKey();
|
78
|
final GlobalKey globalKey = GlobalKey();
|
|
79
|
String reserverPhone; //联系人保存成功后的值
|
79
|
String reserverPhone; //联系人保存成功后的值
|
|
@@ -648,7 +648,9 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -648,7 +648,9 @@ class InvicationPageState extends State<InvicationPage> |
|
648
|
}
|
648
|
}
|
|
649
|
dateTime = DateTime.fromMillisecondsSinceEpoch(int.parse(ddate) * 1000);
|
649
|
dateTime = DateTime.fromMillisecondsSinceEpoch(int.parse(ddate) * 1000);
|
|
650
|
dateTimeStr =
|
650
|
dateTimeStr =
|
|
651
|
- "${dateTime.year}年${Utils.addZeroNumber(dateTime.month)}月${Utils.addZeroNumber(dateTime.day)}日 星期${Utils.formatWeekDayNum(dateTime.weekday)} ${ddateStr}";
|
651
|
+ "${dateTime.year}年${Utils.addZeroNumber(dateTime.month)}月${Utils.addZeroNumber(dateTime.day)}日 ${detailEntity.ddateSolt}";
|
|
|
|
652
|
+ // weekInfoAndLunarCalendar = "星期${Utils.formatWeekDayNum(dateTime.weekday)}";
|
|
|
|
653
|
+ weekInfoAndLunarCalendar = returnWeekAndLunarCalendar(dateTime, context);
|
|
652
|
detailModel.selectNum = detailEntity.actual_pum;
|
654
|
detailModel.selectNum = detailEntity.actual_pum;
|
|
653
|
detailModel.selectIndex = detailEntity.actual_pum != null
|
655
|
detailModel.selectIndex = detailEntity.actual_pum != null
|
|
654
|
? personNumList.indexOf(detailEntity.actual_pum)
|
656
|
? personNumList.indexOf(detailEntity.actual_pum)
|
|
@@ -656,6 +658,13 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -656,6 +658,13 @@ class InvicationPageState extends State<InvicationPage> |
|
656
|
setState(() {});
|
658
|
setState(() {});
|
|
657
|
}
|
659
|
}
|
|
658
|
|
660
|
|
|
|
|
661
|
+ String returnWeekAndLunarCalendar(DateTime day, BuildContext context) {
|
|
|
|
662
|
+ String date = "星期${Utils.formatWeekDayNum(day.weekday)} ";
|
|
|
|
663
|
+ date += Utils.lunarCalendarHolidays(day);
|
|
|
|
664
|
+
|
|
|
|
665
|
+ return date;
|
|
|
|
666
|
+ }
|
|
|
|
667
|
+
|
|
659
|
_getTablesPhoto() async {
|
668
|
_getTablesPhoto() async {
|
|
660
|
Map<String, String> params = {
|
669
|
Map<String, String> params = {
|
|
661
|
"sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
670
|
"sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
@@ -952,6 +961,191 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -952,6 +961,191 @@ class InvicationPageState extends State<InvicationPage> |
|
952
|
}
|
961
|
}
|
|
953
|
}
|
962
|
}
|
|
954
|
|
963
|
|
|
|
|
964
|
+ ///录入更多
|
|
|
|
965
|
+ _enterMoreWidget() {
|
|
|
|
966
|
+ return Container();
|
|
|
|
967
|
+ }
|
|
|
|
968
|
+
|
|
|
|
969
|
+ ///桌位信息
|
|
|
|
970
|
+ _tableInfoWidget() {
|
|
|
|
971
|
+ return Column(
|
|
|
|
972
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
973
|
+ children: [
|
|
|
|
974
|
+ Padding(
|
|
|
|
975
|
+ padding: EdgeInsets.only(left: ScreenUtil().setWidth(48)),
|
|
|
|
976
|
+ child: Text(
|
|
|
|
977
|
+ '安排桌位:(共${tableInfo.length}桌)',
|
|
|
|
978
|
+ style: TextStyle(
|
|
|
|
979
|
+ color: MyColours.color_515151,
|
|
|
|
980
|
+ fontSize: ScreenUtil().setSp(24)),
|
|
|
|
981
|
+ )),
|
|
|
|
982
|
+ VEmptyView(34),
|
|
|
|
983
|
+ Container(
|
|
|
|
984
|
+ height: ScreenUtil().setWidth(200 * 2),
|
|
|
|
985
|
+ child: ListView.builder(
|
|
|
|
986
|
+ padding: EdgeInsets.only(left: ScreenUtil().setWidth(48)),
|
|
|
|
987
|
+ itemCount: tableInfo.length,
|
|
|
|
988
|
+ shrinkWrap: true,
|
|
|
|
989
|
+ scrollDirection: Axis.horizontal,
|
|
|
|
990
|
+ itemBuilder: (BuildContext contxt, int index) {
|
|
|
|
991
|
+ List<String> imagesOfTable =
|
|
|
|
992
|
+ _baseIndoProvider.photoList[tableInfo[index]['tid']];
|
|
|
|
993
|
+ return Container(
|
|
|
|
994
|
+ margin: EdgeInsets.only(right: ScreenUtil().setWidth(40)),
|
|
|
|
995
|
+ child: Column(
|
|
|
|
996
|
+ children: [
|
|
|
|
997
|
+ imagesOfTable != null && imagesOfTable.length > 0
|
|
|
|
998
|
+ ? ClipRRect(
|
|
|
|
999
|
+ borderRadius: BorderRadius.only(
|
|
|
|
1000
|
+ topRight:
|
|
|
|
1001
|
+ Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
1002
|
+ topLeft:
|
|
|
|
1003
|
+ Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
1004
|
+ ),
|
|
|
|
1005
|
+ child: CachedNetworkImage(
|
|
|
|
1006
|
+ imageUrl: imagesOfTable[0],
|
|
|
|
1007
|
+ fit: BoxFit.cover,
|
|
|
|
1008
|
+ width: ScreenUtil().setWidth(141 * 2),
|
|
|
|
1009
|
+ height: ScreenUtil().setWidth(79 * 2),
|
|
|
|
1010
|
+ ))
|
|
|
|
1011
|
+ : Container(
|
|
|
|
1012
|
+ width: ScreenUtil().setWidth(141 * 2),
|
|
|
|
1013
|
+ height: ScreenUtil().setWidth(79 * 2),
|
|
|
|
1014
|
+ decoration: BoxDecoration(
|
|
|
|
1015
|
+ gradient: LinearGradient(colors: [
|
|
|
|
1016
|
+ Color.fromRGBO(185, 206, 203, 1),
|
|
|
|
1017
|
+ Color.fromRGBO(103, 150, 183, 1),
|
|
|
|
1018
|
+ ]), // 渐变色
|
|
|
|
1019
|
+ borderRadius: BorderRadius.only(
|
|
|
|
1020
|
+ topRight: Radius.circular(
|
|
|
|
1021
|
+ ScreenUtil().setWidth(12)),
|
|
|
|
1022
|
+ topLeft: Radius.circular(
|
|
|
|
1023
|
+ ScreenUtil().setWidth(12)),
|
|
|
|
1024
|
+ )),
|
|
|
|
1025
|
+ child: Column(
|
|
|
|
1026
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
1027
|
+ children: [
|
|
|
|
1028
|
+ Image.asset(
|
|
|
|
1029
|
+ Utils.getImgPath('add_area'),
|
|
|
|
1030
|
+ width: ScreenUtil().setWidth(44),
|
|
|
|
1031
|
+ ),
|
|
|
|
1032
|
+ VEmptyView(6),
|
|
|
|
1033
|
+ Text(
|
|
|
|
1034
|
+ '添加照片',
|
|
|
|
1035
|
+ style: TextStyle(
|
|
|
|
1036
|
+ color: MyColours.color_ffffff,
|
|
|
|
1037
|
+ fontWeight: FontWeight.bold,
|
|
|
|
1038
|
+ fontSize: ScreenUtil().setSp(19)),
|
|
|
|
1039
|
+ )
|
|
|
|
1040
|
+ ],
|
|
|
|
1041
|
+ ),
|
|
|
|
1042
|
+ ),
|
|
|
|
1043
|
+ Container(
|
|
|
|
1044
|
+ width: ScreenUtil().setWidth(141 * 2),
|
|
|
|
1045
|
+ height: ScreenUtil().setWidth(19 * 2),
|
|
|
|
1046
|
+ alignment: Alignment.center,
|
|
|
|
1047
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
1048
|
+ horizontal: ScreenUtil().setHeight(24)),
|
|
|
|
1049
|
+ decoration: BoxDecoration(
|
|
|
|
1050
|
+ boxShadow: [
|
|
|
|
1051
|
+ // BoxShadow(
|
|
|
|
1052
|
+ BoxShadow(
|
|
|
|
1053
|
+ color: Color.fromRGBO(0, 0, 0, 0.25), //投影颜色
|
|
|
|
1054
|
+ offset: Offset(
|
|
|
|
1055
|
+ 0, ScreenUtil().setWidth(8)), //x,y轴
|
|
|
|
1056
|
+ blurRadius: ScreenUtil().setWidth(8), //投影距离
|
|
|
|
1057
|
+ spreadRadius: ScreenUtil().setWidth(-2))
|
|
|
|
1058
|
+ ],
|
|
|
|
1059
|
+ color: MyColours.color_515151,
|
|
|
|
1060
|
+ borderRadius: BorderRadius.only(
|
|
|
|
1061
|
+ bottomLeft:
|
|
|
|
1062
|
+ Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
1063
|
+ bottomRight:
|
|
|
|
1064
|
+ Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
1065
|
+ )),
|
|
|
|
1066
|
+ child: Text(
|
|
|
|
1067
|
+ tableInfo[index]['name'],
|
|
|
|
1068
|
+ textAlign: TextAlign.center,
|
|
|
|
1069
|
+ style: TextStyle(
|
|
|
|
1070
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
1071
|
+ // letterSpacing: ScreenUtil()
|
|
|
|
1072
|
+ // .setWidth(2.13 * 2),
|
|
|
|
1073
|
+ color: MyColours.color_ffffff,
|
|
|
|
1074
|
+ fontWeight: FontWeight.bold,
|
|
|
|
1075
|
+ fontSize: ScreenUtil().setSp(24)),
|
|
|
|
1076
|
+ ),
|
|
|
|
1077
|
+ )
|
|
|
|
1078
|
+ ],
|
|
|
|
1079
|
+ ),
|
|
|
|
1080
|
+ );
|
|
|
|
1081
|
+ }),
|
|
|
|
1082
|
+ ),
|
|
|
|
1083
|
+ ],
|
|
|
|
1084
|
+ );
|
|
|
|
1085
|
+ }
|
|
|
|
1086
|
+
|
|
|
|
1087
|
+ ///预订时间信息
|
|
|
|
1088
|
+ _reverseTimeWidget() {
|
|
|
|
1089
|
+ return Stack(
|
|
|
|
1090
|
+ alignment: Alignment.centerRight,
|
|
|
|
1091
|
+ children: [
|
|
|
|
1092
|
+ Container(
|
|
|
|
1093
|
+ width: double.infinity,
|
|
|
|
1094
|
+ child: Column(
|
|
|
|
1095
|
+ children: [
|
|
|
|
1096
|
+ Container(
|
|
|
|
1097
|
+ // height: ScreenUtil().setWidth(58),
|
|
|
|
1098
|
+ child: Text(
|
|
|
|
1099
|
+ '${dateTimeStr}',
|
|
|
|
1100
|
+ style: TextStyle(
|
|
|
|
1101
|
+ // letterSpacing: ScreenUtil().setWidth(1.8 * 2),
|
|
|
|
1102
|
+ fontWeight: FontWeight.bold,
|
|
|
|
1103
|
+ color: MyColours.color_515151,
|
|
|
|
1104
|
+ fontSize: ScreenUtil().setSp(40)),
|
|
|
|
1105
|
+ ),
|
|
|
|
1106
|
+ ),
|
|
|
|
1107
|
+ VEmptyView(8),
|
|
|
|
1108
|
+ Container(
|
|
|
|
1109
|
+ // height: ScreenUtil().setWidth(58),
|
|
|
|
1110
|
+ child: Text(
|
|
|
|
1111
|
+ '${weekInfoAndLunarCalendar}',
|
|
|
|
1112
|
+ style: TextStyle(
|
|
|
|
1113
|
+ // letterSpacing: ScreenUtil().setWidth(1.8 * 2),
|
|
|
|
1114
|
+ color: MyColours.color_999999,
|
|
|
|
1115
|
+ fontSize: ScreenUtil().setSp(28)),
|
|
|
|
1116
|
+ ),
|
|
|
|
1117
|
+ ),
|
|
|
|
1118
|
+ ],
|
|
|
|
1119
|
+ )),
|
|
|
|
1120
|
+ Positioned(
|
|
|
|
1121
|
+ right: ScreenUtil().setWidth(24),
|
|
|
|
1122
|
+ child: InkWell(
|
|
|
|
1123
|
+ onTap: () {
|
|
|
|
1124
|
+ print('点击变更预订');
|
|
|
|
1125
|
+ UserModel userModel =
|
|
|
|
1126
|
+ Provider.of<UserModel>(context, listen: false);
|
|
|
|
1127
|
+ if (userModel.user.role_name != '管理员' &&
|
|
|
|
1128
|
+ userModel.user.role_name != '店长' &&
|
|
|
|
1129
|
+ detailEntity.uid != "null" &&
|
|
|
|
1130
|
+ detailEntity.uid != userModel.user.openid) {
|
|
|
|
1131
|
+ } else {
|
|
|
|
1132
|
+ NavigatorUtil.goNoteBookChangeFPage(
|
|
|
|
1133
|
+ context, detailEntity, widget.rid,
|
|
|
|
1134
|
+ back: true);
|
|
|
|
1135
|
+ }
|
|
|
|
1136
|
+ },
|
|
|
|
1137
|
+ child: Text(
|
|
|
|
1138
|
+ '变更预订',
|
|
|
|
1139
|
+ style: TextStyle(
|
|
|
|
1140
|
+ decoration: TextDecoration.underline,
|
|
|
|
1141
|
+ color: MyColours.color_438E93,
|
|
|
|
1142
|
+ fontSize: ScreenUtil().setSp(20)),
|
|
|
|
1143
|
+ ),
|
|
|
|
1144
|
+ ))
|
|
|
|
1145
|
+ ],
|
|
|
|
1146
|
+ );
|
|
|
|
1147
|
+ }
|
|
|
|
1148
|
+
|
|
955
|
///经理信息
|
1149
|
///经理信息
|
|
956
|
Widget _managerWidget() {
|
1150
|
Widget _managerWidget() {
|
|
957
|
return Stack(
|
1151
|
return Stack(
|
|
@@ -2518,6 +2712,11 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2518,6 +2712,11 @@ class InvicationPageState extends State<InvicationPage> |
|
2518
|
couponProvider = Provider.of<CouponProvider>(context, listen: true);
|
2712
|
couponProvider = Provider.of<CouponProvider>(context, listen: true);
|
|
2519
|
return SafeArea(
|
2713
|
return SafeArea(
|
|
2520
|
child: Scaffold(
|
2714
|
child: Scaffold(
|
|
|
|
2715
|
+ appBar: SystemAppBar('预订安排', titleColor: MyColours.color_438E93,
|
|
|
|
2716
|
+ onTap: () {
|
|
|
|
2717
|
+ needBack = true;
|
|
|
|
2718
|
+ _showConfirmWidget(needBack: true);
|
|
|
|
2719
|
+ }),
|
|
2521
|
backgroundColor: Colors.white,
|
2720
|
backgroundColor: Colors.white,
|
|
2522
|
// resizeToAvoidBottomInset: false,
|
2721
|
// resizeToAvoidBottomInset: false,
|
|
2523
|
body: InkWell(
|
2722
|
body: InkWell(
|
|
@@ -2529,42 +2728,43 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2529,42 +2728,43 @@ class InvicationPageState extends State<InvicationPage> |
|
2529
|
color: MyColours.color_ffffff,
|
2728
|
color: MyColours.color_ffffff,
|
|
2530
|
child: Column(
|
2729
|
child: Column(
|
|
2531
|
children: [
|
2730
|
children: [
|
|
2532
|
- Container(
|
|
|
|
2533
|
- width: double.infinity,
|
|
|
|
2534
|
- // color: backgroundColor,
|
|
|
|
2535
|
- padding: EdgeInsets.symmetric(
|
|
|
|
2536
|
- vertical: ScreenUtil().setHeight(30)),
|
|
|
|
2537
|
- child: Stack(
|
|
|
|
2538
|
- alignment: Alignment.center,
|
|
|
|
2539
|
- children: <Widget>[
|
|
|
|
2540
|
- Positioned(
|
|
|
|
2541
|
- left: 0,
|
|
|
|
2542
|
- child: InkWell(
|
|
|
|
2543
|
- onTap: () {
|
|
|
|
2544
|
- needBack = true;
|
|
|
|
2545
|
- _showConfirmWidget(needBack: true);
|
|
|
|
2546
|
- },
|
|
|
|
2547
|
- // behavior: HitTestBehavior.opaque,
|
|
|
|
2548
|
- child: Padding(
|
|
|
|
2549
|
- padding: EdgeInsets.symmetric(
|
|
|
|
2550
|
- horizontal: ScreenUtil().setWidth(40),
|
|
|
|
2551
|
- vertical: ScreenUtil().setHeight(15)),
|
|
|
|
2552
|
- child: Image.asset(
|
|
|
|
2553
|
- "assets/icon_back.png",
|
|
|
|
2554
|
- width: ScreenUtil().setWidth(20),
|
|
|
|
2555
|
- height: ScreenUtil().setHeight(31),
|
|
|
|
2556
|
- ),
|
|
|
|
2557
|
- ),
|
|
|
|
2558
|
- ),
|
|
|
|
2559
|
- ),
|
|
|
|
2560
|
- Center(
|
|
|
|
2561
|
- child: Image.asset(
|
|
|
|
2562
|
- "assets/yd_logo.png",
|
|
|
|
2563
|
- width: ScreenUtil().setWidth(103 * 2),
|
|
|
|
2564
|
- // height: ScreenUtil().setHeight(21 * 2),
|
|
|
|
2565
|
- ))
|
|
|
|
2566
|
- ],
|
|
|
|
2567
|
- )),
|
2731
|
+ // Container(
|
|
|
|
2732
|
+ // width: double.infinity,
|
|
|
|
2733
|
+ // // color: backgroundColor,
|
|
|
|
2734
|
+ // padding: EdgeInsets.symmetric(
|
|
|
|
2735
|
+ // vertical: ScreenUtil().setHeight(30)),
|
|
|
|
2736
|
+ // child: Stack(
|
|
|
|
2737
|
+ // alignment: Alignment.center,
|
|
|
|
2738
|
+ // children: <Widget>[
|
|
|
|
2739
|
+ // Positioned(
|
|
|
|
2740
|
+ // left: 0,
|
|
|
|
2741
|
+ // child: InkWell(
|
|
|
|
2742
|
+ // onTap: () {
|
|
|
|
2743
|
+ // needBack = true;
|
|
|
|
2744
|
+ // _showConfirmWidget(needBack: true);
|
|
|
|
2745
|
+ // },
|
|
|
|
2746
|
+ // // behavior: HitTestBehavior.opaque,
|
|
|
|
2747
|
+ // child: Padding(
|
|
|
|
2748
|
+ // padding: EdgeInsets.symmetric(
|
|
|
|
2749
|
+ // horizontal: ScreenUtil().setWidth(40),
|
|
|
|
2750
|
+ // vertical: ScreenUtil().setHeight(15)),
|
|
|
|
2751
|
+ // child: Image.asset(
|
|
|
|
2752
|
+ // "assets/icon_back.png",
|
|
|
|
2753
|
+ // width: ScreenUtil().setWidth(20),
|
|
|
|
2754
|
+ // height: ScreenUtil().setHeight(31),
|
|
|
|
2755
|
+ // ),
|
|
|
|
2756
|
+ // ),
|
|
|
|
2757
|
+ // ),
|
|
|
|
2758
|
+ // ),
|
|
|
|
2759
|
+ // Center(
|
|
|
|
2760
|
+ // child: Image.asset(
|
|
|
|
2761
|
+ // "assets/yd_logo.png",
|
|
|
|
2762
|
+ // width: ScreenUtil().setWidth(103 * 2),
|
|
|
|
2763
|
+ // // height: ScreenUtil().setHeight(21 * 2),
|
|
|
|
2764
|
+ // ))
|
|
|
|
2765
|
+ // ],
|
|
|
|
2766
|
+ // )),
|
|
|
|
2767
|
+
|
|
2568
|
Expanded(child: Consumer<BaseIndoProvider>(
|
2768
|
Expanded(child: Consumer<BaseIndoProvider>(
|
|
2569
|
builder: (context, model, _) {
|
2769
|
builder: (context, model, _) {
|
|
2570
|
if (model.pageState != PageState.Success) {
|
2770
|
if (model.pageState != PageState.Success) {
|
|
@@ -2584,8 +2784,6 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2584,8 +2784,6 @@ class InvicationPageState extends State<InvicationPage> |
|
2584
|
);
|
2784
|
);
|
|
2585
|
} else {
|
2785
|
} else {
|
|
2586
|
return Container(
|
2786
|
return Container(
|
|
2587
|
- padding: EdgeInsets.symmetric(
|
|
|
|
2588
|
- horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
2589
|
child: Column(
|
2787
|
child: Column(
|
|
2590
|
children: [
|
2788
|
children: [
|
|
2591
|
Expanded(
|
2789
|
Expanded(
|
|
@@ -2597,7 +2795,15 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2597,7 +2795,15 @@ class InvicationPageState extends State<InvicationPage> |
|
2597
|
reverse:
|
2795
|
reverse:
|
|
2598
|
_phoneNode.hasFocus ? true : false,
|
2796
|
_phoneNode.hasFocus ? true : false,
|
|
2599
|
child: Column(
|
2797
|
child: Column(
|
|
|
|
2798
|
+ crossAxisAlignment:
|
|
|
|
2799
|
+ CrossAxisAlignment.start,
|
|
2600
|
children: [
|
2800
|
children: [
|
|
|
|
2801
|
+ VEmptyView(38),
|
|
|
|
2802
|
+ _reverseTimeWidget(),
|
|
|
|
2803
|
+ VEmptyView(24),
|
|
|
|
2804
|
+ _tableInfoWidget(),
|
|
|
|
2805
|
+ VEmptyView(34),
|
|
|
|
2806
|
+ _enterMoreWidget(),
|
|
2601
|
VEmptyView(40),
|
2807
|
VEmptyView(40),
|
|
2602
|
_managerWidget(),
|
2808
|
_managerWidget(),
|
|
2603
|
VEmptyView(50),
|
2809
|
VEmptyView(50),
|
|
@@ -2611,7 +2817,10 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2611,7 +2817,10 @@ class InvicationPageState extends State<InvicationPage> |
|
2611
|
ScreenUtil().setWidth(20))
|
2817
|
ScreenUtil().setWidth(20))
|
|
2612
|
],
|
2818
|
],
|
|
2613
|
))),
|
2819
|
))),
|
|
2614
|
- _btnWidget(),
|
2820
|
+ Padding(
|
|
|
|
2821
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
2822
|
+ horizontal: ScreenUtil().setWidth(48)),
|
|
|
|
2823
|
+ child: _btnWidget()),
|
|
2615
|
],
|
2824
|
],
|
|
2616
|
),
|
2825
|
),
|
|
2617
|
);
|
2826
|
);
|
|
@@ -2619,782 +2828,6 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2619,782 +2828,6 @@ class InvicationPageState extends State<InvicationPage> |
|
2619
|
})),
|
2828
|
})),
|
|
2620
|
],
|
2829
|
],
|
|
2621
|
)),
|
2830
|
)),
|
|
2622
|
-
|
|
|
|
2623
|
- // body: Stack(
|
|
|
|
2624
|
- // children: [
|
|
|
|
2625
|
- // Column(children: [
|
|
|
|
2626
|
- // Expanded(
|
|
|
|
2627
|
- // child: ListView(
|
|
|
|
2628
|
- // controller: controller,
|
|
|
|
2629
|
- // physics: BouncingScrollPhysics(),
|
|
|
|
2630
|
- // children: <Widget>[
|
|
|
|
2631
|
- // Center(
|
|
|
|
2632
|
- // child: Column(
|
|
|
|
2633
|
- // children: <Widget>[
|
|
|
|
2634
|
- // VEmptyView(20),
|
|
|
|
2635
|
- // Image.asset(
|
|
|
|
2636
|
- // "assets/yd_logo.png",
|
|
|
|
2637
|
- // width: ScreenUtil().setWidth(233 * 2),
|
|
|
|
2638
|
- // height: ScreenUtil().setHeight(51 * 2),
|
|
|
|
2639
|
- // ),
|
|
|
|
2640
|
- // VEmptyView(26),
|
|
|
|
2641
|
- // Container(
|
|
|
|
2642
|
- // margin: EdgeInsets.symmetric(
|
|
|
|
2643
|
- // horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
2644
|
- // // padding: EdgeInsets.all(
|
|
|
|
2645
|
- // // ScreenUtil().setWidth(60)),
|
|
|
|
2646
|
- // // decoration: BoxDecoration(
|
|
|
|
2647
|
- // // gradient: LinearGradient(
|
|
|
|
2648
|
- // // begin: Alignment.topCenter,
|
|
|
|
2649
|
- // // end: Alignment.bottomCenter,
|
|
|
|
2650
|
- // // colors: [
|
|
|
|
2651
|
- // // MyColours.color_F7F1E8,
|
|
|
|
2652
|
- // // MyColours.color_E3D6C7,
|
|
|
|
2653
|
- // // ],
|
|
|
|
2654
|
- // // ),
|
|
|
|
2655
|
- // // borderRadius: BorderRadius.circular(
|
|
|
|
2656
|
- // // ScreenUtil().setWidth(10))),
|
|
|
|
2657
|
- // child: Column(
|
|
|
|
2658
|
- // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
2659
|
- // children: [
|
|
|
|
2660
|
- // Container(
|
|
|
|
2661
|
- // // color: Colors.red,
|
|
|
|
2662
|
- // width: ScreenUtil().setWidth(335 * 2),
|
|
|
|
2663
|
- // height: ScreenUtil().setWidth(200 * 2),
|
|
|
|
2664
|
- // // decoration: BoxDecoration(
|
|
|
|
2665
|
- // // image: DecorationImage(
|
|
|
|
2666
|
- // // alignment:
|
|
|
|
2667
|
- // // Alignment.topCenter,
|
|
|
|
2668
|
- // // image: AssetImage(
|
|
|
|
2669
|
- // // "assets/yd_baiinfo_bg.png"),
|
|
|
|
2670
|
- // // fit: BoxFit.cover),
|
|
|
|
2671
|
- // // ),
|
|
|
|
2672
|
- // child: Row(
|
|
|
|
2673
|
- // crossAxisAlignment:
|
|
|
|
2674
|
- // CrossAxisAlignment.start,
|
|
|
|
2675
|
- // children: [
|
|
|
|
2676
|
- // Padding(
|
|
|
|
2677
|
- // padding: EdgeInsets.only(
|
|
|
|
2678
|
- // left: ScreenUtil()
|
|
|
|
2679
|
- // .setWidth(70)),
|
|
|
|
2680
|
- // child: Stack(
|
|
|
|
2681
|
- // alignment:
|
|
|
|
2682
|
- // Alignment.bottomCenter,
|
|
|
|
2683
|
- // children: [
|
|
|
|
2684
|
- // Image.network(
|
|
|
|
2685
|
- // qiniuUrl == ''
|
|
|
|
2686
|
- // ? 'http://nosqn.colorcun.com/yd_person.png'
|
|
|
|
2687
|
- // : qiniuUrl,
|
|
|
|
2688
|
- // // 'http://nosqn.colorcun.com/yd_person.png',
|
|
|
|
2689
|
- // width: ScreenUtil()
|
|
|
|
2690
|
- // .setWidth(143 * 2),
|
|
|
|
2691
|
- // height: ScreenUtil()
|
|
|
|
2692
|
- // .setWidth(190 * 2)),
|
|
|
|
2693
|
- // couponProvider.coupons
|
|
|
|
2694
|
- // .length ==
|
|
|
|
2695
|
- // 0
|
|
|
|
2696
|
- // ? Align(
|
|
|
|
2697
|
- // alignment: Alignment
|
|
|
|
2698
|
- // .bottomCenter,
|
|
|
|
2699
|
- // child: RoundButton(
|
|
|
|
2700
|
- // width: ScreenUtil()
|
|
|
|
2701
|
- // .setWidth(
|
|
|
|
2702
|
- // 86 * 2),
|
|
|
|
2703
|
- // height:
|
|
|
|
2704
|
- // ScreenUtil()
|
|
|
|
2705
|
- // .setWidth(
|
|
|
|
2706
|
- // 30 *
|
|
|
|
2707
|
- // 2),
|
|
|
|
2708
|
- // radius:
|
|
|
|
2709
|
- // ScreenUtil()
|
|
|
|
2710
|
- // .setWidth(
|
|
|
|
2711
|
- // 30),
|
|
|
|
2712
|
- // space:
|
|
|
|
2713
|
- // ScreenUtil()
|
|
|
|
2714
|
- // .setWidth(
|
|
|
|
2715
|
- // 20),
|
|
|
|
2716
|
- // text: '添加优惠',
|
|
|
|
2717
|
- // textColor: MyColours
|
|
|
|
2718
|
- // .color_ffffff,
|
|
|
|
2719
|
- // isBold: false,
|
|
|
|
2720
|
- // fontSize: 28,
|
|
|
|
2721
|
- // gradientStart:
|
|
|
|
2722
|
- // MyColours
|
|
|
|
2723
|
- // .color_199095,
|
|
|
|
2724
|
- // gradientEnd: MyColours
|
|
|
|
2725
|
- // .color_199095,
|
|
|
|
2726
|
- // onPressed: () {
|
|
|
|
2727
|
- // NavigatorUtil
|
|
|
|
2728
|
- // .goCouponPage(
|
|
|
|
2729
|
- // context,
|
|
|
|
2730
|
- // needRefrsh:
|
|
|
|
2731
|
- // true);
|
|
|
|
2732
|
- // },
|
|
|
|
2733
|
- // ),
|
|
|
|
2734
|
- // )
|
|
|
|
2735
|
- // : Container()
|
|
|
|
2736
|
- // ],
|
|
|
|
2737
|
- // )),
|
|
|
|
2738
|
- // HEmptyView(10),
|
|
|
|
2739
|
- // Spacer(),
|
|
|
|
2740
|
- // Container(
|
|
|
|
2741
|
- // padding: EdgeInsets.only(
|
|
|
|
2742
|
- // top: ScreenUtil()
|
|
|
|
2743
|
- // .setWidth(37 * 2)),
|
|
|
|
2744
|
- // // height: ScreenUtil()
|
|
|
|
2745
|
- // // .setWidth(200 * 2),
|
|
|
|
2746
|
- // child: Column(
|
|
|
|
2747
|
- // mainAxisAlignment:
|
|
|
|
2748
|
- // MainAxisAlignment.start,
|
|
|
|
2749
|
- // crossAxisAlignment:
|
|
|
|
2750
|
- // CrossAxisAlignment.end,
|
|
|
|
2751
|
- // children: [
|
|
|
|
2752
|
- // // VEmptyView(60),
|
|
|
|
2753
|
- // GestureDetector(
|
|
|
|
2754
|
- // behavior: HitTestBehavior
|
|
|
|
2755
|
- // .opaque,
|
|
|
|
2756
|
- // onTap: () {
|
|
|
|
2757
|
- // _goBaseInfoPage();
|
|
|
|
2758
|
- // },
|
|
|
|
2759
|
- // child: Container(
|
|
|
|
2760
|
- // width: ScreenUtil()
|
|
|
|
2761
|
- // .setWidth(120 * 2),
|
|
|
|
2762
|
- // height: ScreenUtil()
|
|
|
|
2763
|
- // .setWidth(42 * 2),
|
|
|
|
2764
|
- // child: Text(
|
|
|
|
2765
|
- // name,
|
|
|
|
2766
|
- // overflow: TextOverflow
|
|
|
|
2767
|
- // .ellipsis,
|
|
|
|
2768
|
- // textAlign:
|
|
|
|
2769
|
- // TextAlign.right,
|
|
|
|
2770
|
- // style: TextStyle(
|
|
|
|
2771
|
- // color: MyColours
|
|
|
|
2772
|
- // .color_333333,
|
|
|
|
2773
|
- // fontSize:
|
|
|
|
2774
|
- // ScreenUtil()
|
|
|
|
2775
|
- // .setSp(
|
|
|
|
2776
|
- // 60)),
|
|
|
|
2777
|
- // ),
|
|
|
|
2778
|
- // ),
|
|
|
|
2779
|
- // ),
|
|
|
|
2780
|
- // // VEmptyView(6),
|
|
|
|
2781
|
- // InkWell(
|
|
|
|
2782
|
- // onTap: () {
|
|
|
|
2783
|
- // _goBaseInfoPage();
|
|
|
|
2784
|
- // },
|
|
|
|
2785
|
- // child: Container(
|
|
|
|
2786
|
- // width: ScreenUtil()
|
|
|
|
2787
|
- // .setWidth(
|
|
|
|
2788
|
- // 120 * 2),
|
|
|
|
2789
|
- // height: ScreenUtil()
|
|
|
|
2790
|
- // .setWidth(22 * 2),
|
|
|
|
2791
|
- // child: Text(
|
|
|
|
2792
|
- // phone,
|
|
|
|
2793
|
- // overflow:
|
|
|
|
2794
|
- // TextOverflow
|
|
|
|
2795
|
- // .ellipsis,
|
|
|
|
2796
|
- // textAlign:
|
|
|
|
2797
|
- // TextAlign.right,
|
|
|
|
2798
|
- // style: TextStyle(
|
|
|
|
2799
|
- // color: phone ==
|
|
|
|
2800
|
- // '填写电话'
|
|
|
|
2801
|
- // ? MyColours
|
|
|
|
2802
|
- // .color_999999
|
|
|
|
2803
|
- // : MyColours
|
|
|
|
2804
|
- // .color_333333,
|
|
|
|
2805
|
- // fontSize:
|
|
|
|
2806
|
- // ScreenUtil()
|
|
|
|
2807
|
- // .setSp(
|
|
|
|
2808
|
- // 32)),
|
|
|
|
2809
|
- // ),
|
|
|
|
2810
|
- // )),
|
|
|
|
2811
|
- // // VEmptyView(6),
|
|
|
|
2812
|
- // InkWell(
|
|
|
|
2813
|
- // onTap: () {
|
|
|
|
2814
|
- // _goBaseInfoPage();
|
|
|
|
2815
|
- // },
|
|
|
|
2816
|
- // child: Container(
|
|
|
|
2817
|
- // width: ScreenUtil()
|
|
|
|
2818
|
- // .setWidth(
|
|
|
|
2819
|
- // 120 * 2),
|
|
|
|
2820
|
- // height: ScreenUtil()
|
|
|
|
2821
|
- // .setWidth(24 * 2),
|
|
|
|
2822
|
- // child: Text(
|
|
|
|
2823
|
- // position,
|
|
|
|
2824
|
- // overflow:
|
|
|
|
2825
|
- // TextOverflow
|
|
|
|
2826
|
- // .ellipsis,
|
|
|
|
2827
|
- // textAlign:
|
|
|
|
2828
|
- // TextAlign.right,
|
|
|
|
2829
|
- // style: TextStyle(
|
|
|
|
2830
|
- // color: MyColours
|
|
|
|
2831
|
- // .color_333333,
|
|
|
|
2832
|
- // fontSize:
|
|
|
|
2833
|
- // ScreenUtil()
|
|
|
|
2834
|
- // .setSp(
|
|
|
|
2835
|
- // 34)),
|
|
|
|
2836
|
- // ),
|
|
|
|
2837
|
- // )),
|
|
|
|
2838
|
-
|
|
|
|
2839
|
- // RoundButton(
|
|
|
|
2840
|
- // // width: ScreenUtil().setWidth(95),
|
|
|
|
2841
|
- // height: ScreenUtil()
|
|
|
|
2842
|
- // .setWidth(60 * 2),
|
|
|
|
2843
|
- // image: Utils.getImgPath(
|
|
|
|
2844
|
- // 'yd_bianji'),
|
|
|
|
2845
|
- // imgWidth: 24,
|
|
|
|
2846
|
- // radius: 0,
|
|
|
|
2847
|
- // space: ScreenUtil()
|
|
|
|
2848
|
- // .setWidth(20),
|
|
|
|
2849
|
- // text: '编辑',
|
|
|
|
2850
|
- // textColor: MyColours
|
|
|
|
2851
|
- // .color_199095,
|
|
|
|
2852
|
- // isBold: false,
|
|
|
|
2853
|
- // fontSize: 28,
|
|
|
|
2854
|
- // gradientStart:
|
|
|
|
2855
|
- // Colors.transparent,
|
|
|
|
2856
|
- // gradientEnd:
|
|
|
|
2857
|
- // Colors.transparent,
|
|
|
|
2858
|
- // onPressed: () {
|
|
|
|
2859
|
- // _goBaseInfoPage();
|
|
|
|
2860
|
- // },
|
|
|
|
2861
|
- // )
|
|
|
|
2862
|
- // ],
|
|
|
|
2863
|
- // )),
|
|
|
|
2864
|
- // HEmptyView(60),
|
|
|
|
2865
|
- // ],
|
|
|
|
2866
|
- // )),
|
|
|
|
2867
|
- // // Positioned(
|
|
|
|
2868
|
- // // bottom: 0,
|
|
|
|
2869
|
- // // child: Container(
|
|
|
|
2870
|
- // // color: MyColours.color_EEDBC4,
|
|
|
|
2871
|
- // // width: double.infinity,
|
|
|
|
2872
|
- // // height:
|
|
|
|
2873
|
- // // ScreenUtil().setWidth(40),
|
|
|
|
2874
|
- // // ))
|
|
|
|
2875
|
- // // ],
|
|
|
|
2876
|
- // // ),
|
|
|
|
2877
|
- // // Container(
|
|
|
|
2878
|
- // // color: MyColours.color_EEDBC4,
|
|
|
|
2879
|
- // // width: double.infinity,
|
|
|
|
2880
|
- // // height: ScreenUtil().setWidth(40),
|
|
|
|
2881
|
- // // ),
|
|
|
|
2882
|
- // VEmptyView(76),
|
|
|
|
2883
|
- // // Image.asset(
|
|
|
|
2884
|
- // // "assets/yd_up.png",
|
|
|
|
2885
|
- // // width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
2886
|
- // // height:
|
|
|
|
2887
|
- // // ScreenUtil().setHeight(33 * 2),
|
|
|
|
2888
|
- // // ),
|
|
|
|
2889
|
- // // VEmptyView(50),
|
|
|
|
2890
|
-
|
|
|
|
2891
|
- // RepaintBoundary(
|
|
|
|
2892
|
- // key: globalKey,
|
|
|
|
2893
|
- // child: Container(
|
|
|
|
2894
|
- // padding: EdgeInsets.fromLTRB(
|
|
|
|
2895
|
- // ScreenUtil().setWidth(10),
|
|
|
|
2896
|
- // ScreenUtil().setWidth(10),
|
|
|
|
2897
|
- // ScreenUtil().setWidth(10),
|
|
|
|
2898
|
- // ScreenUtil().setWidth(40)),
|
|
|
|
2899
|
- // // color: Colors.red,
|
|
|
|
2900
|
- // child: Column(
|
|
|
|
2901
|
- // children: [
|
|
|
|
2902
|
- // Container(
|
|
|
|
2903
|
- // height: ScreenUtil().setWidth(58),
|
|
|
|
2904
|
- // child: Text(
|
|
|
|
2905
|
- // user.sellername,
|
|
|
|
2906
|
- // style: TextStyle(
|
|
|
|
2907
|
- // // letterSpacing: ScreenUtil()
|
|
|
|
2908
|
- // // .setWidth(2.13 * 2),
|
|
|
|
2909
|
- // color:
|
|
|
|
2910
|
- // MyColours.color_333333,
|
|
|
|
2911
|
- // // fontWeight: FontWeight.bold,
|
|
|
|
2912
|
- // fontSize:
|
|
|
|
2913
|
- // ScreenUtil().setSp(42)),
|
|
|
|
2914
|
- // ),
|
|
|
|
2915
|
- // ),
|
|
|
|
2916
|
- // VEmptyView(14),
|
|
|
|
2917
|
- // Container(
|
|
|
|
2918
|
- // height: ScreenUtil().setWidth(58),
|
|
|
|
2919
|
- // child: Text(
|
|
|
|
2920
|
- // '${dateTimeStr}',
|
|
|
|
2921
|
- // style: TextStyle(
|
|
|
|
2922
|
- // letterSpacing: ScreenUtil()
|
|
|
|
2923
|
- // .setWidth(1.8 * 2),
|
|
|
|
2924
|
- // color:
|
|
|
|
2925
|
- // MyColours.color_333333,
|
|
|
|
2926
|
- // fontSize:
|
|
|
|
2927
|
- // ScreenUtil().setSp(42)),
|
|
|
|
2928
|
- // ),
|
|
|
|
2929
|
- // ),
|
|
|
|
2930
|
- // VEmptyView(26),
|
|
|
|
2931
|
- // Container(
|
|
|
|
2932
|
- // height: ScreenUtil().setWidth(44),
|
|
|
|
2933
|
- // child: Text(
|
|
|
|
2934
|
- // '已为您安排在包间',
|
|
|
|
2935
|
- // style: TextStyle(
|
|
|
|
2936
|
- // color:
|
|
|
|
2937
|
- // MyColours.color_666666,
|
|
|
|
2938
|
- // fontSize:
|
|
|
|
2939
|
- // ScreenUtil().setSp(32)),
|
|
|
|
2940
|
- // ),
|
|
|
|
2941
|
- // ),
|
|
|
|
2942
|
- // VEmptyView(28),
|
|
|
|
2943
|
- // GestureDetector(
|
|
|
|
2944
|
- // onTapDown: (TapDownDetails
|
|
|
|
2945
|
- // details) =>
|
|
|
|
2946
|
- // onTapDown(context, details),
|
|
|
|
2947
|
- // child: Container(
|
|
|
|
2948
|
- // child: Stack(
|
|
|
|
2949
|
- // alignment:
|
|
|
|
2950
|
- // Alignment.bottomCenter,
|
|
|
|
2951
|
- // overflow: Overflow.visible,
|
|
|
|
2952
|
- // children: [
|
|
|
|
2953
|
- // Container(
|
|
|
|
2954
|
- // margin: EdgeInsets.only(
|
|
|
|
2955
|
- // bottom: ScreenUtil()
|
|
|
|
2956
|
- // .setWidth(24)),
|
|
|
|
2957
|
- // constraints: BoxConstraints(
|
|
|
|
2958
|
- // maxWidth: ScreenUtil()
|
|
|
|
2959
|
- // .setWidth(
|
|
|
|
2960
|
- // 195 * 2)),
|
|
|
|
2961
|
- // padding:
|
|
|
|
2962
|
- // EdgeInsets.fromLTRB(
|
|
|
|
2963
|
- // ScreenUtil()
|
|
|
|
2964
|
- // .setWidth(60),
|
|
|
|
2965
|
- // ScreenUtil()
|
|
|
|
2966
|
- // .setWidth(30),
|
|
|
|
2967
|
- // ScreenUtil()
|
|
|
|
2968
|
- // .setWidth(60),
|
|
|
|
2969
|
- // ScreenUtil()
|
|
|
|
2970
|
- // .setWidth(
|
|
|
|
2971
|
- // 24 * 2)),
|
|
|
|
2972
|
- // decoration: BoxDecoration(
|
|
|
|
2973
|
- // borderRadius: BorderRadius.all(
|
|
|
|
2974
|
- // Radius.circular(
|
|
|
|
2975
|
- // ScreenUtil()
|
|
|
|
2976
|
- // .setWidth(
|
|
|
|
2977
|
- // 13 *
|
|
|
|
2978
|
- // 2))),
|
|
|
|
2979
|
- // border: Border.all(
|
|
|
|
2980
|
- // color: MyColours
|
|
|
|
2981
|
- // .color_199095,
|
|
|
|
2982
|
- // width:
|
|
|
|
2983
|
- // ScreenUtil()
|
|
|
|
2984
|
- // .setWidth(
|
|
|
|
2985
|
- // 4))),
|
|
|
|
2986
|
- // child: Text(
|
|
|
|
2987
|
- // widget.tableInfo
|
|
|
|
2988
|
- // .replaceAll(
|
|
|
|
2989
|
- // "\n", ""),
|
|
|
|
2990
|
- // style: TextStyle(
|
|
|
|
2991
|
- // // letterSpacing: ScreenUtil()
|
|
|
|
2992
|
- // // .setWidth(2.13 * 2),
|
|
|
|
2993
|
- // color: MyColours
|
|
|
|
2994
|
- // .color_333333,
|
|
|
|
2995
|
- // fontWeight:
|
|
|
|
2996
|
- // FontWeight.bold,
|
|
|
|
2997
|
- // fontSize:
|
|
|
|
2998
|
- // ScreenUtil()
|
|
|
|
2999
|
- // .setSp(52)),
|
|
|
|
3000
|
- // ),
|
|
|
|
3001
|
- // ),
|
|
|
|
3002
|
- // Positioned(
|
|
|
|
3003
|
- // key: key,
|
|
|
|
3004
|
- // bottom: 0,
|
|
|
|
3005
|
- // child: RoundButton(
|
|
|
|
3006
|
- // onPressed: () {
|
|
|
|
3007
|
- // _seePhoto();
|
|
|
|
3008
|
- // },
|
|
|
|
3009
|
- // text: '浏览照片',
|
|
|
|
3010
|
- // width: ScreenUtil()
|
|
|
|
3011
|
- // .setWidth(68 * 2),
|
|
|
|
3012
|
- // height: ScreenUtil()
|
|
|
|
3013
|
- // .setWidth(24 * 2),
|
|
|
|
3014
|
- // fontSize: 26,
|
|
|
|
3015
|
- // textColor: _baseIndoProvider
|
|
|
|
3016
|
- // .photoList
|
|
|
|
3017
|
- // .length >
|
|
|
|
3018
|
- // 0
|
|
|
|
3019
|
- // ? MyColours
|
|
|
|
3020
|
- // .color_ffffff
|
|
|
|
3021
|
- // : MyColours
|
|
|
|
3022
|
- // .color_999999,
|
|
|
|
3023
|
- // isBold: false,
|
|
|
|
3024
|
- // gradientStart: _baseIndoProvider
|
|
|
|
3025
|
- // .photoList
|
|
|
|
3026
|
- // .length >
|
|
|
|
3027
|
- // 0
|
|
|
|
3028
|
- // ? MyColours
|
|
|
|
3029
|
- // .color_199095
|
|
|
|
3030
|
- // : MyColours
|
|
|
|
3031
|
- // .color_E0E0E0,
|
|
|
|
3032
|
- // gradientEnd: _baseIndoProvider
|
|
|
|
3033
|
- // .photoList
|
|
|
|
3034
|
- // .length >
|
|
|
|
3035
|
- // 0
|
|
|
|
3036
|
- // ? MyColours
|
|
|
|
3037
|
- // .color_199095
|
|
|
|
3038
|
- // : MyColours
|
|
|
|
3039
|
- // .color_E0E0E0,
|
|
|
|
3040
|
- // ))
|
|
|
|
3041
|
- // ],
|
|
|
|
3042
|
- // ))),
|
|
|
|
3043
|
- // ],
|
|
|
|
3044
|
- // ),
|
|
|
|
3045
|
- // ),
|
|
|
|
3046
|
- // ),
|
|
|
|
3047
|
-
|
|
|
|
3048
|
- // VEmptyView(30),
|
|
|
|
3049
|
- // Container(
|
|
|
|
3050
|
- // // height: ScreenUtil().setWidth(40),
|
|
|
|
3051
|
- // child: Text(
|
|
|
|
3052
|
- // '${user.sellerAddr}',
|
|
|
|
3053
|
- // maxLines: 3,
|
|
|
|
3054
|
- // overflow: TextOverflow.ellipsis,
|
|
|
|
3055
|
- // textAlign: TextAlign.center,
|
|
|
|
3056
|
- // style: TextStyle(
|
|
|
|
3057
|
- // color: MyColours.color_333333,
|
|
|
|
3058
|
- // fontSize: ScreenUtil().setSp(28)),
|
|
|
|
3059
|
- // ),
|
|
|
|
3060
|
- // ),
|
|
|
|
3061
|
- // // VEmptyView(20),
|
|
|
|
3062
|
- // // RoundButton(
|
|
|
|
3063
|
- // // text: '一键导航',
|
|
|
|
3064
|
- // // width: ScreenUtil().setWidth(68 * 2),
|
|
|
|
3065
|
- // // height: ScreenUtil().setWidth(24 * 2),
|
|
|
|
3066
|
- // // fontSize: 24,
|
|
|
|
3067
|
- // // textColor: MyColours.color_794F28,
|
|
|
|
3068
|
- // // isBold: false,
|
|
|
|
3069
|
- // // gradientStart:
|
|
|
|
3070
|
- // // Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
3071
|
- // // gradientEnd:
|
|
|
|
3072
|
- // // Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
3073
|
- // // ),
|
|
|
|
3074
|
- // // VEmptyView(50),
|
|
|
|
3075
|
- // // Image.asset(
|
|
|
|
3076
|
- // // "assets/yd_down.png",
|
|
|
|
3077
|
- // // width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
3078
|
- // // height:
|
|
|
|
3079
|
- // // ScreenUtil().setHeight(33 * 2),
|
|
|
|
3080
|
- // // ),
|
|
|
|
3081
|
- // // VEmptyView(60),
|
|
|
|
3082
|
- // ],
|
|
|
|
3083
|
- // ),
|
|
|
|
3084
|
- // )
|
|
|
|
3085
|
- // ],
|
|
|
|
3086
|
- // ),
|
|
|
|
3087
|
- // ),
|
|
|
|
3088
|
- // VEmptyView(couponHeight),
|
|
|
|
3089
|
- // ])),
|
|
|
|
3090
|
- // Padding(
|
|
|
|
3091
|
- // padding: EdgeInsets.fromLTRB(
|
|
|
|
3092
|
- // ScreenUtil().setWidth(70),
|
|
|
|
3093
|
- // ScreenUtil().setWidth(20),
|
|
|
|
3094
|
- // ScreenUtil().setWidth(70),
|
|
|
|
3095
|
- // ScreenUtil().setWidth(40)),
|
|
|
|
3096
|
- // child: Column(children: [
|
|
|
|
3097
|
- // RoundButton(
|
|
|
|
3098
|
- // text: '微信通知',
|
|
|
|
3099
|
- // width: double.infinity,
|
|
|
|
3100
|
- // height: ScreenUtil().setWidth(84),
|
|
|
|
3101
|
- // gradientStart: MyColours.color_199095,
|
|
|
|
3102
|
- // gradientEnd: MyColours.color_199095,
|
|
|
|
3103
|
- // textColor: MyColours.color_ffffff,
|
|
|
|
3104
|
- // fontSize: 34,
|
|
|
|
3105
|
- // radius: ScreenUtil().setWidth(10),
|
|
|
|
3106
|
- // isBold: false,
|
|
|
|
3107
|
- // onPressed: () async {
|
|
|
|
3108
|
- // // Uint8List image = await _getImage();
|
|
|
|
3109
|
- // print(widget.rid);
|
|
|
|
3110
|
- // print(Provider.of<UserModel>(context, listen: false)
|
|
|
|
3111
|
- // .user
|
|
|
|
3112
|
- // .openid);
|
|
|
|
3113
|
- // // if (ObjectUtil.isEmpty(
|
|
|
|
3114
|
- // // _baseIndoProvider.baseInfoSunModel)) {
|
|
|
|
3115
|
- // // Utils.showToast('请输入个人资料');
|
|
|
|
3116
|
- // // return;
|
|
|
|
3117
|
- // // }
|
|
|
|
3118
|
- // // if (ObjectUtil.isEmpty(
|
|
|
|
3119
|
- // // _baseIndoProvider.baseInfoSunModel.name)) {
|
|
|
|
3120
|
- // // Utils.showToast('请填写您的姓名');
|
|
|
|
3121
|
- // // return;
|
|
|
|
3122
|
- // // }
|
|
|
|
3123
|
- // if (ObjectUtil.isEmpty(
|
|
|
|
3124
|
- // _baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
3125
|
- // ObjectUtil.isEmpty(
|
|
|
|
3126
|
- // _baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
3127
|
- // Utils.showToast('请填写您的联系电话');
|
|
|
|
3128
|
- // return;
|
|
|
|
3129
|
- // }
|
|
|
|
3130
|
- // // if (ObjectUtil.isEmpty(
|
|
|
|
3131
|
- // // _baseIndoProvider.baseInfoSunModel.position)) {
|
|
|
|
3132
|
- // // Utils.showToast('请填写您在餐厅中的职位');
|
|
|
|
3133
|
- // // return;
|
|
|
|
3134
|
- // // }
|
|
|
|
3135
|
- // // if (ObjectUtil.isEmpty(
|
|
|
|
3136
|
- // // _baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
3137
|
- // // Utils.showToast('请上传您的头像');
|
|
|
|
3138
|
- // // return;
|
|
|
|
3139
|
- // // }
|
|
|
|
3140
|
- // // if (ObjectUtil.isEmpty(
|
|
|
|
3141
|
- // // _baseIndoProvider.baseInfoSunModel.qrcode)) {
|
|
|
|
3142
|
- // // Utils.showToast('请上传您的微信二维码');
|
|
|
|
3143
|
- // // return;
|
|
|
|
3144
|
- // // }
|
|
|
|
3145
|
- // if (!couponProvider.hasModify &&
|
|
|
|
3146
|
- // couponProvider.coupons.length > 0) {
|
|
|
|
3147
|
- // Map<String, String> params = {
|
|
|
|
3148
|
- // "rid": widget.rid,
|
|
|
|
3149
|
- // "aid": Utils.listToStringEnglish(
|
|
|
|
3150
|
- // couponProvider.coupons)
|
|
|
|
3151
|
- // };
|
|
|
|
3152
|
- // bool isSuc = await couponProvider
|
|
|
|
3153
|
- // .setActivityAsReserve(context, params);
|
|
|
|
3154
|
- // if (isSuc) {
|
|
|
|
3155
|
- // couponProvider.hasModify = true;
|
|
|
|
3156
|
-
|
|
|
|
3157
|
- // bool isSuccess =
|
|
|
|
3158
|
- // await Utils.goShareInvicationToWeChat(
|
|
|
|
3159
|
- // widget.rid,
|
|
|
|
3160
|
- // Provider.of<UserModel>(context,
|
|
|
|
3161
|
- // listen: false)
|
|
|
|
3162
|
- // .user
|
|
|
|
3163
|
- // .openid);
|
|
|
|
3164
|
- // print(isSuccess);
|
|
|
|
3165
|
- // if (isSuccess) {
|
|
|
|
3166
|
- // _addForward();
|
|
|
|
3167
|
- // }
|
|
|
|
3168
|
- // // couponProvider.couponsShow = [];
|
|
|
|
3169
|
- // // couponProvider.couponsShow
|
|
|
|
3170
|
- // // .addAll(couponProvider.coupons);
|
|
|
|
3171
|
- // // couponProvider.coupons = [];
|
|
|
|
3172
|
- // // couponProvider.notifyListeners();
|
|
|
|
3173
|
- // }
|
|
|
|
3174
|
- // } else {
|
|
|
|
3175
|
- // bool isSuccess =
|
|
|
|
3176
|
- // await Utils.goShareInvicationToWeChat(
|
|
|
|
3177
|
- // widget.rid,
|
|
|
|
3178
|
- // Provider.of<UserModel>(context,
|
|
|
|
3179
|
- // listen: false)
|
|
|
|
3180
|
- // .user
|
|
|
|
3181
|
- // .openid);
|
|
|
|
3182
|
- // if (isSuccess) {
|
|
|
|
3183
|
- // _addForward();
|
|
|
|
3184
|
- // }
|
|
|
|
3185
|
- // }
|
|
|
|
3186
|
- // },
|
|
|
|
3187
|
- // ),
|
|
|
|
3188
|
- // VEmptyView(20),
|
|
|
|
3189
|
- // Stack(children: [
|
|
|
|
3190
|
- // Container(
|
|
|
|
3191
|
- // margin: EdgeInsets.only(
|
|
|
|
3192
|
- // top: ScreenUtil().setWidth(10),
|
|
|
|
3193
|
- // right: ScreenUtil().setWidth(6)),
|
|
|
|
3194
|
- // child: RoundButton(
|
|
|
|
3195
|
- // text: '发短信',
|
|
|
|
3196
|
- // width: double.infinity,
|
|
|
|
3197
|
- // height: ScreenUtil().setWidth(84),
|
|
|
|
3198
|
- // gradientStart: MyColours.color_ffffff,
|
|
|
|
3199
|
- // gradientEnd: MyColours.color_ffffff,
|
|
|
|
3200
|
- // textColor: MyColours.color_199095,
|
|
|
|
3201
|
- // borderColor: MyColours.color_199095,
|
|
|
|
3202
|
- // fontSize: 34,
|
|
|
|
3203
|
- // radius: ScreenUtil().setWidth(10),
|
|
|
|
3204
|
- // isBold: false,
|
|
|
|
3205
|
- // onPressed: () async {
|
|
|
|
3206
|
- // if (reserverPhone == null ||
|
|
|
|
3207
|
- // reserverPhone.isEmpty) {
|
|
|
|
3208
|
- // //跳转到录入联系人页面
|
|
|
|
3209
|
- // String temp =
|
|
|
|
3210
|
- // await NavigatorUtil.goEditReserverPage(
|
|
|
|
3211
|
- // context,
|
|
|
|
3212
|
- // widget.rid,
|
|
|
|
3213
|
- // widget.name,
|
|
|
|
3214
|
- // widget.sex,
|
|
|
|
3215
|
- // needBtn: true);
|
|
|
|
3216
|
- // if (temp != null) {
|
|
|
|
3217
|
- // reserverPhone = temp;
|
|
|
|
3218
|
- // }
|
|
|
|
3219
|
- // } else if (!Utils.phoneRegExp(
|
|
|
|
3220
|
- // reserverPhone)) {
|
|
|
|
3221
|
- // Utils.showToast('手机号错误,请修改正确');
|
|
|
|
3222
|
- // //跳转到录入联系人页面
|
|
|
|
3223
|
- // String temp =
|
|
|
|
3224
|
- // await NavigatorUtil.goEditReserverPage(
|
|
|
|
3225
|
- // context,
|
|
|
|
3226
|
- // widget.rid,
|
|
|
|
3227
|
- // widget.name,
|
|
|
|
3228
|
- // widget.sex,
|
|
|
|
3229
|
- // needBtn: true);
|
|
|
|
3230
|
- // if (temp != null) {
|
|
|
|
3231
|
- // reserverPhone = temp;
|
|
|
|
3232
|
- // }
|
|
|
|
3233
|
- // } else {
|
|
|
|
3234
|
- // if (!couponProvider.sendSMS) {
|
|
|
|
3235
|
- // /*
|
|
|
|
3236
|
- // String dateSoltStr = '';
|
|
|
|
3237
|
- // if (widget.dateSolt == '1') {
|
|
|
|
3238
|
- // dateSoltStr = '早餐';
|
|
|
|
3239
|
- // } else if (widget.dateSolt == '2') {
|
|
|
|
3240
|
- // dateSoltStr = '午餐';
|
|
|
|
3241
|
- // } else if (widget.dateSolt == '3') {
|
|
|
|
3242
|
- // dateSoltStr = '晚餐';
|
|
|
|
3243
|
- // }
|
|
|
|
3244
|
- // DateTime dateTimeTemp =
|
|
|
|
3245
|
- // DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
3246
|
- // int.parse(widget.ddate) * 1000);
|
|
|
|
3247
|
- // String dateTimeStrTemp =
|
|
|
|
3248
|
- // "${Utils.addZeroNumber(dateTimeTemp.month)}月${Utils.addZeroNumber(dateTimeTemp.day)}日";
|
|
|
|
3249
|
- // Map<String, String> params = {
|
|
|
|
3250
|
- // "id": widget.rid,
|
|
|
|
3251
|
- // "uid": Provider.of<UserModel>(context,
|
|
|
|
3252
|
- // listen: false)
|
|
|
|
3253
|
- // .user
|
|
|
|
3254
|
- // .openid,
|
|
|
|
3255
|
- // "phone": widget.phone,
|
|
|
|
3256
|
-
|
|
|
|
3257
|
- // // "Strtext": user.sellername +
|
|
|
|
3258
|
- // // dateTimeStrTemp +
|
|
|
|
3259
|
- // // dateSoltStr +
|
|
|
|
3260
|
- // // ',' +
|
|
|
|
3261
|
- // // '餐厅经理' +
|
|
|
|
3262
|
- // // _baseIndoProvider.baseInfoSunModel.name +
|
|
|
|
3263
|
- // // '已为您安排在' +
|
|
|
|
3264
|
- // // widget.tableInfo.replaceAll("\n", "")
|
|
|
|
3265
|
- // };
|
|
|
|
3266
|
- // if (ObjectUtil.isNotEmpty(_baseIndoProvider
|
|
|
|
3267
|
- // .baseInfoSunModel) &&
|
|
|
|
3268
|
- // ObjectUtil.isNotEmpty(_baseIndoProvider
|
|
|
|
3269
|
- // .baseInfoSunModel.name)) {
|
|
|
|
3270
|
- // params['Strtext'] = user.sellername +
|
|
|
|
3271
|
- // _baseIndoProvider
|
|
|
|
3272
|
- // .baseInfoSunModel.name;
|
|
|
|
3273
|
- // } else {
|
|
|
|
3274
|
- // params['Strtext'] = user.sellername;
|
|
|
|
3275
|
- // }
|
|
|
|
3276
|
- // */
|
|
|
|
3277
|
- // UserModel userModel =
|
|
|
|
3278
|
- // Provider.of<UserModel>(context,
|
|
|
|
3279
|
- // listen: false);
|
|
|
|
3280
|
- // Map<String, String> params = {
|
|
|
|
3281
|
- // "rid": widget.rid,
|
|
|
|
3282
|
- // "sid": userModel.user.sellerid
|
|
|
|
3283
|
- // };
|
|
|
|
3284
|
- // bool success = await couponProvider
|
|
|
|
3285
|
- // .sendSMSWxSendSms(context, params);
|
|
|
|
3286
|
- // print(success);
|
|
|
|
3287
|
- // // if (success) {
|
|
|
|
3288
|
- // // Utils.showToast('短信已经发送成功!');
|
|
|
|
3289
|
- // // } else {
|
|
|
|
3290
|
- // // Utils.showToast('发送次数太频繁!');
|
|
|
|
3291
|
- // // }
|
|
|
|
3292
|
- // } else {
|
|
|
|
3293
|
- // Utils.showToast('短信已经发送成功!');
|
|
|
|
3294
|
- // }
|
|
|
|
3295
|
- // }
|
|
|
|
3296
|
-
|
|
|
|
3297
|
- // // _sendSms();
|
|
|
|
3298
|
-
|
|
|
|
3299
|
- // // NavigatorUtil.goSmsPage(context, widget.rid);
|
|
|
|
3300
|
- // },
|
|
|
|
3301
|
- // )),
|
|
|
|
3302
|
- // Positioned(
|
|
|
|
3303
|
- // top: 0,
|
|
|
|
3304
|
- // right: 0,
|
|
|
|
3305
|
- // child: Container(
|
|
|
|
3306
|
- // // padding: EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(16),vertical: ScreenUtil().setWidth(4)),
|
|
|
|
3307
|
- // padding: EdgeInsets.only(
|
|
|
|
3308
|
- // bottom: ScreenUtil().setWidth(6)),
|
|
|
|
3309
|
- // alignment: Alignment.center,
|
|
|
|
3310
|
- // width: ScreenUtil().setWidth(62 * 2),
|
|
|
|
3311
|
- // height: ScreenUtil().setWidth(42),
|
|
|
|
3312
|
- // decoration: BoxDecoration(
|
|
|
|
3313
|
- // // color: Colors.red,
|
|
|
|
3314
|
- // image: DecorationImage(
|
|
|
|
3315
|
- // image: ExactAssetImage(
|
|
|
|
3316
|
- // Utils.getImgPath('sms_bg'),
|
|
|
|
3317
|
- // ),
|
|
|
|
3318
|
- // fit: BoxFit.cover,
|
|
|
|
3319
|
- // ),
|
|
|
|
3320
|
- // ),
|
|
|
|
3321
|
- // child: Text(
|
|
|
|
3322
|
- // '免费短信',
|
|
|
|
3323
|
- // style: TextStyle(
|
|
|
|
3324
|
- // color: MyColours.color_fefefe,
|
|
|
|
3325
|
- // fontSize: ScreenUtil().setSp(24)),
|
|
|
|
3326
|
- // )),
|
|
|
|
3327
|
- // )
|
|
|
|
3328
|
- // ])
|
|
|
|
3329
|
- // ])),
|
|
|
|
3330
|
- // ]),
|
|
|
|
3331
|
- // Positioned(
|
|
|
|
3332
|
- // // left: ScreenUtil().setWidth(180),
|
|
|
|
3333
|
- // bottom: ScreenUtil().setWidth(124 * 2),
|
|
|
|
3334
|
- // right: ScreenUtil().setWidth(52 * 2),
|
|
|
|
3335
|
- // child: couponProvider.hasModify ||
|
|
|
|
3336
|
- // couponProvider.coupons.length > 0 ||
|
|
|
|
3337
|
- // couponProvider.couponListSelect.length > 0
|
|
|
|
3338
|
- // ? GestureDetector(
|
|
|
|
3339
|
- // onTap: () async {
|
|
|
|
3340
|
- // NavigatorUtil.goCouponSelectPage(context,
|
|
|
|
3341
|
- // from: 'other',
|
|
|
|
3342
|
- // hasModify: couponProvider.hasModify);
|
|
|
|
3343
|
- // },
|
|
|
|
3344
|
- // behavior: HitTestBehavior.opaque,
|
|
|
|
3345
|
- // child: Column(
|
|
|
|
3346
|
- // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
3347
|
- // children: [
|
|
|
|
3348
|
- // Container(
|
|
|
|
3349
|
- // padding: EdgeInsets.symmetric(
|
|
|
|
3350
|
- // horizontal: ScreenUtil().setWidth(40),
|
|
|
|
3351
|
- // vertical: ScreenUtil().setWidth(16)),
|
|
|
|
3352
|
- // height: ScreenUtil().setWidth(35 * 2),
|
|
|
|
3353
|
- // decoration: BoxDecoration(
|
|
|
|
3354
|
- // color: Color.fromRGBO(0, 0, 0, 0.5),
|
|
|
|
3355
|
- // borderRadius: BorderRadius.circular(
|
|
|
|
3356
|
- // ScreenUtil().setWidth(20))),
|
|
|
|
3357
|
- // child: Row(
|
|
|
|
3358
|
- // children: [
|
|
|
|
3359
|
- // Text(
|
|
|
|
3360
|
- // '并赠送给顾客${couponProvider.coupons.length}张优惠券',
|
|
|
|
3361
|
- // textAlign: TextAlign.center,
|
|
|
|
3362
|
- // style: TextStyle(
|
|
|
|
3363
|
- // color: MyColours.color_f5f5f5,
|
|
|
|
3364
|
- // fontWeight: FontWeight.bold,
|
|
|
|
3365
|
- // fontSize: ScreenUtil().setSp(28),
|
|
|
|
3366
|
- // ),
|
|
|
|
3367
|
- // ),
|
|
|
|
3368
|
- // HEmptyView(40),
|
|
|
|
3369
|
- // RoundButton(
|
|
|
|
3370
|
- // width: ScreenUtil().setWidth(124),
|
|
|
|
3371
|
- // height: ScreenUtil().setWidth(46),
|
|
|
|
3372
|
- // text: '点击查看',
|
|
|
|
3373
|
- // textColor: MyColours.color_FDA31D,
|
|
|
|
3374
|
- // fontSize: 24,
|
|
|
|
3375
|
- // isBold: true,
|
|
|
|
3376
|
- // radius: ScreenUtil().setWidth(10),
|
|
|
|
3377
|
- // gradientStart: MyColours.color_f5f5f5,
|
|
|
|
3378
|
- // gradientEnd: MyColours.color_f5f5f5,
|
|
|
|
3379
|
- // onPressed: () async {
|
|
|
|
3380
|
- // NavigatorUtil.goCouponSelectPage(
|
|
|
|
3381
|
- // context,
|
|
|
|
3382
|
- // from: 'other',
|
|
|
|
3383
|
- // hasModify:
|
|
|
|
3384
|
- // couponProvider.hasModify);
|
|
|
|
3385
|
- // },
|
|
|
|
3386
|
- // )
|
|
|
|
3387
|
- // ],
|
|
|
|
3388
|
- // )),
|
|
|
|
3389
|
- // Image.asset(Utils.getImgPath('jian'),
|
|
|
|
3390
|
- // width: ScreenUtil().setWidth(28),
|
|
|
|
3391
|
- // height: ScreenUtil().setWidth(20))
|
|
|
|
3392
|
- // ],
|
|
|
|
3393
|
- // ))
|
|
|
|
3394
|
- // : Container(),
|
|
|
|
3395
|
- // )
|
|
|
|
3396
|
- // ],
|
|
|
|
3397
|
- // )
|
|
|
|
3398
|
)));
|
2831
|
)));
|
|
3399
|
}
|
2832
|
}
|
|
3400
|
} |
2833
|
} |