Prechádzať zdrojové kódy

feat(SCRM-4916): bkc新会员积分缴费提交

john 1 rok pred
rodič
commit
18cd4e273b

+ 8 - 0
src/pages/parkingFeeV2/mixins/parkingFeeDetail.js

@@ -343,6 +343,14 @@ export default {
             "discountPoints": discountFee / hourPrice * pointsPerUnit
           }
         }
+        if (newMemberPoints?.discountFee && newMemberPoints?.discountFee) {
+          const { pointsPerUnit, unitAmount, discountFee, available } = newMemberPoints
+          params.discountInfo.newMemberPoints = {
+            "discountTime": discountFee / hourPrice * 60,
+            "discountFee": discountFee,
+            "discountPoints": discountFee / hourPrice * pointsPerUnit
+          }
+        }
         // 优惠券
         if (coupons?.length) {
           const selectedCoupons = coupons.filter(elm => {