Commit ee44aae1014b0b8fc3baec141c33a9e6b094aa63

Authored by wdn127929
1 parent b6a2a112

桌位页面餐段默认null

@@ -2147,38 +2147,38 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { @@ -2147,38 +2147,38 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> {
2147 ], 2147 ],
2148 )), 2148 )),
2149 VEmptyView(34), 2149 VEmptyView(34),
2150 - InkWell(  
2151 - onTap: () {  
2152 - NavigatorUtil.goBookTimeSettingListPage(  
2153 - context);  
2154 - },  
2155 - child: Padding(  
2156 - padding: EdgeInsets.symmetric(  
2157 - horizontal: ScreenUtil().setWidth(24)),  
2158 - child: Container(  
2159 - height: ScreenUtil().setWidth(40),  
2160 - child: Row(  
2161 - crossAxisAlignment:  
2162 - CrossAxisAlignment.center,  
2163 - mainAxisAlignment:  
2164 - MainAxisAlignment.spaceBetween,  
2165 - children: [  
2166 - Text('指定日期多时段预订设置',  
2167 - style: TextStyle(  
2168 - color: MyColours.color_999999,  
2169 - fontSize:  
2170 - ScreenUtil().setSp(28),  
2171 - )),  
2172 - Spacer(),  
2173 - Image.asset(  
2174 - Utils.getImgPath('arrow_right_new'),  
2175 - width: ScreenUtil().setWidth(16),  
2176 - height: ScreenUtil().setWidth(28),  
2177 - )  
2178 - ],  
2179 - ),  
2180 - ))),  
2181 - VEmptyView(96), 2150 + // InkWell(
  2151 + // onTap: () {
  2152 + // NavigatorUtil.goBookTimeSettingListPage(
  2153 + // context);
  2154 + // },
  2155 + // child: Padding(
  2156 + // padding: EdgeInsets.symmetric(
  2157 + // horizontal: ScreenUtil().setWidth(24)),
  2158 + // child: Container(
  2159 + // height: ScreenUtil().setWidth(40),
  2160 + // child: Row(
  2161 + // crossAxisAlignment:
  2162 + // CrossAxisAlignment.center,
  2163 + // mainAxisAlignment:
  2164 + // MainAxisAlignment.spaceBetween,
  2165 + // children: [
  2166 + // Text('指定日期多时段预订设置',
  2167 + // style: TextStyle(
  2168 + // color: MyColours.color_999999,
  2169 + // fontSize:
  2170 + // ScreenUtil().setSp(28),
  2171 + // )),
  2172 + // Spacer(),
  2173 + // Image.asset(
  2174 + // Utils.getImgPath('arrow_right_new'),
  2175 + // width: ScreenUtil().setWidth(16),
  2176 + // height: ScreenUtil().setWidth(28),
  2177 + // )
  2178 + // ],
  2179 + // ),
  2180 + // ))),
  2181 + // VEmptyView(96),
2182 Text('接单时间', 2182 Text('接单时间',
2183 style: TextStyle( 2183 style: TextStyle(
2184 fontWeight: FontWeight.bold, 2184 fontWeight: FontWeight.bold,
@@ -158,7 +158,7 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -158,7 +158,7 @@ class TableManagerPageState extends State<TableManagerPage> {
158 158
159 String dateText = ""; //当前显示日期时间 159 String dateText = ""; //当前显示日期时间
160 String dateShowNow = ""; //今天,明天,后天 160 String dateShowNow = ""; //今天,明天,后天
161 - int currTimeIndex = 2; //当前选中时间段 161 + int currTimeIndex; //当前选中时间段
162 String morning = "00:00-00:00"; //早市时间段 162 String morning = "00:00-00:00"; //早市时间段
163 String noon = "00:00-00:00"; //午市时间段 163 String noon = "00:00-00:00"; //午市时间段
164 String night = "00:00-00:00"; //晚市时间段 164 String night = "00:00-00:00"; //晚市时间段
@@ -2674,6 +2674,10 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -2674,6 +2674,10 @@ class TableManagerPageState extends State<TableManagerPage> {
2674 radius: ScreenUtil().setWidth(8), 2674 radius: ScreenUtil().setWidth(8),
2675 isBold: false, 2675 isBold: false,
2676 onPressed: () async { 2676 onPressed: () async {
  2677 + if(currTimeIndex == null){
  2678 + Utils.showToast('请选择餐段或检查您的网络!');
  2679 + return;
  2680 + }
2677 // _onlyReserve(); 2681 // _onlyReserve();
2678 Loading.showLoading( 2682 Loading.showLoading(
2679 context, 2683 context,
@@ -2724,6 +2728,10 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -2724,6 +2728,10 @@ class TableManagerPageState extends State<TableManagerPage> {
2724 radius: ScreenUtil().setWidth(8), 2728 radius: ScreenUtil().setWidth(8),
2725 isBold: false, 2729 isBold: false,
2726 onPressed: () async { 2730 onPressed: () async {
  2731 + if(currTimeIndex == null){
  2732 + Utils.showToast('请选择餐段或检查您的网络!');
  2733 + return;
  2734 + }
2727 Loading.showLoading( 2735 Loading.showLoading(
2728 context, 2736 context,
2729 ); 2737 );