|
@@ -306,12 +306,16 @@ var shoppingCart = new Vue({
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ }else{
|
|
|
+ eligibleCoupons.splice(0,eligibleCoupons.length)
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
if(eligibleCoupons.length>0){
|
|
|
_self.eligibleCoupons.push(eligibleCoupons[0])
|
|
|
_self.couponPrice = _self.eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount)[0].couponAmount
|
|
|
+ }else{
|
|
|
+ _self.couponPrice = 0
|
|
|
}
|
|
|
},
|
|
|
cartNumberSub: function(cart){
|