Commit 9c9a8453 authored by youjie's avatar youjie

修复优惠券bug

parent 21929922
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
this.currentChosen = []; this.currentChosen = [];
this.value = 0 this.value = 0
} }
this.OverlayCalculation() this.OverlayCalculation(1)
}, },
// 叠加使用优惠券 // 叠加使用优惠券
multipleChoice(e,i){ multipleChoice(e,i){
...@@ -171,12 +171,12 @@ ...@@ -171,12 +171,12 @@
} }
this.OverlayCalculation() this.OverlayCalculation()
}, },
OverlayCalculation(){ OverlayCalculation(type){
this.TotalDiscounts = 0 this.TotalDiscounts = 0
this.money = 0 this.money = 0
if(this.currentChosen.length==0){ if(this.currentChosen.length==0||type){
this.ts.forEach(x => { this.ts.forEach(x => {
if(x.overlapUse&&x.err){ if(x.overlapUse&&(x.err||type)){
x.err = null x.err = null
} }
}) })
......
...@@ -648,7 +648,7 @@ ...@@ -648,7 +648,7 @@
}, },
usePzCouponHandler(){ usePzCouponHandler(){
this.showPz = false this.showPz = false
this.closeCouponHandler(this.pzCoupon.id) this.closeCouponHandler([this.pzCoupon.id])
this.pzCoupon = null this.pzCoupon = null
}, },
calcPzCouponHandler(){ calcPzCouponHandler(){
......
...@@ -1023,7 +1023,7 @@ ...@@ -1023,7 +1023,7 @@
}, },
usePzCouponHandler(){ usePzCouponHandler(){
this.showPz = false this.showPz = false
this.closeCouponHandler(this.pzCoupon.id) this.closeCouponHandler([this.pzCoupon.id])
this.pzCoupon = null this.pzCoupon = null
}, },
calcPzCouponHandler(){ calcPzCouponHandler(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment