|
...
|
...
|
@@ -127,6 +127,13 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
|
|
itemBuilder: (context, index) {
|
|
|
|
MealListSunModel sunModel =
|
|
|
|
storeBaseInfoP.mealListData![index];
|
|
|
|
bool select = false;
|
|
|
|
if (sunModel.type == '1') {
|
|
|
|
select =
|
|
|
|
sunModel.status == '1' && '${sunModel.isFlag}' != '1';
|
|
|
|
} else if (sunModel.type == '2') {
|
|
|
|
select = sunModel.status == '1';
|
|
|
|
}
|
|
|
|
String dateSel = sunModel.type == '1'
|
|
|
|
? sunModel.dateSel!.split(',').map((e) {
|
|
|
|
String str = e.replaceAll(' ', '');
|
|
...
|
...
|
@@ -142,7 +149,9 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
|
|
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if ('${sunModel.isFlag}' != '1') {
|
|
|
|
if (('${sunModel.isFlag}' != '1' &&
|
|
|
|
sunModel.type == '1') ||
|
|
|
|
sunModel.type == '2') {
|
|
|
|
NavigatorUtil.goBookTimeSettingEditPage(context,
|
|
|
|
sunModel: sunModel);
|
|
|
|
}
|
|
...
|
...
|
@@ -167,8 +176,7 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
|
|
EdgeInsets.symmetric(horizontal: w(12)),
|
|
|
|
height: w(33),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: sunModel.status == '1' &&
|
|
|
|
'${sunModel.isFlag}' != '1'
|
|
|
|
color: select
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_999999,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
...
|
...
|
@@ -185,7 +193,9 @@ class _BookTimeSettingListPageState extends State<BookTimeSettingListPage> { |
|
|
|
fontSize: font(18),
|
|
|
|
color: MyColours.color_ffffff),
|
|
|
|
),
|
|
|
|
if ('${sunModel.isFlag}' != '1')
|
|
|
|
if (('${sunModel.isFlag}' != '1' &&
|
|
|
|
sunModel.type == '1') ||
|
|
|
|
sunModel.type == '2')
|
|
|
|
RoundButton(
|
|
|
|
width: w(32),
|
|
|
|
height: w(19),
|
...
|
...
|
|