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

Loading…
Cancel
Save