Explorar o código

【功能修复】修正“暂无可用优惠券”字体颜色

卢越 hai 1 ano
pai
achega
dbc192faa7
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      pages/order/confirm.vue

+ 5 - 1
pages/order/confirm.vue

@@ -122,7 +122,11 @@
             </text>
             <text
               class="item-value"
-              :class="state.couponInfo.length > 0 ? 'text-red' : 'text-disabled'"
+              :class="
+                state.couponInfo.filter((coupon) => coupon.match).length > 0
+                  ? 'text-red'
+                  : 'text-disabled'
+              "
               v-else
             >
               {{