Commit 96a4d94f authored by youjie's avatar youjie

优化

parent 836b0263
...@@ -581,6 +581,7 @@ ...@@ -581,6 +581,7 @@
if(e instanceof Array){//叠加使用优惠券 if(e instanceof Array){//叠加使用优惠券
this.multipleChosenIds = e this.multipleChosenIds = e
let TotalDiscountAmount = 0 let TotalDiscountAmount = 0
this.useCouponId = 1
this.couponList.forEach(x=>{ this.couponList.forEach(x=>{
let findIndex = this.multipleChosenIds.findIndex(y=>x.id==y) let findIndex = this.multipleChosenIds.findIndex(y=>x.id==y)
if(findIndex!=-1){ if(findIndex!=-1){
...@@ -613,6 +614,7 @@ ...@@ -613,6 +614,7 @@
}else{ }else{
this.multipleChosenIds = [] this.multipleChosenIds = []
this.currentCoupon.discountMoney = 0 this.currentCoupon.discountMoney = 0
this.useCouponId = 0
} }
this.showCoupon = false; this.showCoupon = false;
}, },
......
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