|
@@ -1,8 +1,10 @@
|
|
|
-import { calculateDiscount, getPaperCouponDescription,getConfValueOfKey } from "@/api/parking";
|
|
|
-import {paperCouponDescription} from '@/utils/api-crm-member'
|
|
|
+import { calculateDiscount,
|
|
|
+ // getPaperCouponDescription,getConfValueOfKey
|
|
|
+ } from "@/api/parking";
|
|
|
+// import {paperCouponDescription} from '@/utils/api-crm-member'
|
|
|
import { setSelected } from "@/store/order/utils";
|
|
|
import uni from '@/utils/uniHooks';
|
|
|
-import {tempParkingH5VoucherSwitchByParkMallCode} from '@/common/js/BaseDictionary'
|
|
|
+// import {tempParkingH5VoucherSwitchByParkMallCode} from '@/common/js/BaseDictionary'
|
|
|
|
|
|
export default {
|
|
|
/*
|
|
@@ -35,9 +37,9 @@ export default {
|
|
|
dispatch('setDiscountFee')
|
|
|
}
|
|
|
}
|
|
|
- if(checkOutResponse?.parkInfo.hasOwnProperty('enablePaperCoupons')) {
|
|
|
- commit('setEnablePaperCoupons', checkOutResponse.parkInfo.enablePaperCoupons);
|
|
|
- commit('setPaperCouponsDesc', checkOutResponse.parkInfo.paperDiscountDescription)
|
|
|
+ if(checkOutResponse?.parkingRule.hasOwnProperty('enablePaperCoupons')) {
|
|
|
+ commit('setEnablePaperCoupons', checkOutResponse.parkingRule.enablePaperCoupons);
|
|
|
+ commit('setPaperCouponsDesc', checkOutResponse.parkingRule.paperDiscountDescription)
|
|
|
}
|
|
|
},
|
|
|
async savePaperCoupon( {commit,dispatch,state},{paperCoupons,callback} ) {
|