|
@@ -127,6 +127,13 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
@@ -127,6 +127,13 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
127
|
itemBuilder: (context, index) {
|
127
|
itemBuilder: (context, index) {
|
|
128
|
MealListSunModel sunModel =
|
128
|
MealListSunModel sunModel =
|
|
129
|
storeBaseInfoP.mealListData![index];
|
129
|
storeBaseInfoP.mealListData![index];
|
|
|
|
130
|
+ bool select = false;
|
|
|
|
131
|
+ if (sunModel.type == '1') {
|
|
|
|
132
|
+ select =
|
|
|
|
133
|
+ sunModel.status == '1' && '${sunModel.isFlag}' != '1';
|
|
|
|
134
|
+ } else if (sunModel.type == '2') {
|
|
|
|
135
|
+ select = sunModel.status == '1';
|
|
|
|
136
|
+ }
|
|
130
|
String dateSel = sunModel.type == '1'
|
137
|
String dateSel = sunModel.type == '1'
|
|
131
|
? sunModel.dateSel!.split(',').map((e) {
|
138
|
? sunModel.dateSel!.split(',').map((e) {
|
|
132
|
String str = e.replaceAll(' ', '');
|
139
|
String str = e.replaceAll(' ', '');
|
|
@@ -142,7 +149,9 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
@@ -142,7 +149,9 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
142
|
|
149
|
|
|
143
|
return InkWell(
|
150
|
return InkWell(
|
|
144
|
onTap: () {
|
151
|
onTap: () {
|
|
145
|
- if ('${sunModel.isFlag}' != '1') {
|
152
|
+ if (('${sunModel.isFlag}' != '1' &&
|
|
|
|
153
|
+ sunModel.type == '1') ||
|
|
|
|
154
|
+ sunModel.type == '2') {
|
|
146
|
NavigatorUtil.goBookTimeSettingEditPage(context,
|
155
|
NavigatorUtil.goBookTimeSettingEditPage(context,
|
|
147
|
sunModel: sunModel);
|
156
|
sunModel: sunModel);
|
|
148
|
}
|
157
|
}
|
|
@@ -167,8 +176,7 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
@@ -167,8 +176,7 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
167
|
EdgeInsets.symmetric(horizontal: w(12)),
|
176
|
EdgeInsets.symmetric(horizontal: w(12)),
|
|
168
|
height: w(33),
|
177
|
height: w(33),
|
|
169
|
decoration: BoxDecoration(
|
178
|
decoration: BoxDecoration(
|
|
170
|
- color: sunModel.status == '1' &&
|
|
|
|
171
|
- '${sunModel.isFlag}' != '1'
|
179
|
+ color: select
|
|
172
|
? MyColours.color_438E93
|
180
|
? MyColours.color_438E93
|
|
173
|
: MyColours.color_999999,
|
181
|
: MyColours.color_999999,
|
|
174
|
borderRadius: BorderRadius.only(
|
182
|
borderRadius: BorderRadius.only(
|
|
@@ -185,7 +193,9 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
@@ -185,7 +193,9 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
185
|
fontSize: font(18),
|
193
|
fontSize: font(18),
|
|
186
|
color: MyColours.color_ffffff),
|
194
|
color: MyColours.color_ffffff),
|
|
187
|
),
|
195
|
),
|
|
188
|
- if ('${sunModel.isFlag}' != '1')
|
196
|
+ if (('${sunModel.isFlag}' != '1' &&
|
|
|
|
197
|
+ sunModel.type == '1') ||
|
|
|
|
198
|
+ sunModel.type == '2')
|
|
189
|
RoundButton(
|
199
|
RoundButton(
|
|
190
|
width: w(32),
|
200
|
width: w(32),
|
|
191
|
height: w(19),
|
201
|
height: w(19),
|