diff --git a/lib/settlement/settlement.dart b/lib/settlement/settlement.dart index 1e28bf20..58a502c4 100644 --- a/lib/settlement/settlement.dart +++ b/lib/settlement/settlement.dart @@ -335,7 +335,7 @@ class _Settlement extends State { baseData?.isSuccess ?? false ? SmartDialog.showToast("下单失败:订单实付金额不能为0", alignment: Alignment.center) - : SmartDialog.showToast(baseData.msg, alignment: Alignment.center); + : SmartDialog.showToast(baseData?.msg ?? "", alignment: Alignment.center); } } else { ///火锅店下单, 等待结算 diff --git a/lib/store/shopping/shopping_home/bargain_details.dart b/lib/store/shopping/shopping_home/bargain_details.dart index 3757b6ff..83de3eab 100644 --- a/lib/store/shopping/shopping_home/bargain_details.dart +++ b/lib/store/shopping/shopping_home/bargain_details.dart @@ -57,14 +57,13 @@ class _BargainDetails extends State { } } - - @override void initState() { super.initState(); actRecordId = widget.arguments["actRecordId"]; limitNumber = widget.arguments["limitNumber"]; storeInfo = widget.arguments["storeInfo"]; + // skuId = widget.arguments["skuId"]; startCountdownTimer(); SharedPreferences.getInstance().then((value) { String minToken = value.getString("minToken");