فهرست منبع

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

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">