Commit 8669a65e5721d46918641e192261da23397a82ef

Authored by wdn127929
1 parent 73a6d28a

多时段打包测试

... ... @@ -36,11 +36,6 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
late UserModel userModel;
// DateTime? dateTimeNow; //当前日期
String? morning; //早市时间段
String? noon; //午市时间段
String? night; //晚市时间段
String? meal1; //晚市时间段
String? meal2; //晚市时间段
int timeIndex = 0; //当前时段
int enableIndex = 0; //最早可用时段
... ... @@ -102,6 +97,11 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
//初始化时间
initTimeTable({bool needInit = true}) {
String? morning = "00:00-00:00"; //早市时间段
String? noon="00:00-00:00"; //午市时间段
String? night="00:00-00:00"; //晚市时间段
String? meal1="00:00-00:00"; //晚市时间段
String? meal2="00:00-00:00"; //晚市时间段
if (storeBaseIndoProvider.dayDateData != null &&
storeBaseIndoProvider.dayDateData!.length > 0) {
pageState = PageState.Success;
... ... @@ -240,9 +240,9 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
Widget _buildShiduan() {
return Container(
padding: EdgeInsets.only(
left: ScreenUtil().setWidth(30),
left: ScreenUtil().setWidth(20),
top: ScreenUtil().setWidth(60),
right: ScreenUtil().setWidth(30)),
right: ScreenUtil().setWidth(20)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
... ... @@ -250,7 +250,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
children: <Widget>[
Container(
height: ScreenUtil().setWidth(90),
width: ScreenUtil().setWidth(690),
width: double.infinity,
decoration: BoxDecoration(
color: MyColours.color_ffffff,
border: Border.all(
... ... @@ -261,7 +261,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
),
Container(
height: ScreenUtil().setWidth(90),
width: ScreenUtil().setWidth(690),
width: double.infinity,
child: Flex(
direction: Axis.horizontal,
children: <Widget>[
... ... @@ -305,7 +305,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
.mname ??
'',
style: TextStyle(
fontSize: ScreenUtil().setSp(30),
fontSize: ScreenUtil().setSp(26),
color: enableIndex > 0
? MyColours.color_999999
: timeIndex == 0
... ... @@ -318,7 +318,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
Text(
"${daily["morning"]}",
style: TextStyle(
fontSize: ScreenUtil().setSp(24),
fontSize: ScreenUtil().setSp(20),
color: enableIndex > 0
? MyColours.color_999999
: timeIndex == 0
... ... @@ -372,7 +372,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
.mname ??
'',
style: TextStyle(
fontSize: ScreenUtil().setSp(30),
fontSize: ScreenUtil().setSp(26),
color: enableIndex > 1
? MyColours.color_999999
: timeIndex == 1
... ... @@ -385,7 +385,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
Text(
"${daily["noon"]}",
style: TextStyle(
fontSize: ScreenUtil().setSp(24),
fontSize: ScreenUtil().setSp(20),
color: enableIndex > 1
? MyColours.color_999999
: timeIndex == 1
... ... @@ -439,7 +439,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
.mname ??
'',
style: TextStyle(
fontSize: ScreenUtil().setSp(30),
fontSize: ScreenUtil().setSp(26),
color: enableIndex > 2
? MyColours.color_999999
: timeIndex == 2
... ... @@ -452,7 +452,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
Text(
"${daily["night"]}",
style: TextStyle(
fontSize: ScreenUtil().setSp(24),
fontSize: ScreenUtil().setSp(20),
color: enableIndex > 2
? MyColours.color_999999
: timeIndex == 2
... ... @@ -506,7 +506,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
.mname ??
'',
style: TextStyle(
fontSize: ScreenUtil().setSp(30),
fontSize: ScreenUtil().setSp(26),
color: enableIndex > 3
? MyColours.color_999999
: timeIndex == 3
... ... @@ -519,7 +519,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
Text(
"${daily["meal1"]}",
style: TextStyle(
fontSize: ScreenUtil().setSp(24),
fontSize: ScreenUtil().setSp(20),
color: enableIndex > 3
? MyColours.color_999999
: timeIndex == 3
... ... @@ -573,7 +573,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
.mname ??
'',
style: TextStyle(
fontSize: ScreenUtil().setSp(30),
fontSize: ScreenUtil().setSp(26),
color: enableIndex > 4
? MyColours.color_999999
: timeIndex == 4
... ... @@ -586,7 +586,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
Text(
"${daily["meal2"]}",
style: TextStyle(
fontSize: ScreenUtil().setSp(24),
fontSize: ScreenUtil().setSp(20),
color: enableIndex > 4
? MyColours.color_999999
: timeIndex == 4
... ... @@ -690,7 +690,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> {
selectedDay, _selectDateTime)) {
//不是一天
_selectDateTime = selectedDay;
_currTimeIndex();
getMealSectionByDay();
_getSellerTableClass();
}
},
... ...