소스 검색

【功能修复】优惠券匹配问题

Xiao_123 10 달 전
부모
커밋
e7356af9b9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sheep/components/s-coupon-select/s-coupon-select.vue

+ 1 - 1
sheep/components/s-coupon-select/s-coupon-select.vue

@@ -18,7 +18,7 @@
       >
         <!--可使用的优惠券区域-->
         <view class="subtitle ss-m-l-20">可使用优惠券</view>
-        <view v-for="(item, index) in state.couponInfo" :key="index">
+        <view v-for="(item, index) in state.couponInfo.filter(coupon => coupon.match)" :key="index">
           <s-coupon-list :data="item" type="user" :disabled="false">
             <template v-slot:reason>
               <view class="ss-flex ss-m-t-24">