|
|
@ -95,6 +95,7 @@ class _Settlement extends State<Settlement> { |
|
|
|
String subTime; |
|
|
|
String subTime; |
|
|
|
int storesIndex = 0; |
|
|
|
int storesIndex = 0; |
|
|
|
String discountType; |
|
|
|
String discountType; |
|
|
|
|
|
|
|
int diningStatus = 4; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
void initState() { |
|
|
|
void initState() { |
|
|
@ -529,7 +530,7 @@ class _Settlement extends State<Settlement> { |
|
|
|
((subscribeParam?.isEnableSubscribe ?? false) == true) |
|
|
|
((subscribeParam?.isEnableSubscribe ?? false) == true) |
|
|
|
? true |
|
|
|
? true |
|
|
|
: false; //是否预约 |
|
|
|
: false; //是否预约 |
|
|
|
placeOrderFirst.isTakeOut = selectedBtn; |
|
|
|
placeOrderFirst.isTakeOut = ((storeInfo?.deliveryInfo?.dineInTakeStatus ?? false) == true) ? diningStatus : selectedBtn; |
|
|
|
placeOrderFirst.notes = remakers + |
|
|
|
placeOrderFirst.notes = remakers + |
|
|
|
(reservationTime ?? "") + |
|
|
|
(reservationTime ?? "") + |
|
|
|
((subscribeParam?.isEnableSubscribe ?? false) == true |
|
|
|
((subscribeParam?.isEnableSubscribe ?? false) == true |
|
|
@ -828,12 +829,15 @@ class _Settlement extends State<Settlement> { |
|
|
|
address, |
|
|
|
address, |
|
|
|
selectedAddress, |
|
|
|
selectedAddress, |
|
|
|
pageType, |
|
|
|
pageType, |
|
|
|
widget.arguments["distance"]), |
|
|
|
widget.arguments["distance"],), |
|
|
|
|
|
|
|
|
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 16, |
|
|
|
height: 16, |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if((storeInfo?.deliveryInfo?.dineInTakeStatus?? false) ==true && settleOrderInfo !=null) |
|
|
|
|
|
|
|
takeStatus(), |
|
|
|
|
|
|
|
|
|
|
|
/// 预留的手机号, 可修改 |
|
|
|
/// 预留的手机号, 可修改 |
|
|
|
// EditPhoneWidget( |
|
|
|
// EditPhoneWidget( |
|
|
|
// storeInfo, |
|
|
|
// storeInfo, |
|
|
@ -1000,6 +1004,141 @@ class _Settlement extends State<Settlement> { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///堂食/打包外带选择 |
|
|
|
|
|
|
|
Widget takeStatus(){ |
|
|
|
|
|
|
|
return Container( |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
|
|
color: Colors.white, |
|
|
|
|
|
|
|
boxShadow: [ |
|
|
|
|
|
|
|
BoxShadow( |
|
|
|
|
|
|
|
color: Color(0x0D000000), |
|
|
|
|
|
|
|
offset: Offset(0, 1), |
|
|
|
|
|
|
|
blurRadius: 8, |
|
|
|
|
|
|
|
spreadRadius: 0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
margin: EdgeInsets.only(left: 16.w, right: 16.w,top:6.h,bottom:6.h), |
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 12.w,vertical:10.h), |
|
|
|
|
|
|
|
child: |
|
|
|
|
|
|
|
Row(children: [ |
|
|
|
|
|
|
|
Expanded(child:GestureDetector( |
|
|
|
|
|
|
|
onTap: (){ |
|
|
|
|
|
|
|
setState((){ |
|
|
|
|
|
|
|
diningStatus = 4; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: Container( |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(6)), |
|
|
|
|
|
|
|
border: Border.all( |
|
|
|
|
|
|
|
width: diningStatus == 4? 2.w:1.w, |
|
|
|
|
|
|
|
color: diningStatus == 4? Color(0xFF32A060):Color(0xFFDEDEDE), |
|
|
|
|
|
|
|
style: BorderStyle.solid, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
color: diningStatus == 4?Color(0xFFEEFFF5):Color(0xFFFFFFFF), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
padding: EdgeInsets.only(top:11.h,bottom: 14.h), |
|
|
|
|
|
|
|
child: Row( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
|
|
|
|
"assets/image/home_he.webp", |
|
|
|
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
|
|
|
width: 21.w, |
|
|
|
|
|
|
|
height: 31.h, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(width:10.w,), |
|
|
|
|
|
|
|
Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
"堂食", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height: 6.h,), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
"店内用餐", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
)), |
|
|
|
|
|
|
|
SizedBox(width: 12.w,), |
|
|
|
|
|
|
|
Expanded(child: GestureDetector( |
|
|
|
|
|
|
|
onTap: (){ |
|
|
|
|
|
|
|
setState((){ |
|
|
|
|
|
|
|
diningStatus = 3; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: Container( |
|
|
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(6)), |
|
|
|
|
|
|
|
border: Border.all( |
|
|
|
|
|
|
|
width: diningStatus == 3? 2.w : 1.w, |
|
|
|
|
|
|
|
color: diningStatus == 3?Color(0xFF32A060):Color(0xFFDEDEDE), |
|
|
|
|
|
|
|
style: BorderStyle.solid, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
color: diningStatus == 3 ?Color(0xFFEEFFF5):Color(0xFFFFFFFF), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
padding: EdgeInsets.only(top:11.h,bottom: 14.h), |
|
|
|
|
|
|
|
child: Row( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
|
|
|
|
"assets/image/dining_w.webp", |
|
|
|
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
|
|
|
width: 24.w, |
|
|
|
|
|
|
|
height: 26.h, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(width:9.w,), |
|
|
|
|
|
|
|
Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
"外带", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height: 6.h,), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
"打包到店取", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
)), |
|
|
|
|
|
|
|
],), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
payChannelCheck(int payChannel) { |
|
|
|
payChannelCheck(int payChannel) { |
|
|
|
this.payChannel = payChannel; |
|
|
|
this.payChannel = payChannel; |
|
|
|
if (tableId > 0) { |
|
|
|
if (tableId > 0) { |
|
|
|