|
@@ -55,6 +55,7 @@ export default defineComponent({
|
|
|
|
|
|
// 处理可用优惠券是否支付使用
|
|
|
this.list.forEach((item: any) => {
|
|
|
+ item.checked = false
|
|
|
// 如果使用金额大于订单金额则优惠券不可用
|
|
|
if (item.useLimit > this.orderAmount) {
|
|
|
item.disabled = true
|
|
@@ -64,10 +65,8 @@ export default defineComponent({
|
|
|
|
|
|
// 处理显示已选择的优惠券
|
|
|
this.useCoupon.forEach((coupon: any) => {
|
|
|
- if (item.id === coupon.id) {
|
|
|
+ if (item.couponIssueId === coupon.couponIssueId) {
|
|
|
item.checked = true
|
|
|
- } else {
|
|
|
- item.checked = false
|
|
|
}
|
|
|
})
|
|
|
})
|