Browse Source

活动自动选择后端处理部分有问题,

我这边暂时将实现优惠券也自动选择以此来解决她,如果跟优惠券的优惠比活动小的情况下selectDiscount类型就是优惠券,这个时候就获取不到活动id,下一步getOrderInfo接口,也将无法传递活动id实现自动选择活动优惠的情况;
dart3_last
wurong 1 year ago
parent
commit
e49ed47173
  1. 6
      lib/settlement/settlement.dart

6
lib/settlement/settlement.dart

@ -161,7 +161,7 @@ class _Settlement extends State<Settlement> {
count1,
payChannel,
tableId);
} else if (coupons != null && coupons != "" && tableId <= 0) {
} else if ( widget.arguments["cid"] != null && widget.arguments["cid"] != "" && tableId <= 0) {
queryOrderInfo(
address != null ? address.id : null,
((storeInfo?.pickupType?.dineInTakeStatus ?? false) == true &&
@ -170,13 +170,13 @@ class _Settlement extends State<Settlement> {
selectedBtn != 2)
? diningStatus
: selectedBtn,
widget.arguments["cid"],
widget.arguments["cid"]??0,
0,
productId ?? 0,
productSkuId ?? "",
actProductId ?? "",
actProductSkuId ?? "",
"COUPON",
"AUTO",
// useVipPriceSelect,
// useBenefitSelect,
count1,

Loading…
Cancel
Save