|
...
|
...
|
@@ -8,6 +8,7 @@ import 'package:one_key/provider/update_model.dart'; |
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/utils/dialog_util.dart';
|
|
|
|
import 'package:one_key/utils/log_util.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
import 'package:one_key/widgets/app_bar.dart';
|
|
...
|
...
|
@@ -306,71 +307,62 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
children: <Widget>[
|
|
|
|
Offstage(
|
|
|
|
offstage: morning == "00:00-00:00" ? true : false,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (currTimeIndex == 1) return;
|
|
|
|
setState(() {
|
|
|
|
currTimeIndex = 1;
|
|
|
|
});
|
|
|
|
_getReserveList();
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "早市",
|
|
|
|
state: currTimeIndex == 1 ? 1 : 0,
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
height: ScreenUtil().setHeight(100),
|
|
|
|
fontSize: 32,
|
|
|
|
onPress: () {
|
|
|
|
if (currTimeIndex == 1) return;
|
|
|
|
setState(() {
|
|
|
|
currTimeIndex = 1;
|
|
|
|
});
|
|
|
|
_getReserveList();
|
|
|
|
},
|
|
|
|
))
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: noon == "00:00-00:00" ? true : false,
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "早市",
|
|
|
|
state: currTimeIndex == 1 ? 1 : 0,
|
|
|
|
content: "午市",
|
|
|
|
state: currTimeIndex == 2 ? 1 : 0,
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
height: ScreenUtil().setHeight(100),
|
|
|
|
fontSize: 32,
|
|
|
|
onPress: () {},
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: noon == "00:00-00:00" ? true : false,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (currTimeIndex == 2) return;
|
|
|
|
setState(() {
|
|
|
|
currTimeIndex = 2;
|
|
|
|
});
|
|
|
|
_getReserveList();
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "午市",
|
|
|
|
state: currTimeIndex == 2 ? 1 : 0,
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
height: ScreenUtil().setHeight(100),
|
|
|
|
fontSize: 32,
|
|
|
|
onPress: () {},
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
onPress: () {
|
|
|
|
if (currTimeIndex == 2) return;
|
|
|
|
setState(() {
|
|
|
|
currTimeIndex = 2;
|
|
|
|
});
|
|
|
|
_getReserveList();
|
|
|
|
},
|
|
|
|
))),
|
|
|
|
Offstage(
|
|
|
|
offstage: night == "00:00-00:00" ? true : false,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (currTimeIndex == 3) return;
|
|
|
|
setState(() {
|
|
|
|
currTimeIndex = 3;
|
|
|
|
});
|
|
|
|
_getReserveList();
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "晚市",
|
|
|
|
state: currTimeIndex == 3 ? 1 : 0,
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
height: ScreenUtil().setHeight(100),
|
|
|
|
fontSize: 32,
|
|
|
|
onPress: () {},
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
child: CommonButton(
|
|
|
|
content: "晚市",
|
|
|
|
state: currTimeIndex == 3 ? 1 : 0,
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
height: ScreenUtil().setHeight(100),
|
|
|
|
fontSize: 32,
|
|
|
|
onPress: () {
|
|
|
|
if (currTimeIndex == 3) return;
|
|
|
|
setState(() {
|
|
|
|
currTimeIndex = 3;
|
|
|
|
});
|
|
|
|
_getReserveList();
|
|
|
|
},
|
|
|
|
)),),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
...
|
...
|
|