소스 검색

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

卢越 1 년 전
부모
커밋
dbc192faa7
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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
             >
               {{