sunshibo před 1 měsícem
rodič
revize
28a24033f1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pages/coupon/components/RulesModal.vue

+ 1 - 1
pages/coupon/components/RulesModal.vue

@@ -40,7 +40,7 @@
       <view class="rules-content">
         <view class="rules-item">
           <text class="rules-label">有效期</text>
-          <text class="rules-value">{{ couponData?.specifiedDay ?? '' }}</text>
+          <text class="rules-value">{{ (couponData?.specifiedDay != null && couponData?.specifiedDay !== '') ? (couponData.specifiedDay + '天') : (couponData?.specifiedDay ?? '') }}</text>
         </view>
         
         <view class="rules-item">