diff --git a/lib/settlement/settlement.dart b/lib/settlement/settlement.dart index a7a777da..7b27e760 100644 --- a/lib/settlement/settlement.dart +++ b/lib/settlement/settlement.dart @@ -96,6 +96,7 @@ class _Settlement extends State { null, 0, widget.arguments["pid"], + payChannel ); } else if (coupons != null && coupons != "" || tableId <= 0) { queryOrderInfo( @@ -104,9 +105,10 @@ class _Settlement extends State { widget.arguments["cid"], 0, null, + payChannel ); } else - queryOrderInfo(null, selectedBtn, null, 0, null); + queryOrderInfo(null, selectedBtn, null, 0, null,payChannel); }); weChatResponseEventHandler.listen((event) async { @@ -122,13 +124,16 @@ class _Settlement extends State { memberCouponId, orderId, promotionId, + payChannel, ) async { BaseData baseData = await minService.getOrderInfo({ "addressId": addressId, "isTake": isTake, "memberCouponId": memberCouponId, "orderId": orderId, - "promotionId": promotionId + "promotionId": promotionId, + "payChannel": payChannel + }).catchError((error) {}); if (baseData != null && baseData.isSuccess) { setState(() { @@ -162,7 +167,7 @@ class _Settlement extends State { this.selectedBtn = selectedBtn; }); if (address != null) { - queryOrderInfo(address.id, selectedBtn, null, 0, null); + queryOrderInfo(address.id, selectedBtn, null, 0, null,payChannel); return; } BaseData> baseDate = @@ -206,7 +211,7 @@ class _Settlement extends State { } } - queryOrderInfo(address.id, selectedBtn, null, 0, null); + queryOrderInfo(address.id, selectedBtn, null, 0, null,payChannel); } } @@ -222,7 +227,7 @@ class _Settlement extends State { }); }); - queryOrderInfo(address.id, selectedBtn, null, 0, null); + queryOrderInfo(address.id, selectedBtn, null, 0, null,payChannel); } } @@ -438,7 +443,7 @@ class _Settlement extends State { this.selectedBtn = 0; }); queryOrderInfo(addressId, isTake, - memberCouponId, orderId, promotionId); + memberCouponId, orderId, promotionId,payChannel); }, queryAddress, storeInfo, address, selectedAddress), @@ -556,6 +561,14 @@ class _Settlement extends State { payChannelCheck(int payChannel) { this.payChannel = payChannel; + queryOrderInfo( + address?.id, + selectedBtn, + couponListBean?.id, + 0, + promotion?.id, + payChannel + ); } mobileChange(String mobile) { @@ -597,7 +610,8 @@ class _Settlement extends State { selectedBtn, couponListBean?.id, 0, - promotion?.id, + null, + payChannel ); // } } @@ -619,9 +633,10 @@ class _Settlement extends State { queryOrderInfo( address?.id, selectedBtn, - couponListBean?.id, + null, 0, promotion?.id, + payChannel ); // } }