@@ -135,7 +135,7 @@ export default defineComponent({
const useLastAmount = this.orderAmount - usePrice
// 判断使用优惠券之后还有没有其它优惠券可用
this.list.forEach((item: any) => {
- if (Number(item.useLimit) >= useLastAmount && !item.checked) {
+ if (Number(item.useLimit) > useLastAmount && !item.checked) {
item.disabled = true
} else {
item.disabled = false
@@ -116,6 +116,7 @@ export default defineComponent({
count++
}
})
+ console.log(this.list, 'list')
this.useCouponCount = count
} catch {
//