|
|
|
@ -8,6 +8,9 @@ import 'package:huixiang/retrofit/data/min_order_info.dart';
|
|
|
|
|
import 'package:huixiang/retrofit/data/settleOrderInfo.dart'; |
|
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
import 'package:intl/intl.dart'; |
|
|
|
|
|
|
|
|
|
import '../../view_widget/cupertino_date_picker.dart'; |
|
|
|
|
|
|
|
|
|
class ActivityCouponRemarks extends StatefulWidget { |
|
|
|
|
final Function() couponCart; |
|
|
|
@ -290,6 +293,7 @@ class _ActivityCouponRemarks extends State<ActivityCouponRemarks> {
|
|
|
|
|
), |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
showDateSelector(); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
@ -329,6 +333,20 @@ class _ActivityCouponRemarks extends State<ActivityCouponRemarks> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///立即预约时间选择 |
|
|
|
|
showDateSelector() async { |
|
|
|
|
DateTime dateTime = await showModalBottomSheet( |
|
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
|
context: context, |
|
|
|
|
builder: (_) { |
|
|
|
|
return CupertinoDatePickerWidget(); |
|
|
|
|
}); |
|
|
|
|
if (dateTime != null) { |
|
|
|
|
String time = DateFormat("yyyy-MM-dd").format(dateTime) ; |
|
|
|
|
setState(() {}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String activityText() { |
|
|
|
|
String promotion = ""; |
|
|
|
|
if (widget.promotions == null || widget.promotions == "") { |
|
|
|
|