|
@@ -33,6 +33,17 @@ export default {
|
|
|
newOldDiscountSwitch = true
|
|
|
method = getPaperCouponDescription
|
|
|
}
|
|
|
+ if(checkOutResponse?.discountInfo?.paperCoupons?.length) {
|
|
|
+ const paperCouponsList = []
|
|
|
+ checkOutResponse.discountInfo.paperCoupons.forEach(elm => {
|
|
|
+ if(elm.couponCode && elm.discountFee) {
|
|
|
+ paperCouponsList.push(elm)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(paperCouponsList.length) {
|
|
|
+ commit('setPaperCoupons', paperCouponsList)
|
|
|
+ }
|
|
|
+ }
|
|
|
const res = await method({
|
|
|
groupId: groupId,
|
|
|
mallId: mallId,
|