修复 预约时段不显示的问题

hmxc
张萌 4 years ago
parent 7bc3dc08e9
commit a71d7a7633

@ -180,7 +180,7 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
BotToast.showText(text: '预约成功'); BotToast.showText(text: '预约成功');
Get.back(result: true); Get.back(result: true);
} else if (model.message == '该时段已被预约') { } else if (model.message == '该时段已被预约') {
Get.dialog(_hasBeenOrder()); await Get.dialog(_hasBeenOrder());
} else { } else {
BotToast.showText(text: '预约失败'); BotToast.showText(text: '预约失败');
} }
@ -209,19 +209,19 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
Widget _hasBeenOrder() { Widget _hasBeenOrder() {
return CupertinoAlertDialog( return CupertinoAlertDialog(
title: '此设施已被预约'.text.size(32.sp).bold.color(ktextPrimary).make(), title: '此设施已被预约'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(),
content: '是否查看此设施已被预约时段?'.text.size(28.sp).color(ktextPrimary).make(), content: '是否查看此设施已被预约时段?'.text.size(28.sp).color(ktextPrimary).isIntrinsic.make(),
actions: [ actions: [
CupertinoActionSheetAction( CupertinoActionSheetAction(
onPressed: () { onPressed: () {
Get.back(); Get.back();
}, },
child: '取消'.text.size(26.sp).color(ktextPrimary).make()), child: '取消'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make()),
CupertinoActionSheetAction( CupertinoActionSheetAction(
onPressed: () { onPressed: () {
Get.to(() => FacilityOrderDateListPage(facilitiesId: widget.id)); Get.off(() => FacilityOrderDateListPage(facilitiesId: typeModel!.id));
}, },
child: '查看'.text.size(26.sp).color(kPrimaryColor).make()), child: '查看'.text.size(30.sp).color(kPrimaryColor).isIntrinsic.make()),
], ],
); );
} }

@ -51,6 +51,7 @@ class _FacilityOrderDateListPageState extends State<FacilityOrderDateListPage> {
}, },
builder: (items) { builder: (items) {
return ListView.separated( return ListView.separated(
padding: EdgeInsets.all(32.w),
itemBuilder: (context, index) { itemBuilder: (context, index) {
return _buildCard(items[index]); return _buildCard(items[index]);
}, },

Loading…
Cancel
Save