Showing
1 changed file
with
20 additions
and
20 deletions
| @@ -36,11 +36,6 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -36,11 +36,6 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 36 | 36 | ||
| 37 | late UserModel userModel; | 37 | late UserModel userModel; |
| 38 | // DateTime? dateTimeNow; //当前日期 | 38 | // DateTime? dateTimeNow; //当前日期 |
| 39 | - String? morning; //早市时间段 | ||
| 40 | - String? noon; //午市时间段 | ||
| 41 | - String? night; //晚市时间段 | ||
| 42 | - String? meal1; //晚市时间段 | ||
| 43 | - String? meal2; //晚市时间段 | ||
| 44 | 39 | ||
| 45 | int timeIndex = 0; //当前时段 | 40 | int timeIndex = 0; //当前时段 |
| 46 | int enableIndex = 0; //最早可用时段 | 41 | int enableIndex = 0; //最早可用时段 |
| @@ -102,6 +97,11 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -102,6 +97,11 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 102 | 97 | ||
| 103 | //初始化时间 | 98 | //初始化时间 |
| 104 | initTimeTable({bool needInit = true}) { | 99 | initTimeTable({bool needInit = true}) { |
| 100 | + String? morning = "00:00-00:00"; //早市时间段 | ||
| 101 | + String? noon="00:00-00:00"; //午市时间段 | ||
| 102 | + String? night="00:00-00:00"; //晚市时间段 | ||
| 103 | + String? meal1="00:00-00:00"; //晚市时间段 | ||
| 104 | + String? meal2="00:00-00:00"; //晚市时间段 | ||
| 105 | if (storeBaseIndoProvider.dayDateData != null && | 105 | if (storeBaseIndoProvider.dayDateData != null && |
| 106 | storeBaseIndoProvider.dayDateData!.length > 0) { | 106 | storeBaseIndoProvider.dayDateData!.length > 0) { |
| 107 | pageState = PageState.Success; | 107 | pageState = PageState.Success; |
| @@ -240,9 +240,9 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -240,9 +240,9 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 240 | Widget _buildShiduan() { | 240 | Widget _buildShiduan() { |
| 241 | return Container( | 241 | return Container( |
| 242 | padding: EdgeInsets.only( | 242 | padding: EdgeInsets.only( |
| 243 | - left: ScreenUtil().setWidth(30), | 243 | + left: ScreenUtil().setWidth(20), |
| 244 | top: ScreenUtil().setWidth(60), | 244 | top: ScreenUtil().setWidth(60), |
| 245 | - right: ScreenUtil().setWidth(30)), | 245 | + right: ScreenUtil().setWidth(20)), |
| 246 | child: Column( | 246 | child: Column( |
| 247 | crossAxisAlignment: CrossAxisAlignment.start, | 247 | crossAxisAlignment: CrossAxisAlignment.start, |
| 248 | children: <Widget>[ | 248 | children: <Widget>[ |
| @@ -250,7 +250,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -250,7 +250,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 250 | children: <Widget>[ | 250 | children: <Widget>[ |
| 251 | Container( | 251 | Container( |
| 252 | height: ScreenUtil().setWidth(90), | 252 | height: ScreenUtil().setWidth(90), |
| 253 | - width: ScreenUtil().setWidth(690), | 253 | + width: double.infinity, |
| 254 | decoration: BoxDecoration( | 254 | decoration: BoxDecoration( |
| 255 | color: MyColours.color_ffffff, | 255 | color: MyColours.color_ffffff, |
| 256 | border: Border.all( | 256 | border: Border.all( |
| @@ -261,7 +261,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -261,7 +261,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 261 | ), | 261 | ), |
| 262 | Container( | 262 | Container( |
| 263 | height: ScreenUtil().setWidth(90), | 263 | height: ScreenUtil().setWidth(90), |
| 264 | - width: ScreenUtil().setWidth(690), | 264 | + width: double.infinity, |
| 265 | child: Flex( | 265 | child: Flex( |
| 266 | direction: Axis.horizontal, | 266 | direction: Axis.horizontal, |
| 267 | children: <Widget>[ | 267 | children: <Widget>[ |
| @@ -305,7 +305,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -305,7 +305,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 305 | .mname ?? | 305 | .mname ?? |
| 306 | '', | 306 | '', |
| 307 | style: TextStyle( | 307 | style: TextStyle( |
| 308 | - fontSize: ScreenUtil().setSp(30), | 308 | + fontSize: ScreenUtil().setSp(26), |
| 309 | color: enableIndex > 0 | 309 | color: enableIndex > 0 |
| 310 | ? MyColours.color_999999 | 310 | ? MyColours.color_999999 |
| 311 | : timeIndex == 0 | 311 | : timeIndex == 0 |
| @@ -318,7 +318,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -318,7 +318,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 318 | Text( | 318 | Text( |
| 319 | "${daily["morning"]}", | 319 | "${daily["morning"]}", |
| 320 | style: TextStyle( | 320 | style: TextStyle( |
| 321 | - fontSize: ScreenUtil().setSp(24), | 321 | + fontSize: ScreenUtil().setSp(20), |
| 322 | color: enableIndex > 0 | 322 | color: enableIndex > 0 |
| 323 | ? MyColours.color_999999 | 323 | ? MyColours.color_999999 |
| 324 | : timeIndex == 0 | 324 | : timeIndex == 0 |
| @@ -372,7 +372,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -372,7 +372,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 372 | .mname ?? | 372 | .mname ?? |
| 373 | '', | 373 | '', |
| 374 | style: TextStyle( | 374 | style: TextStyle( |
| 375 | - fontSize: ScreenUtil().setSp(30), | 375 | + fontSize: ScreenUtil().setSp(26), |
| 376 | color: enableIndex > 1 | 376 | color: enableIndex > 1 |
| 377 | ? MyColours.color_999999 | 377 | ? MyColours.color_999999 |
| 378 | : timeIndex == 1 | 378 | : timeIndex == 1 |
| @@ -385,7 +385,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -385,7 +385,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 385 | Text( | 385 | Text( |
| 386 | "${daily["noon"]}", | 386 | "${daily["noon"]}", |
| 387 | style: TextStyle( | 387 | style: TextStyle( |
| 388 | - fontSize: ScreenUtil().setSp(24), | 388 | + fontSize: ScreenUtil().setSp(20), |
| 389 | color: enableIndex > 1 | 389 | color: enableIndex > 1 |
| 390 | ? MyColours.color_999999 | 390 | ? MyColours.color_999999 |
| 391 | : timeIndex == 1 | 391 | : timeIndex == 1 |
| @@ -439,7 +439,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -439,7 +439,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 439 | .mname ?? | 439 | .mname ?? |
| 440 | '', | 440 | '', |
| 441 | style: TextStyle( | 441 | style: TextStyle( |
| 442 | - fontSize: ScreenUtil().setSp(30), | 442 | + fontSize: ScreenUtil().setSp(26), |
| 443 | color: enableIndex > 2 | 443 | color: enableIndex > 2 |
| 444 | ? MyColours.color_999999 | 444 | ? MyColours.color_999999 |
| 445 | : timeIndex == 2 | 445 | : timeIndex == 2 |
| @@ -452,7 +452,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -452,7 +452,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 452 | Text( | 452 | Text( |
| 453 | "${daily["night"]}", | 453 | "${daily["night"]}", |
| 454 | style: TextStyle( | 454 | style: TextStyle( |
| 455 | - fontSize: ScreenUtil().setSp(24), | 455 | + fontSize: ScreenUtil().setSp(20), |
| 456 | color: enableIndex > 2 | 456 | color: enableIndex > 2 |
| 457 | ? MyColours.color_999999 | 457 | ? MyColours.color_999999 |
| 458 | : timeIndex == 2 | 458 | : timeIndex == 2 |
| @@ -506,7 +506,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -506,7 +506,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 506 | .mname ?? | 506 | .mname ?? |
| 507 | '', | 507 | '', |
| 508 | style: TextStyle( | 508 | style: TextStyle( |
| 509 | - fontSize: ScreenUtil().setSp(30), | 509 | + fontSize: ScreenUtil().setSp(26), |
| 510 | color: enableIndex > 3 | 510 | color: enableIndex > 3 |
| 511 | ? MyColours.color_999999 | 511 | ? MyColours.color_999999 |
| 512 | : timeIndex == 3 | 512 | : timeIndex == 3 |
| @@ -519,7 +519,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -519,7 +519,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 519 | Text( | 519 | Text( |
| 520 | "${daily["meal1"]}", | 520 | "${daily["meal1"]}", |
| 521 | style: TextStyle( | 521 | style: TextStyle( |
| 522 | - fontSize: ScreenUtil().setSp(24), | 522 | + fontSize: ScreenUtil().setSp(20), |
| 523 | color: enableIndex > 3 | 523 | color: enableIndex > 3 |
| 524 | ? MyColours.color_999999 | 524 | ? MyColours.color_999999 |
| 525 | : timeIndex == 3 | 525 | : timeIndex == 3 |
| @@ -573,7 +573,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -573,7 +573,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 573 | .mname ?? | 573 | .mname ?? |
| 574 | '', | 574 | '', |
| 575 | style: TextStyle( | 575 | style: TextStyle( |
| 576 | - fontSize: ScreenUtil().setSp(30), | 576 | + fontSize: ScreenUtil().setSp(26), |
| 577 | color: enableIndex > 4 | 577 | color: enableIndex > 4 |
| 578 | ? MyColours.color_999999 | 578 | ? MyColours.color_999999 |
| 579 | : timeIndex == 4 | 579 | : timeIndex == 4 |
| @@ -586,7 +586,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -586,7 +586,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 586 | Text( | 586 | Text( |
| 587 | "${daily["meal2"]}", | 587 | "${daily["meal2"]}", |
| 588 | style: TextStyle( | 588 | style: TextStyle( |
| 589 | - fontSize: ScreenUtil().setSp(24), | 589 | + fontSize: ScreenUtil().setSp(20), |
| 590 | color: enableIndex > 4 | 590 | color: enableIndex > 4 |
| 591 | ? MyColours.color_999999 | 591 | ? MyColours.color_999999 |
| 592 | : timeIndex == 4 | 592 | : timeIndex == 4 |
| @@ -690,7 +690,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | @@ -690,7 +690,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { | ||
| 690 | selectedDay, _selectDateTime)) { | 690 | selectedDay, _selectDateTime)) { |
| 691 | //不是一天 | 691 | //不是一天 |
| 692 | _selectDateTime = selectedDay; | 692 | _selectDateTime = selectedDay; |
| 693 | - _currTimeIndex(); | 693 | + getMealSectionByDay(); |
| 694 | _getSellerTableClass(); | 694 | _getSellerTableClass(); |
| 695 | } | 695 | } |
| 696 | }, | 696 | }, |
-
Please register or login to post a comment