Pārlūkot izejas kodu

【功能修复】订单确认页的可用优惠券数量统计

卢越 1 gadu atpakaļ
vecāks
revīzija
5f8ed35521
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pages/order/confirm.vue

+ 1 - 1
pages/order/confirm.vue

@@ -126,7 +126,7 @@
               v-else
             >
               {{
-                state.couponInfo.length > 0
+                state.couponInfo.filter((coupon) => coupon.match).length > 0
                   ? state.couponInfo.filter((coupon) => coupon.match).length + ' 张可用'
                   : '暂无可用优惠券'
               }}