|
@@ -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 => {
|